March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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 |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |