Dashboards & BI
What Is a Calculated Measure in Power BI? A Plain-English Guide With Example
Part of our guide to business analyst tools.
What a calculated measure means in Power BI
A calculated measure is a named formula written in DAX (Data Analysis Expressions). Power BI itself just calls it a measure. It does not sit in any row of your table. Power BI runs the formula each time a visual needs a number: a card, a bar in a chart or a cell in a matrix.
The key idea is filter context. A user picks a region in a slicer, or a matrix splits results by month. Each cell in the visual then has its own set of filters, and the measure is calculated inside them. So one measure called Total Sales can show the company total on a card, the North total in a bar and the March total in a matrix cell. You write only one formula.
That is why measures are the natural home for totals, averages, ratios, counts and KPIs. If a number must react to filters, it should almost always be a measure. To see where Power BI fits among other BA tools, read Business Analyst Tools: What to Learn First and Why.
Why business analysts should care
As a BA, you often write the definition of a KPI before anyone builds the report. The measure is where that definition becomes code. Say your requirement reads 'average order value excludes cancelled orders'. Someone has to turn that sentence into a measure. If you understand how measures work, your definitions get clearer and you can check the result yourself. KPI vs Metric: How to Design a Useful Dashboard explains how to choose which numbers belong on the page.
Measure vs calculated column vs implicit measure
Beginners often mix up three things that all produce numbers in Power BI.
- Calculated measure (explicit measure): a DAX formula you create and name. Power BI calculates it when a visual asks for it, inside the current filters.
- [Calculated column](/glossary/calculated-column): a DAX formula that adds a new column to a table. Power BI works out a value for every row when the data refreshes and stores it in the model.
- Implicit measure: what Power BI creates for you when you drag a numeric column into a visual and it sums or counts it automatically. It is quick, but you cannot use it in other DAX formulas.
A simple rule: if you need a value to slice, filter or group by, use a calculated column. An 'order size band' of Small, Medium or Large for each order is a good example. If you need a number in a visual that changes with filters, use a measure.
Three ways to get a number in Power BI
| Aspect | Calculated measure | Calculated column | Implicit measure |
|---|---|---|---|
| When it is calculated | When a visual needs it | At data refresh, once per row | When a visual needs it |
| Stored in the model | No, only the formula is stored | Yes, one value per row | No |
| Reacts to slicers and filters | Yes, fully | Row values stay fixed, though visuals can aggregate them | Yes |
| Usable on a slicer or axis | No | Yes | No |
| Reusable in other formulas | Yes, by name such as [Total Sales] | Yes, as a column | No |
| Typical use | Totals, ratios, KPIs, time comparisons | Categories, flags and bands per row | Quick checks while exploring data |
How to create a calculated measure, step by step
- Write the definition in words first. For example: 'Total sales is the sum of order amounts for completed orders.' Agree it with the person who owns the number.
- Check the data model. Know which table holds the column you need and how the tables relate. Measures behave best on a clean star schema, with facts and dimensions kept separate.
- Choose a home table. Pick the table the measure belongs to. Many teams keep a separate table just for measures so they are easy to find.
- Create the measure. In Power BI Desktop, select New measure on the Home or Modeling tab, or right-click the table in the Data pane and choose New measure. A formula bar opens.
- Type the name and the formula. The pattern is
Measure Name = expression, for exampleTotal Sales = SUM ( Orders[Amount] ). Press Enter to save. The measure appears in the Data pane with a calculator icon. - Format and describe it. Use the Measure tools tab to set currency, decimal places or a percentage format. Add a short description so report users know what the number means.
- Test it in a visual. Put the measure on a card, then in a table split by a category. Compare the result with a trusted source, such as a SQL query or a report from the source system.
- Document it. Record the name, business definition, DAX and owner in your data dictionary or documentation page.
Diagram in words
- 1. Define the number in words: Write the business rule and agree it with the KPI owner before opening Power BI.
- 2. Check the model: Find the table and column, and confirm the relationships between facts and dimensions.
- 3. Create a new measure: Use New measure on the Home or Modeling tab, or right-click the table in the Data pane.
- 4. Write name and DAX: Follow the pattern Name = expression, then press Enter to save.
- 5. Format and describe: Set the number format and add a description so report users know what it means.
- 6. Test under filters: Check the total, then split by a category and compare with a trusted source.
You only need a handful of functions to start: SUM, COUNTROWS, DIVIDE, AVERAGE and CALCULATE. CALCULATE changes the filters a measure runs under, for example to show sales for one region only. For exact syntax, use Microsoft's DAX reference.
Worked example: average order value at Tealeaf Home Delivery
Tealeaf Home Delivery is a fictional grocery delivery company. Sunil, the operations lead, wants a dashboard card showing average order value (AOV) and a bar chart of AOV by region. You are the BA learner, working with Nadia, the senior business analyst.
To keep the arithmetic easy, imagine the Orders table for one day holds only four completed orders. Amounts are in rupees.
- Order 1, North, 300
- Order 2, North, 500
- Order 3, North, 400
- Order 4, South, 200
North has 3 orders worth 1,200 in total, so its AOV is 400. South has 1 order worth 200, so its AOV is 200. The whole day has 4 orders worth 1,400, so the company AOV is 350.
Here is the trap. If someone averages the two regional AOVs, they get (400 + 200) / 2 = 300. That is wrong, because North has three times as many orders as South. A measure avoids this problem. It divides total sales by order count inside whatever filter is active.
Three measures for average order value
Tealeaf Home Delivery measures (DAX)
Total Sales = SUM ( Orders[Amount] )1
Order Count = COUNTROWS ( Orders )2
Average Order Value =3
DIVIDE ( [Total Sales], [Order Count] )4
- SUM adds the column. Adds every Amount in the current filter. With no filter: 300 + 500 + 400 + 200 = 1,400. Filtered to North: 1,200. Filtered to South: 200.
- COUNTROWS counts orders. Counts rows in Orders, and each row is one order. With no filter: 4. North only: 3. South only: 1.
- Measures can reuse measures. Referring to [Total Sales] and [Order Count] by name keeps one definition of each number. Change it once and every visual that uses it updates.
- DIVIDE is safe. DIVIDE returns blank instead of an error value if Order Count is zero, such as on a day with no orders. With no filter: 1,400 / 4 = 350.
On the card with no filter, the measure returns 1,400 / 4 = 350. In the bar for North it returns 1,200 / 3 = 400. In the bar for South it returns 200 / 1 = 200. One formula gives three correct answers.
Why the spreadsheet and the card disagree
Tealeaf Home Delivery, a fictional company: reviewing the first draft of the operations dashboard.
- Sunil Operations lead
My spreadsheet says average order value is 300, but your card says 350. Which one is right?
- You The BA learner
Can you show me how you got 300? The card divides total sales of 1,400 by 4 orders.
- Sunil Operations lead
I took North's average of 400 and South's average of 200, then averaged those two.
- Nadia Business analyst
That gives each region equal weight. North had 3 orders and South had 1, so an average of averages pulls the number down.
- You The BA learner
The measure uses DIVIDE on Total Sales and Order Count, so every order counts the same, whatever filter is on.
- Sunil Operations lead
Understood. Please write that rule into the KPI definition so nobody repeats my method.
- Nadia Business analyst
We will add it to the data dictionary with the DAX, and name you as the owner.
The people and the company in this scene are fictional.
Common mistakes with calculated measures
- Using a calculated column for a ratio. A column calculates each row on its own. Summing a ratio stored per row gives a meaningless total. Ratios belong in measures.
- Averaging averages. As the worked example shows, an average of group averages ignores volume. Divide a total by a count instead.
- Relying on implicit measures. Dragging a column and letting Power BI sum it is fine while exploring. It does not give you a named, reusable, documented KPI.
- Dividing with the slash everywhere.
[A] / [B]can show infinity or a 'not a number' value when B is zero.DIVIDEreturns blank, or an alternative result you choose. - Skipping the definition. Two people build 'Active Customers' with different rules, and the dashboard argues with itself. Write and agree the business rule first.
- Testing only the total. A measure can be right on the card and wrong once split by month, often because a relationship is missing. Test with a slicer and a breakdown.
- Vague names.
Measure 1orSales2helps no one. Use clear business names such asTotal Salesthat match the KPI list.
Checklist: before you trust a new measure
Run through this list whenever you build or review a measure, whether in your own practice file or during UAT of a real dashboard.
New measure review
- The business definition is written down and agreed with the owner of the number.
- The measure name matches the KPI list and the data dictionary.
- The total on a card matches a trusted source, such as a SQL query or a system report.
- Results make sense when split by at least one category, such as region or month.
- Divisions use DIVIDE, so zero or empty denominators show blank instead of an error value.
- The number format (currency, decimals or percentage) is set.
- Edge cases are tested: a day with no data, a new category, a filter that returns nothing.
- The DAX, definition and owner are recorded on the documentation page.
How measures fit into a business analyst's everyday work
You do not have to be the person who writes every measure. On many teams a BI developer or data analyst builds the report. The BA still shapes the measures in three ways.
- Requirements: you write each KPI as a clear rule. State what is counted, what is excluded and at what level, such as per order or per customer.
- Testing: during UAT you compare measure results with known answers, using small test datasets where you can do the maths by hand.
- Documentation: you keep the data dictionary up to date, so the meaning of each measure survives after the project team moves on.
If you are starting out, learn measures right after you are comfortable loading data and building basic visuals. Power BI for Business Analysts: What to Learn First sets out a sensible order. Then practise on a small dataset of your own, where you already know the right answers.
Frequently asked questions
Is a calculated measure the same as a DAX measure?
Yes, in Power BI they are the same thing. The Power BI interface simply says 'measure', and the formula is always written in DAX. People say 'calculated measure' to separate it from a plain column of numbers, and some other BI tools use that phrase too.
Do I need to learn DAX to use Power BI as a business analyst?
You can build simple reports without DAX, but you will hit limits quickly. Learning a few functions such as SUM, COUNTROWS, DIVIDE and CALCULATE lets you check definitions, test numbers and talk clearly with developers. Deep DAX skills are useful but not required for most BA roles.
When should I use a calculated column instead of a measure?
Use a calculated column when you need a fixed value for each row that you will filter, slice or group by, such as a size band or a yes or no flag. Use a measure when you need a number that should change with the filters in a visual, such as a total or a ratio.
What is a quick measure in Power BI?
A quick measure is a feature that writes the DAX for you. You pick a common calculation from a menu, such as a running total or a year to date figure, and choose the fields. Power BI then creates a normal measure. It is a good way to learn, because you can read the DAX it produces.
How can I see the formula behind an existing measure?
In Power BI Desktop, select the measure in the Data pane and the formula bar shows its DAX. If you only have view access to a published report, you may not see the formula, so ask the report owner or check the project's data dictionary.
This article was written by an AI system and published automatically after automated accuracy, safety and quality checks. All companies, people and numbers in the examples are fictional. BA Mentorship does not issue professional certifications and cannot guarantee any job or interview outcome. Spot an error? Email our support team and we will check and correct it.