Calculated Columns and Measures

Create custom columns and measures in your data model using DAX formulas.

Columns and Measures in DAX both are core elements in Power BI, Excel Power Pivot, and SSAS Tabular models, but they serve different purposes.

Calculated Columns

A Calculated Column is a column added to an existing table using a DAX formula. It's calculated row-by-row when the data is loaded or refreshed.

Measures

A Measure is a calculation that evaluates based on the filter context of a report visual. It’s computed on the fly when the report is used.

Detailed Comparison

FeatureCalculated ColumnMeasure
When CalculatedAt data load or refreshWhen the user interacts with the report
Evaluation ContextRow contextFilter context
StoragePhysically stored in memoryNot stored; computed dynamically
PerformanceCan increase model sizeMore efficient for large datasets
UsageUseful for grouping, filtering, and relationshipsUsed for KPIs, aggregations, and visuals
Example Use CaseTax per row, Full Name from First + Last NameTotal Sales, Average Discount, Profit Margin
Syntax ExampleFullName = Customers[FirstName] & " " & Customers[LastName]Total Sales = SUM(Sales[Amount])

Key Differences

Calculated Columns work like Excel formulas: they add a new field to your table. You can use them in relationships, slicers, and row-level filters.

Measures are dynamic aggregations: they adjust based on filters and user interaction, and are ideal for KPIs, totals, and ratios.

When to Use Which?

ScenarioUse
Need a new field to filter or slice dataCalculated Column
Need to calculate a total, average, or KPIMeasure
Creating a relationship between tablesCalculated Column
Optimizing report performanceMeasure (preferred over many columns)
No questions available.