Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Good Afternoon
I am using the following formula to rank store sales, by store and region.
| Region | Store | Sales | Rank |
| North | A | 10% | 1 |
| North | B | 20% | 2 |
| South | A | 30% | 3 |
Solved! Go to Solution.
Hello @maurcoll,
Can you please try this DAX:
Store Ranking % sales (ASC) =
RANKX(
FILTER(ALL(Region[Store]), [Measure for % Sales] > 0),
[% Sales], , ASC, Dense
)
Hello @maurcoll,
Can you please try this DAX:
Store Ranking % sales (ASC) =
RANKX(
FILTER(ALL(Region[Store]), [Measure for % Sales] > 0),
[% Sales], , ASC, Dense
)
Good morning,
That is working for the majoirty it is only when i have a store with 0 sales that it is giving this store and the next store a ranking of 1, when all stores have sales it is working perfectly. Ideally i would like the 0% to be 1 and then the next store to show as 2. I have tried changing from skip to dense but this does not seem to make any difference. Thank you for your help
| Store | % Sales | Ranking |
| A | 1% | 1 |
| B | 0% | 1 |
| C | 1.5% | 2 |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |