Power BI Data Analyst PL-300 · Model the Data · medium

When should a Power BI data modeler create a DAX Calculated Column instead of a DAX Measure?

Published · Last updated · checked before publication — how we verify questions

Options

  • AWhenever computing a dynamic percentage or profit margin ratio
  • BWhenever the calculation depends on user Slicer selections at runtime
  • CWhenever minimizing the RAM footprint of the VertiPaq model is priority
  • DWhen the resulting value must be placed on a Slicer or categorical axisCorrect answer

Answer: D. When the resulting value must be placed on a Slicer or categorical axis

Because DAX Measures are evaluated dynamically in filter context and do not exist at the row level prior to aggregation, they cannot be placed on a Slicer, used as a categorical axis/legend to slice visuals, or used as a relationship key. A Calculated Column (or Power Query column) is required when the result must be used as a Slicer, row/column group header, or relationship column.

Why the other options are wrong

  • A. Whenever computing a dynamic percentage or profit margin ratio — Ratios and percentages (Profit / Sales) must be computed as DAX Measures so numerator and denominator sum before dividing.
  • B. Whenever the calculation depends on user Slicer selections at runtime — Calculated Columns are precomputed only at data refresh time and never respond to runtime Slicer selections.
  • C. Whenever minimizing the RAM footprint of the VertiPaq model is priority — Measures consume zero storage RAM at rest, whereas Calculated Columns increase VertiPaq memory consumption.

All Model the Data questions and the topic overview →

Microsoft and Azure are trademarks of Microsoft Corporation. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Microsoft Corporation.