One thing that can be really confusing when learning Power BI is understanding why the same DAX measure gives different results depending on where it's used.
You write a measure, it works fine in a card, but then you put it in a matrix and suddenly the totals look wrong. Or you add a slicer and the result doesn't change the way you expected.
Most of the time, understanding filter context makes these issues much easier to debug.
Put together this DAX cheat sheet covering some of the concepts that are useful to understand:
- Filter Context vs Row Context: Why measures behave differently depending on filters and where they're evaluated.
- CALCULATE: How to modify the filter context behind a calculation.
- ALL and REMOVEFILTERS: How to remove specific filters when calculating totals and percentages.
- KEEPFILTERS: How to preserve existing filters instead of replacing them.
- Context Transition: Why CALCULATE matters inside iterators like SUMX.
- Common DAX Mistakes: Why percentages sometimes show 100% on every row or totals don't match expectations.
The infographic includes examples to make these concepts easier to understand without going through lengthy tutorials.
I think getting comfortable with these basics makes writing and debugging DAX measures a lot easier.
Curious what others think. Which DAX concept took you the longest to understand, filter context, CALCULATE or context transition?