Forum Discussion
Zx2000
Advocate I
3 years agoHelp me understand Calculate steps
Hello, I am trying to learn DAX and many things there are a real mystery which leads to rael frustration. At this stage Ii am trying to understand steps for CALCULATE from a DAX Bible, however there...
tamerj1
Community Champion
3 years agoOwenAuger, CNENFRNL, Greg_Deckler
Are the top active members in the community who have the ultimate understanding of the evaluation contexts. Hopping any of them having the time explain this behaviour of CALCULATE.
CNENFRNL
Community Champion
3 years agotamerj1 thank you for the compliment, I'm really flattered!
Above all, unlike Excel formula, DAX measures are super, super, super ... sensitive to all elements in its evaluation context; literally means, any element (relationship, row/column, slicer ...) does impact on the calculation.
As for your measure, I can't comment more than just simply it this way now, given that there is no data model available.
test 1 =
CALCULATE(
[Sales Amount],
KEEPFILTERS( 'Product'[Color] = "Red" ),
ALL( 'Product'[Color] )
)