Sales Table
Gold = row context, Green = filter context
Order
Customer
Region
Category
Amount
Difference in plain words
Foundation for context transitionRow Context
One row at a time
Created by calculated columns and iterator functions like SUMX, AVERAGEX,
FILTER, and ADDCOLUMNS. It tells DAX which row it is currently standing on.
Filter Context
A set of visible rows
Created by slicers, filters, relationships, and CALCULATE(). It decides which rows a measure
can see when computing an aggregation like SUM.
Example 1: Row context expression
Line Value = Sales[Quantity] * Sales[Unit Price]
This works because DAX evaluates the current row.
Example 2: Filter context measure
Total Sales = SUM(Sales[Amount])
This measure changes only when the visible set of rows changes.