Forum Discussion
scabral
4 years agoHelper IV
Create dynamic Ranking measure
Hi, have the following table: Classification Division Operations Value Year Healthcare Eastern Boston 1,000,000 2021 Helathcare Western Los Angeles 500,000 2021 Healt...
- Anonymous4 years ago
Hi scabral ,
The formula should be:
Measure = Rankx(ALLSELECTED('Table'),CALCULATE(Sum('Table'[Value])),,desc,dense)Otherwise it will always return 1.Best Regards,Jay
amitchandak
4 years agoSuper User
scabral , Try like
Rankx(allselected(Table[Classification]) , calculate(Sum(Table[Value])) , ,desc, dense)
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
Measure Rank: https://www.youtube.com/watch?v=DZb_6j6WuZ0&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=40