What a calculated column is
A calculated column is computed row by row with DAX, then stored in the model like any other column. It behaves like an Excel helper column: every row gets one fixed value.
Because it is stored, it costs memory and increases the file size. Because it is fixed, it cannot respond to a slicer.
Five good uses
1. Grouping values
Sales Band =
SWITCH( TRUE(),
Sales[Amount] >= 10000, "Large",
Sales[Amount] >= 1000, "Medium",
"Small"
)
Bands are stable per row and make excellent slicer and axis fields.
2. Flags
An IsRepeatCustomer flag or IsWeekend flag is easy to use in visuals and easy for business users to understand.
3. Concatenated keys
When two tables share a composite key, a calculated column such as Product & "-" & Region gives you a single key to build the relationship on.
4. Sort columns
Text months sort alphabetically. A numeric month or a sort-order column lets you sort the label correctly in visuals.
5. Row-level logic that must be visible
If users need to filter or export by the computed value, a column makes that possible in a way a measure cannot.
Three cases where a measure is better
- Anything that must respond to slicers. Column values are computed once; measures recompute under filters.
- Ratios and shares. A column cannot know the total of the current filter context.
- Anything that can be done in Power Query. Cleanup belongs upstream; convert type, trim, split and merge in Power Query rather than in DAX.
Calculated column or Power Query column
Both add a column; the difference is where the work happens.
| Calculated column | Power Query column | |
|---|---|---|
| Computed | After loading, in the model | Before loading, in the query |
| Can use model relationships | Yes | No |
| Can use DAX time intelligence | Yes | No |
| Cost | Model memory | Nothing after refresh |
Rule of thumb: cleaning and shaping in Power Query, model-aware logic in DAX.
Summary
Use calculated columns for stable, row-level attributes that people must see or filter by. Use measures for anything dynamic, and Power Query for anything that is really cleaning.