- A table is a class. Each student is one row.
- Row context = roll call. The teacher looks at one student at a time. Nobody leaves the room.
- Filter context = the door. βSection B only.β Everyone else steps out, so only 3 rows are visible.
- Together. Roll call now visits only the students still in the room.
Sales Table
Gold = row context, Green = filter contextDifference in plain words
Foundation for context transitionExplain more
Row 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.
Line Value = Sales[Quantity] * Sales[Unit Price]
Total Sales = SUM(Sales[Amount])