Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
| SalesPerson | Sales | Measure Rankx |
| Jonh | 100 | 1 |
| Mary | 80 | 2 |
| Tom | 80 | 3 |
| Eli | 70 | 4 |
| Clark | 50 | 5 |
| Anne | 40 | 6 |
I wanna make a simple RANKX but I'm having some problems, my RANKX is the following:
Measure RANKX = RANKX(ALLSELECTED(BI_Sales[SalesPerson]); [Sum_Sales]))
Sum_Sales = SUM(BI_Sales[Sales])
I have done a simple RANK like this in other projects and it works.
Someone knows what can cause it?
Solved! Go to Solution.
Hi,
If you are wondering why the rank is the same, it is probably because there are decimal numbers in the sales figures. Check your source data.
Hi,
If you are wondering why the rank is the same, it is probably because there are decimal numbers in the sales figures. Check your source data.
Not Sure , I for the issue completely. Given all or table name instead of all selected
Measure RANKX = RANKX(ALL(BI_Sales[SalesPerson]); [Sum_Sales]))
Measure RANKX = RANKX((BI_Sales); [Sum_Sales]))
Refer for rank
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
I'm not sure what problem you are having. Did you want the ranking to be tied between the 2 that have the same sales? I'm pretty sure that you can specify the ties portion of a rankx measure with Dense or Skip
so the measure would look like..... Rankx(all selected(table); [measure],,dense))
I'm pretty sure that dense is the one that would give you 2 Rank 2's but I'd try both options and see what's better
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 40 | |
| 39 | |
| 31 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 67 | |
| 58 | |
| 29 | |
| 27 | |
| 25 |