This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello team
I need your support regarding the dax measure RANKX. When using the measure in a matrix i get the correct ranking by customer. However, when selecting a specific customer from a slicer or another visual, the ranking is wrong (for some customers).
The DAX measure is :
RANKX(ALL('Table'[customer]),[Sales])
Enclosed a data simplified.
Thank you for the support.
Solved! Go to Solution.
Hi @Rachid1679 ,
You can try the following dax
Rank =
RANKX(ALL('Table'),CALCULATE(SUM('Table'[Sales])),,DESC)
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
I used these measures
S = SUM(Data[Sales])Rank = RANK(DENSE,ALL(Data[Customer]),orderby([S],DESC))
Hope this helps.
Hi,
I used these measures
S = SUM(Data[Sales])Rank = RANK(DENSE,ALL(Data[Customer]),orderby([S],DESC))
Hope this helps.
Hi @Rachid1679 ,
You can try the following dax
Rank =
RANKX(ALL('Table'),CALCULATE(SUM('Table'[Sales])),,DESC)
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 23 | |
| 23 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 63 | |
| 38 | |
| 28 | |
| 23 | |
| 22 |