You're building your first report in Power BI: the sales table is loaded, the charts are in place, and now you need metrics like “profit”, “average order value” or “growth vs last year”. This is where almost every beginner runs into the same question: calculated column or measure? Both are written as DAX formulas and both look like “a new calculation”, yet they work in completely different ways. The wrong choice can slow your report down, bloat the file and, worst of all, produce incorrect numbers. In this article we explain the difference between a calculated column and a measure in DAX with simple examples and show when to use each.
DAX in a nutshell
DAX (Data Analysis Expressions) is the formula language used to run calculations on the data model in Power BI, Excel Power Pivot and Analysis Services. At first glance it looks like Excel formulas: familiar functions such as SUM, AVERAGE and IF are all here. The key difference is that DAX works with tables and columns rather than individual cells. There are two main ways to create a new calculation in DAX: a calculated column and a measure.
What is a calculated column?
A calculated column is a new column added to a table, with its value calculated separately for each row. The calculation runs once, when the data is loaded or refreshed, and the result is stored in the model just like any other column.
For example, the Sales table has Quantity and Price columns. To calculate the amount for each row, you can create a calculated column like this:
Amount = Sales[Quantity] * Sales[Price]
Here DAX works in row context: for each row, it takes that row's Quantity and Price values and multiplies them. The result is very similar to adding a new column to a table in Excel.
Key characteristics of a calculated column:
- its value is calculated separately for each row and stored in the model;
- it is recalculated only on refresh and doesn't respond to the report's filters and slicers;
- it increases the model size and memory usage;
- it can be used in slicers, in filters, in relationships between tables and as a category on a visual's axis.
What is a measure?
A measure is a formula that isn't stored in the table but is calculated “live” when the report opens and as the user interacts with it. A measure always returns an aggregate: a sum, an average, a count, a percentage and so on. Its result depends on the context of the visual.
Total Sales = SUM(Sales[Amount])
Put this measure on a card and you'll see the total of all sales. Add the same measure to a column chart by region, and you'll get a separate total for each region. Select 2025 in a slicer, and the numbers will be recalculated for that year only. This happens because of filter context: every time, the measure is recalculated according to the visual's rows and columns, the slicers and the filters.
Key characteristics of a measure:
- the result isn't stored in the model; it's calculated at query time;
- it responds dynamically to filters, slicers and the structure of the visual;
- it adds practically nothing to the model size;
- it can't be used in a slicer or a relationship.
Calculated column vs measure: a side-by-side comparison
To see the difference in one place, let's list the main criteria:
- When it's calculated: calculated column — on data refresh; measure — while you work with the report, at query time.
- Where it's stored: calculated column — in the model, for every row; measure — not stored, exists only as a formula.
- Context: calculated column — mainly row context; measure — filter context.
- Response to filters: calculated column — doesn't respond; measure — recalculates for every selection.
- Where it's used: calculated column — slicers, filters, relationships, grouping; measure — the Values area of visuals, cards, KPIs.
- Performance: calculated column — uses more memory, but is fast to read because the value is precomputed; measure — saves memory, but complex formulas can affect report speed.
A practical example: one metric, two approaches
Let's say you want to calculate profit margin as a percentage. The table has Amount (sales amount) and Cost (cost of goods) columns.
The wrong approach: calculating margin in a column
Margin Pct = DIVIDE(
Sales[Amount] - Sales[Cost],
Sales[Amount]
)
This calculated column correctly computes each row's own margin. The problem shows up in the visual: when Power BI displays this column by region, it usually sums the values or takes their average. Adding up percentages makes no sense, and a simple average gives small and large sales the same weight. As a result, the region's real margin is shown incorrectly.
The right approach: calculating margin with a measure
Total Sales = SUM(Sales[Amount])
Total Cost = SUM(Sales[Cost])
Margin % = DIVIDE(
[Total Sales] - [Total Cost],
[Total Sales]
)
Here the totals are calculated first, and then the ratio. The measure gives the correct result in every context — for the whole report, a region, a month or a product category. The DIVIDE function also protects against division-by-zero errors: when the denominator is zero, it returns a blank instead of an error.
This example leads to an important rule: ratios, percentages and averages should almost always be calculated with measures.
When is a calculated column the right choice?
That doesn't mean you should avoid calculated columns. In some cases, they're the only option or the most sensible one:
- Creating categories. For example, splitting sales by amount into “Small”, “Medium” and “Large” groups and using that group in a slicer.
- Relationship keys. Combining two columns to create a unique key for a relationship between tables.
- Fixed row-level attributes. For example, deriving an age group from a date of birth or a quarter name from a date.
- Helper columns for sorting. A month number column so that month names appear in calendar order rather than alphabetically.
A category example:
Sales Group =
SWITCH(
TRUE(),
Sales[Amount] < 100, "Small",
Sales[Amount] < 1000, "Medium",
"Large"
)
This column is calculated once per row and can be used as a filter in the report — something you can't do with a measure.
One more thing worth noting: many columns like these can also be created in Power Query (via the Add Column menu). If the calculation relates to the source data and doesn't depend on other tables, doing it in Power Query usually keeps the model cleaner.
CALCULATE: where measures get their power
The function that makes measures truly powerful is CALCULATE. It lets you change a measure's filter context. For example, to calculate sales for the “Baku” region only:
Baku Sales =
CALCULATE(
[Total Sales],
Regions[Region] = "Baku"
)
Or to find each category's share of total sales:
Sales Share % =
DIVIDE(
[Total Sales],
CALCULATE([Total Sales], ALL(Products[Category]))
)
Here ALL removes the category filter, so the denominator is the total across all categories. Time intelligence calculations such as YTD, MTD, last year's value (LY) and year-over-year growth (YoY) follow the same logic: they're built as measures using CALCULATE and date functions.
Common beginner mistakes
- Calculating everything with calculated columns. Out of Excel habit, a new column is created for every metric, the model grows, and percentages get summed incorrectly.
- Relying on implicit measures. When you drag a column straight onto a visual, Power BI sums it automatically. That's convenient in a small report, but for controlled, reusable calculations it's better to write explicit measures.
- Keeping measures disorganized. When dozens of measures are scattered across different tables, they become hard to find. Creating a dedicated “measure table” and giving measures clear names makes the job much easier.
- Using a column in a measure without aggregation. Writing
Sales[Amount]on its own inside a measure causes an error, because the measure doesn't know which row's value to take. The column must be wrapped in a function such asSUMorMAX, or used inside an iterator function (SUMX). - Confusing names in visuals. Giving a measure and a column the same name makes formulas harder to read. A good habit is to reference measures by name only and columns together with their table name:
[Total Sales]andSales[Amount].
A simple decision rule
To decide which one to use, ask yourself these questions:
- Will you use the result in a slicer, a filter or as a category on a chart axis? If yes — calculated column (or a Power Query column).
- Is the result fixed for each row and independent of the user's selections? If yes — calculated column.
- Is the result a sum, count, average, percentage or ratio that should change with the selected filters? If yes — measure.
- If you're not sure, try writing it as a measure first: it doesn't weigh down the model and suits most analytical questions better.
Conclusion
The difference between calculated columns and measures is one of the most fundamental topics in Power BI and the foundation of learning DAX. A calculated column creates a fixed, stored value for each row and is suited to categories, filters and relationships. A measure is calculated “live” as you work with the report and is the main tool for business metrics such as sales, profit, margin and growth. Once you understand row context and filter context, CALCULATE, time intelligence and more complex DAX formulas start to make sense too.
If you want to learn data cleaning with Power Query, data modeling, DAX and building interactive dashboards on real sales, HR and finance datasets, take a look at Orient Academy's Data analytics with Power BI course.