Quick Measures Preview
Quick measures, a new feature Microsoft released in their April Power BI Desktop update, lets you quickly create new measures based on measures and numerical columns in your table. These new measures become part of your model and can be used in any of your charts, just like manually created DAX calculations. You can also see the underlying DAX, and edit it if you need to tweak the results.
You can create measures based on 19 different calculations across five different categories. Let’s take a look at those five different categories.
Aggregate within category
These calculations let you apply different aggregates at different levels in your data. For example, you can sum revenue up to the month level, and then take an average of that total to display at the year level.
The result would look something like this:
The calculations included in the Aggregate category are:
- Average within category
- Variance within category
- Max within category
- Min within category
Filters and baselines
This category of calculations lets you calculate values for a specific category in a column, or compare values to a specific baseline. For example, the following quick measure calculates the SalesAmount for just Deluxe Class products:
A card is a good way to display these filtered measures:
The calculations included in this category of quick measures are:
- Filtered measure
- Difference from baseline
- Percentage difference from baseline
If you need a measure that shows period-to-date or period-over-period values, the time intelligence category of calculations lets you do this.
For example, you can calculate the sales amount over the order year to date.
Here’s the result of that calculation alongside the unaggregated value:
The included calculations are:
- Year-to-date total
- Quarter-to-date total
- Month-to-date total
- Year over year change
- Quarter over quarter change
- Month-over-month change
At present, the time intelligence calculations only work with date fields with Power BI’s built-in date hierarchies. If you’re using your date field in visuals and see Date Hierarchy on the field well menu, then you can use that field in the time intelligence quick measures.
Microsoft is looking to remove that date hierarchy restriction in the future, so you can easily use your own date tables too.
This category (it’s just one calculation, so far) is similar to the YTD calculation, but lets you apply a running total over any field, not just dates.
Here’s an example adding up the sales amount over each product class:
CLICK HERE to read the full article and learn all about applying the new Quick Measures feature within Power BI Desktop!
To learn more on how Tallan and Power BI can transform your data into powerful visualizations to optimize business processes and BI strategies, CLICK HERE.