Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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 |
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.