Diwali Offer!Flat 20% OFF
Enroll Now
PrakalpanaLive online tech training
Data Analytics⏱️ 8 min readπŸ“… Nov 26

Calculated Column vs Measure in Power BI: Differences, Examples and When to Use Each

RM
Rohit Malhotraβ€’BI Developer
πŸ“‘ Contents (17 sections)

πŸ“ŒThe Short Answer

  • A calculated column is computed once per row at refresh and stored in the model. Use it when you need a value to slice, filter, group or relate by.
  • A measure is computed at query time in the current filter context and is not stored. Use it for anything you aggregate: totals, ratios, KPIs, comparisons.
  • If you remember one rule: if it goes on an axis or slicer, it can be a column; if it goes in the values of a visual, it should be a measure.

    πŸ“ŒHow a Calculated Column Works

    Line Amount = Sales[Quantity] * Sales[UnitPrice]
    Price Band = IF ( Product[ListPrice] >= 1000, "Premium", "Standard" )

  • Evaluated in row context: "the current row".
  • Calculated during refresh, then stored and compressed like any column.
  • Increases model size and refresh time.
  • Does not react to slicers; its value is fixed per row.
  • πŸ“ŒHow a Measure Works

    Total Sales = SUMX ( Sales, Sales[Quantity] * Sales[UnitPrice] )
    Margin % = DIVIDE ( [Total Profit], [Total Sales] )

  • Evaluated in filter context: whatever slicers, rows, columns and filters apply to the cell.
  • Not stored; costs CPU at query time, not memory.
  • Reacts to every interaction in the report.
  • Can reference other measures, building logic in layers.
  • πŸ“ŒSide by Side

    Calculated columnMeasure

    EvaluatedAt refresh, per rowAt query time, per visual cell ContextRow contextFilter context StoredYes, uses memoryNo Reacts to slicersNoYes Use in slicers, axes, relationshipsYesNo (except field parameters) Typical useCategories, bands, keys, flagsTotals, ratios, KPIs, time intelligence

    πŸ“ŒExamples: Which Should It Be?

  • Age band of a customer (18 to 25, 26 to 35): column, because you slice by it.
  • Total revenue: measure.
  • Profit margin %: measure. A column would average row margins incorrectly.
  • Financial year of a date: column in the date table.
  • Customer rank by sales that changes with filters: measure with RANKX.
  • Fixed customer segment based on lifetime value: column (or upstream in SQL).
  • Concatenated key for a relationship: column, ideally created in Power Query or SQL.
  • πŸ“ŒWhy Margin % as a Column Is Wrong

    A row level margin column, summed or averaged in a visual, gives the wrong answer because ratios are not additive. The correct margin is total profit divided by total sales in the current context, which only a measure gives.

    πŸ“ŒColumns: DAX vs Power Query vs SQL

    If a column only depends on the same row, create it in Power Query or SQL instead of DAX. It compresses better, keeps logic upstream, and refresh is often faster. Use DAX calculated columns mainly when you need data from related tables or model level logic, such as RELATED or ranking across the table. See the Power Query tutorial.

    πŸ“ŒCalculated Tables

    Calculated tables are created with DAX table expressions, for example a date table or a summary table:

    Date = CALENDAR ( DATE ( 2023, 1, 1 ), DATE ( 2026, 12, 31 ) )

    They are stored like imported tables and recalculated at refresh.

    πŸ“ŒImplicit vs Explicit Measures

    Dragging a numeric column into a visual creates an implicit measure (Power BI sums it automatically). Professionals write explicit measures instead:

  • reusable across visuals and reports
  • consistent formatting
  • required for calculation groups and many features
  • clearer for Copilot and other users
  • You can discourage implicit measures in model settings.

    πŸ“ŒPerformance Impact

    Too many calculated columns on large fact tables bloat memory and slow refresh. Too many complex measures in one visual slow queries. Balance them, and measure with Performance Analyzer. See the performance guide.

    πŸ“ŒInterview Answer Template

    "A calculated column is computed row by row at refresh using row context and stored in the model, so it uses memory and does not respond to slicers. A measure is computed at query time in the filter context of each visual cell, is not stored, and responds to interaction. I use columns for attributes I slice or relate by, ideally created in Power Query or SQL, and measures for every aggregation and KPI."

    More in Power BI interview questions.

    πŸ“ŒFrequently Asked Questions

    Which is faster, a calculated column or a measure?

    Columns cost memory and refresh time; measures cost query time. For aggregations, measures are the right choice and perform well on a good model.

    Can I use a measure in a slicer?

    Not directly. Use a calculated column, or a field parameter, or a disconnected table pattern.

    Can a measure reference a calculated column?

    Yes. Measures can aggregate calculated columns like any other column.

    What is row context vs filter context?

    Row context is the current row in a column or iterator. Filter context is the set of filters on a calculation. See the DAX cheat sheet.

    πŸ“ŒLearn It Live

    Prakalpana's Power BI course teaches DAX concepts like row and filter context hands-on, taught live online with an optional 1-on-1 track. See the Power BI learning path, then WhatsApp or call +91 9180377502 for a free demo.

    RM

    Written by

    Rohit Malhotra

    BI Developer

    πŸš€ Master Data Analytics

    Live online + 1-on-1 Power BI training Β· Join 5000+ developers

    Not sure what to do? Book career counselling (β‚Ή200 / 30 min)

    Not sure what to learn next?

    A 1-on-1 session with an industry mentor and a roadmap built for you. How it works

    1. 1Discuss your goals
    2. 2Get a personal plan
    3. 3Start learning
    Book for β‚Ή200/ 30 min