Forum Discussion
GWoodhouse
3 years agoNew Member
Problems with DAX RankX
I have a table containing Country names and Priority Orders Country Priority UK 1 US 1 NL 2 and another table containing a measure that sums a value What I want is...
- 3 years ago
hi GWoodhouse
try like:
Country Rank =Rankx(all(Country[CountryName]),CALCULATE[MySumMeasure], ALL(Country[Priority]),,desc,Dense)
GWoodhouse
3 years agoNew Member
PERFECT!
Now please explain why that works 😉
FreemanZ
Super User
3 years ago[MySumMeasure], as a measure, has an implicit CALCULATE, which converts the row context - Priority, to filter context.