Sub topic 10
Why explicit measures beat implicit aggregations
This chapter assumes you can work in Power BI Desktop's Report view, that your model has a Sales table with a numeric SalesAmount column, and that you have already written Total Sales = SUM(Sales[SalesAmount]). Here you will learn why a named measure is a better choice than dragging a raw column into a visual.
Two ways to get a total
You can get a total on a visual in two ways.
- Implicit aggregation: you drag a numeric column, such as SalesAmount, into a visual. Power BI picks an aggregation (usually Sum) and applies it behind the scenes. No measure appears in the model.
- Explicit measure: you write a DAX formula, give it a name, and store it in the model. Examples are
Total SalesandOrder Lines.
Both can show the same number on a card. The difference is in what happens next.
How to spot an implicit aggregation
In the Fields pane, columns that Power BI can aggregate show a Sigma symbol (∑). When you drag one into a visual, the field well shows a label such as "Sum of SalesAmount". That label means Power BI created the aggregation for you. A real measure has a calculator icon and the name you gave it.
You can also change the aggregation from the field well's drop-down menu, for example from Sum to Average. That is convenient, but the result is easy to change by accident.
Why explicit measures are better
They can be reused
An explicit measure can be referenced from other measures. The ratio from the earlier chapter depends on this:
Average Sales per Order Line = DIVIDE([Total Sales], [Order Lines])An implicit "Sum of SalesAmount" cannot be used in this formula. There is no name to refer to. You would have to write the SUM again, and then you would have the same logic in two places.
They keep one definition
When Total Sales is a measure, every visual uses the same formula. If the business rule changes, for example to exclude returns, you edit one formula and every visual updates. With implicit aggregations, each visual carries its own setting, and visuals can disagree without anyone noticing.
They behave the same everywhere
A measure has a fixed aggregation. A column dragged into a visual can be switched to Average, Minimum, or Count by anyone editing the report. A measure named Total Sales always returns a total.
They can do things implicit aggregations cannot
Measures can use table expressions and filtering. For example, you can count only the large order lines:
Large Order Lines = COUNTROWS(FILTER(Sales, Sales[SalesAmount] > 1000))A drag-and-drop aggregation has no way to express this rule.
They are easier to find and format
A measure has a name, a format string, and a display folder. Users see "Total Sales" formatted as currency, not "Sum of SalesAmount" formatted as a plain number.
Comparison
| Feature | Implicit aggregation | Explicit measure |
|---|---|---|
| Created by | Dragging a column into a visual | Writing a DAX formula |
| Stored in the model | No | Yes |
| Name | "Sum of SalesAmount" | A name you choose |
| Referenced by other measures | No | Yes |
| Aggregation can be changed in the visual | Yes | No |
| Custom filtering logic | No | Yes |
| One shared definition | No | Yes |
Where the two approaches meet
Power BI uses implicit aggregations in one more place. If a report is built on a model that someone else shares, any numeric column can be aggregated by report authors. This is why many teams hide the raw columns once measures exist.
Converting an implicit aggregation
Follow these steps to replace an implicit aggregation with an explicit measure.
- Find a visual that shows "Sum of SalesAmount" in its field well.
- Create the measure
Total Sales = SUM(Sales[SalesAmount]). - Remove the implicit field from the visual and add
Total Salesin its place. - Repeat for other visuals that use the same column.
- Optionally, hide SalesAmount from Report view. Right-click it in the Fields pane and choose Hide in report view.
Hiding the column does not delete it. Measures such as Total Sales still read it.
Common mistakes
- Leaving some visuals on implicit aggregations while others use measures, so totals drift apart over time.
- Writing a ratio by dividing two implicit sums in a visual instead of using
DIVIDEon two measures. - Hiding a column before all visuals have been switched, which leaves broken fields in those visuals.
Exercise
A colleague drags SalesAmount onto a card and Power BI labels it "Sum of SalesAmount". They want to compute average sales per order line from this card and the count of Sales rows. Why will this not work as a measure reference, and what should they do instead?
Show answer
An implicit aggregation is not stored in the model and has no name, so another measure cannot reference it. They should create Total Sales = SUM(Sales[SalesAmount]) and Order Lines = COUNTROWS(Sales), then write Average Sales per Order Line = DIVIDE([Total Sales], [Order Lines]).
Exercise
Name two benefits of replacing an implicit "Sum of SalesAmount" with an explicit Total Sales measure.
Show answer
Any two of these: it can be referenced by other measures, there is one shared definition to edit, its aggregation cannot be changed from the field well, and it can have a clear name and a format string.