A Power BI Technique Mined from the Power Pivot Archives
Below, you will find one of our all-time favorite Power BI techniques. In the ten (yes ten) years we’ve been operating this site, we’ve written over 1,000 articles on Power BI. Hard to imagine - even for us - but true.
Years ago, we first wrote up this technique in the context of Power Pivot – Power BI’s cousin and predecessor, which we like to call “Power BI in Excel.”
Since the two products share the same brains (DAX and M), this technique is more relevant today than ever. Everything below is 100% legit for Power BI – the same data model “shape,” the same DAX, etc. – but now you can use it to power up your Power BI visuals, and not just PivotTables. Enjoy!
With everyone getting their hands on CTP3, I decided to take a short break from the football project and show something else that may spark you to try things you otherwise might not.
Briefly, here are the steps covered in the videos:
- Copying the temperature data from Excel and pasting as a new table in PowerPivot
- Using CONCATENATE to create “key” columns in both the Temperature and Sales tables
- Creating a relationship between those tables, using the key columns created in 2
- Demonstrating that the relationship enables slicing sales by temperature
- Using a nested IF formula to add a new column to the Temperature table, mapping granular average temperature values into the four buckets Cold, Cool, Warm, Hot
- Using that newly-calculated column to slice sales numbers instead
Using DAX to create a “Sales per Day” measure! 🙂