Calculated column or measure?

The most common question when starting with DAX: does the formula belong in a column or in a measure? The answer depends on whether you need a value per row or a number that changes with the filters in the report.

In short: a column when every row needs a value of its own that you want to group or filter by. A measure for KPIs calculated per cell from many rows. Often both work together: the column per row, the measure summarizes.

Prerequisites: Calculated columns.

Try it now

Task Create the calculated column "Unit Price" in Sales: Amount divided by Quantity, for every order.

Sales 120 rows, 7 columns
OrderIDOrderDateShipDateProductIDRegionIDQuantityAmount
13 Oct 20266 Oct 20261221798
29 Nov 202519 Nov 20252351145
320 Sep 202627 Sep 2026544596
416 Jun 20252 Jul 20252151145
526 Mar 202631 Mar 20261343596
64 Dec 202510 Dec 2025545745
78 Jul 202526 Jul 2025614196
820 Feb 20251 Mar 202532359.7
99 Dec 202524 Dec 202562298
1012 Aug 202625 Aug 2026212458
117 Sep 202612 Sep 2026542298
122 Mar 202614 Mar 2026623147

Showing the first 12 of 120 rows.

Measures: [Total Sales]

Product 6 rows, 4 columns
ProductIDProductCategoryPrice
1LaptopHardware899
2MonitorHardware229
3MouseAccessories19.9
4KeyboardAccessories39.9
5Office suiteSoftware149
6AntivirusSoftware49
Region 4 rows, 2 columns
RegionIDRegion
1North
2South
3West
4East
Date 730 rows, 4 columns
DateYearMonthMonthName
1 Jan 202520251Jan
2 Jan 202520251Jan
3 Jan 202520251Jan
4 Jan 202520251Jan
5 Jan 202520251Jan
6 Jan 202520251Jan
7 Jan 202520251Jan
8 Jan 202520251Jan
9 Jan 202520251Jan
10 Jan 202520251Jan
11 Jan 202520251Jan
12 Jan 202520251Jan

Showing the first 12 of 730 rows.

The difference

Calculated columnMeasure
Calculatesonce per row, at load timeper cell in the report, on every filter change
Contextrow context: the values of the current rowfilter context: every row the filters leave
Storagetakes space in the modeltakes none, only calculation time
Used inrows, axes, slicers, filtersvalues, cards, KPIs
Exampleunit price per order, age group per customersales, order count, percent of total

Working together

Many KPIs need both. The unit price belongs to every order, so a column. Its average per category depends on the filters, so a measure over that column. A measure with just the column's formula fails because it has no current row.

Task Find the error: the measure should show the average of the unit prices across all orders. The column Sales[Unit Price] from the previous exercise already exists. Why does the formula fail, and how does it work?

Sales 120 rows, 8 columns
OrderIDOrderDateShipDateProductIDRegionIDQuantityAmountUnit Price
13 Oct 20266 Oct 20261221798899
29 Nov 202519 Nov 20252351145229
320 Sep 202627 Sep 2026544596149
416 Jun 20252 Jul 20252151145229
526 Mar 202631 Mar 20261343596899
64 Dec 202510 Dec 2025545745149
78 Jul 202526 Jul 202561419649
820 Feb 20251 Mar 202532359.719.9
99 Dec 202524 Dec 20256229849
1012 Aug 202625 Aug 2026212458229
117 Sep 202612 Sep 2026542298149
122 Mar 202614 Mar 202662314749

Showing the first 12 of 120 rows.

Measures: [Total Sales]

Product 6 rows, 4 columns
ProductIDProductCategoryPrice
1LaptopHardware899
2MonitorHardware229
3MouseAccessories19.9
4KeyboardAccessories39.9
5Office suiteSoftware149
6AntivirusSoftware49
Region 4 rows, 2 columns
RegionIDRegion
1North
2South
3West
4East
Date 730 rows, 4 columns
DateYearMonthMonthName
1 Jan 202520251Jan
2 Jan 202520251Jan
3 Jan 202520251Jan
4 Jan 202520251Jan
5 Jan 202520251Jan
6 Jan 202520251Jan
7 Jan 202520251Jan
8 Jan 202520251Jan
9 Jan 202520251Jan
10 Jan 202520251Jan
11 Jan 202520251Jan
12 Jan 202520251Jan

Showing the first 12 of 730 rows.

This exercise is part of Premium.

Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.

See Premium Already Premium? Log in

The first exercise in this lesson is free.

Rules of thumb

  • If the result should appear in rows, on an axis or in a slicer: column.
  • If it should change when someone filters the report: measure.
  • When in doubt, a measure: it does not make the model bigger.
  • Columns that only use values from the same row can often be done in Power Query already.

Common mistakes

A total as a column

A column Total = SUM(Sales[Amount]) writes the same grand total into every row. It does not get smaller when the report filters. Totals belong in measures.

Not every average is the same

The average of the unit prices treats every order equally. Total sales divided by total quantity is weighted by quantity. Both are right, but for different questions.

Frequently asked questions

Can a measure use a calculated column?

Yes, like any other column, with an aggregation such as SUM or AVERAGE.

And the other way round?

A column can call a measure. The measure then calculates for every row with that row's filter (context transition). That is a topic for levels 4 and 5.

Up next: a model for sales project

A complete model with relationships, a date table, columns and a measure.

Go to the project

Write to us

Choose language

Select your preferred language