

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: DAX
incomplete
2: Logical Functions – IF
incomplete
3: SWITCH Function
incomplete
4: Time Intelligence Functions
incomplete
5: More Time Functions
incomplete
6: Add Columns
incomplete
7: Aggregations
incomplete
8: Aggregations As Measures
incomplete
9: Iterators
incomplete
10: Calculated Columns vs. Measures
incomplete
11: Context in DAX
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Iterators are a type of aggregator, so you almost always want to use them in a measure rather than a calculated column.
It's tempting to use an iterator in a calculated column because the math is done row-by-row initially, but it still needs to properly aggregate at the end, so it should be a measure.
Here's a table showing the difference between a calculated column and a measure using the SUMX iterator:
Measure responds to slicers, filters, and drilldowns. The column never changes.
So, just like aggregations, iterators belong on measures!