Locked lesson.
About this lesson
Creating measures is all very well, but you need to understand why they return what they do. In this module we will explain how to identify the filter context applicable to your data point, and how that influences the way measures are calculated.
Exercise files
Download this lesson’s related exercise files.
Understanding Measure Calculation.docx66.7 KB Understanding Measure Calculation - Solution.docx
66.7 KB
Quick reference
Understanding Measure Calculation
An overview of how the DAX engine calculates the measure’s results.
When to use
When you need to clarify why a value is being returned as it is, or when you need to debug a result.
Instructions
Key concepts around measure calculation:
- Every measure result is evaluated independently
- Each measure starts with the raw and unfiltered data tables
- Filters are applied to the underlying tables based on the “Filter Context”, reducing the number of rows to use in the calculation
- The Measure’s arithmetic signature is applied to whatever rows are left
What contributes to Filter Context?
- The intersection of any fields used in the row or column fields of the PivotTable
- The application of filters in a PivotTable
- Selections in any (all) slicers linked to the PivotTable
- Selections in any (all) timelines linked to the PivotTable
Hints & tips
- If the measure contains a CALCULATE() function, this debugging chart will not be sufficient for your needs. Please see the modules on the CALCULATE() function
Lesson notes are only available for subscribers.