PL-300 - Model the Data - Section 2.2

Create model calculations using DAX including measures, calculated columns, and time intelligence.

Write DAX measures and calculated columns, and use CALCULATE to modify filter context for comparisons such as year-over-year growth via time intelligence functions. Distinguish row context from filter context to predict how an expression evaluates inside a table versus a visual.

DAX measurescalculated columnsCALCULATE functiontime intelligence functionsrow context vs filter context

Practice question for this objective

Free sampleModel the Dataeasy

You are writing a measure that should sum Sales[Sales Amount] but only for rows where Product[Color] equals Blue, regardless of any color filter the visual applies. Which DAX function evaluates an expression in a modified filter context?

  • AWrap the SUM in CALCULATE and pass Product[Color] = "Blue" as the filter argument. Correct
  • BWrap the SUM in SUMX and pass Product[Color] = "Blue" as the filter argument.
  • CWrap the SUM in SUMMARIZE and pass Product[Color] = "Blue" as the filter argument.
  • DWrap the SUM in RELATED and pass Product[Color] = "Blue" as the filter argument.
CALCULATE is the DAX function that evaluates an expression in a modified filter context. CALCULATE evaluates an expression in a modified filter context. Passing Product[Color] = "Blue" as a Boolean filter argument adds a filter to the Product[Color] column or overwrites any existing filter on that column, producing a Blue-only sum.

Why A is correct: Correct. CALCULATE evaluates an expression in a modified filter context.

Why B is wrong: SUMX iterates a table and evaluates an expression per row; it does not accept a Boolean filter argument that modifies filter context.

Why C is wrong: SUMMARIZE groups a table by columns and returns a table; it is not the filter-context modifier for a scalar expression.

Why D is wrong: RELATED follows a relationship from a row context to fetch a single value; it does not modify filter context for an aggregation.

See more PL-300 practice questions, answers explained.

More in this domain

Back to all Model the Data objectives, or the PL-300 cert hub.

Examworthy is not affiliated with or endorsed by Microsoft. Original, blueprint-aligned practice material only.