Sub topic 8
Implicit and explicit measures
This chapter assumes you can navigate Power BI Desktop's Report, Table and Model views. It also assumes you know basic DAX syntax such as SUM and column references, and that you have read the earlier chapters on filter context and measures. It covers the two ways a measure can come into existence, why the difference matters, and how to move from one to the other.
Two kinds of measure
A measure is a calculation evaluated in the current filter context. You can get one in two ways.
- An explicit measure is a measure you write yourself in DAX. It has a name, a formula, a table that holds it, and it shows up in the Fields pane with a calculator icon.
- An implicit measure is created on the fly when you drag a numeric column onto a visual and Power BI applies a summarization such as Sum, Average, Count or Min to it. No measure is stored in the model. The report visual just asks the engine to aggregate that column.
Both are evaluated at query time, so both respond to filter context in the same way. The difference is in what the model knows about them.
Consider the Sales table from the earlier chapters. If you drag Sales[Line Amount] onto a card and leave the default Sum, you have an implicit measure. If you create this in the model and drag it instead, you have an explicit measure:
Total Sales = SUM(Sales[Line Amount])On a card, the two show the same number. In the model, they are different things.
How implicit measures work
When you tick a numeric column in the Fields pane, Power BI marks it with a sigma symbol (Σ). That symbol means the column has a default summarization property. The visual uses it to decide how to aggregate.
You can change the aggregation per visual. In the Visualizations pane, open the dropdown on the field in the Values well and choose Sum, Average, Minimum, Maximum, Count, Count (Distinct), Standard deviation, Variance or Median. You can also change the default for the column in the Column tools ribbon, under Summarization.
Behind the scenes, the visual query aggregates the column directly. It does not create a named object that other visuals, other reports or DAX formulas can reference.
What implicit measures cannot do
- They cannot be referenced in DAX. You cannot write
CALCULATE([Sum of Line Amount], ...)because no such object exists. You would have to writeSUM(Sales[Line Amount])again. - They are not reusable. Each visual makes its own choice. One visual may sum a column while another averages it, and nothing stops the two from being mislabeled or mixed up.
- They do not work in many external tools. Excel PivotTables connected to the model through Analyze in Excel, and DAX-based tools that query the model, can only see explicit measures. For a live connection to a shared semantic model, implicit measures are not available at all.
- They cannot carry a format or description of their own beyond the column's settings, so the number format is tied to the column.
- They cannot express anything beyond a single aggregation. A ratio, a filtered total or a time comparison all need DAX.
Live connections and calculation groups
Two situations make the gap sharper. When a report connects live to a published semantic model, the report author sees only the measures defined there, and implicit measures on columns are not available. Calculation groups, which apply a transformation such as year-to-date to measures, also work on explicit measures only. If a model uses calculation groups, Power BI Desktop can prompt you to disable implicit measures for this reason.
How explicit measures work
An explicit measure is a stored DAX expression. It is not evaluated until a visual or a query asks for it, and then it is evaluated once for each cell of the result, in that cell's filter context.
Total Sales = SUM(Sales[Line Amount])
Red Sales = CALCULATE([Total Sales], Product[Color] = "Red")
Margin % = DIVIDE(SUM(Sales[Profit]), SUM(Sales[Line Amount]))Notice what the second and third formulas do. Red Sales calls [Total Sales] by name, which is only possible because Total Sales is an object in the model. Margin % computes a ratio of totals, which a default summarization cannot do.
Explicit measures give you these properties:
- A name you control, so every visual labels the number the same way.
- A single definition. If the business rule changes, you edit one formula and every visual updates.
- A format string and description set once.
- Composability. Other measures build on it.
- Visibility in every client, including Excel, paginated reports and external tools.
Comparing the two
| Property | Implicit measure | Explicit measure |
|---|---|---|
| Created by | Dragging a column onto a visual | Writing DAX in the model |
| Stored in the model | No | Yes |
| Referenced by other DAX | No | Yes |
| Available in Excel and live connections | No | Yes |
| Can express ratios or filtered logic | No | Yes |
| Aggregation chosen per visual | Yes | No, fixed by the formula |
| Works with calculation groups | No | Yes |
Where each one is evaluated
Neither kind is computed at refresh time. This matters when you compare them with calculated columns. A calculated column stores a value for each row when the model refreshes. An implicit or explicit measure stores nothing per row. It runs when a visual renders, which is why measures add almost nothing to model size.
Edge cases and common errors
The same number, a different meaning
An implicit Average on a ratio column is a frequent trap. If Sales[Margin %] is a calculated column, dragging it onto a card with Average gives the average of row-level ratios. That is not the overall margin, as the earlier chapter on ratios showed. An explicit Margin % measure fixes this because the ratio is taken after the totals are summed.
Count versus Count (Distinct)
Dragging a text column onto a visual produces an implicit Count or Count (Distinct), depending on what you choose. Both work, but a stored measure such as Customers = DISTINCTCOUNT(Sales[CustomerKey]) makes the choice permanent, and it avoids the case where two report pages show different counts for the same label.
Numeric columns that should not be summed
Keys, years, and ratings are numeric but should not be added. A Year column of 2024 summed across three rows gives 6072. Power BI may show a sigma next to such a column and sum it by default. Set the column's Summarization to Don't summarize so that it behaves as a category field in slicers and axes.
Mixing both for the same quantity
If a report has a visual that sums Sales[Line Amount] implicitly and another that uses [Total Sales], they usually agree. They can diverge if someone later edits the explicit measure, for example to exclude returns. The implicit one stays unchanged. This is a quiet source of reports that do not reconcile.
Moving from implicit to explicit
A practical workflow for an existing report:
- Find every numeric column you aggregate. In the Fields pane, these are the ones with a sigma.
- For each one, write an explicit measure with a clear name, for example
Total Sales = SUM(Sales[Line Amount]). - Set the format string and a description.
- Replace the column in each visual's Values well with the measure.
- Select the source column and set Summarization to Don't summarize.
- Hide the raw column if it is not needed in slicers or axes. Hiding it removes it from the report view while keeping it available for DAX.
- Optionally turn on the Desktop option that discourages implicit measures. In current versions this is a model setting. For models with calculation groups, it is applied automatically.
Measures live in a table, and the table does not have to be the one the column came from. Many teams create a dedicated measures table so that all measures appear in one place. Either approach works. The model does not require measures to sit in the table they aggregate.
Quick check with SUMX
An explicit measure can also remove the need for a helper column. The earlier chapters showed that you can compute the line amount without storing it:
Total Sales (no column) = SUMX(Sales, Sales[Quantity] * Sales[Unit Price])This is an explicit measure that no implicit aggregation can replace, since an implicit measure can only aggregate an existing column. That is another reason explicit measures give you more freedom in choosing between a calculated column and a measure.
Decision criteria
Use an implicit measure only when you are exploring data in a throwaway report and you want a quick look at a column. For anything that will be shared, published or reused, write an explicit measure.
Summary of key points
- An implicit measure is an aggregation a visual applies to a column. An explicit measure is a named DAX formula stored in the model.
- Both are evaluated at query time in the current filter context. Neither adds per-row storage the way a calculated column does.
- Only explicit measures can be referenced in DAX, used in calculation groups, or seen by Excel and live-connected reports.
- Ratios, filtered totals and time logic need explicit measures.
- Set numeric non-additive columns to Don't summarize.
Exercise
A report has a card showing the sum of Sales[Line Amount] made by dragging the column onto the visual. A colleague wants a second measure that shows sales for red products only, using CALCULATE. What must you do first, and why?
Show answer
Create an explicit measure such as Total Sales = SUM(Sales[Line Amount]). The card's value is an implicit measure and is not an object in the model, so CALCULATE cannot reference it by name. With the explicit measure in place, you can write Red Sales = CALCULATE([Total Sales], Product[Color] = "Red").
Exercise
A Margin % calculated column exists on Sales. An author drags it onto a card and sets the aggregation to Average. The number is wrong compared with the finance team's figure. Explain the cause and give the fix.
Show answer
The implicit Average takes the mean of the row-level ratios, so every row counts equally whatever its size. The overall margin is total profit divided by total sales. Fix it with an explicit measure: Margin % = DIVIDE(SUM(Sales[Profit]), SUM(Sales[Line Amount])), and then set the column's Summarization to Don't summarize or hide the column.
Exercise
A Year column of whole numbers shows a sigma and totals 6072 in a table visual with three rows from 2024. How do you stop this?
Show answer
Select the column and set Summarization to Don't summarize in the Column tools ribbon. The column then behaves as a category field in slicers and axes instead of being added.