Forum Discussion
Rank not staying static
Hi!
I have 8 regions that I want to rank based on a measure. When I have all the regions selected the rank is correct. However, when I filter for one region, then rank increases by one. I think maybe when I filter the regions it includes my "Blanks" but I don't know how to avoid this? Here is my current formula:
Rank = RANKX(ALLNOBLANKROW( 'Store List'[Region] ), [Loss],,ASC)
Hi raharebecca
If [Loss] is a measure and you want to ignore blank regions, you could create a measure as below
Measure = RANKX(FILTER(ALLSELECTED('Table'),'Table'[region]<>BLANK()),[loss],,ASC,Dense)Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- raharebeccaFrequent Visitor
Hi! I have 7 Regions and when I have all of them listed in a table they are ranked correctly. However, when I put in a region slicer and select one region, the rank increases by one. So my region ranked 7th, when selected in the slicer shows a rank of 8 even though there are only 7 regions. I can't understand why it increases only when one is selected. I have tried a million different versions of formulas but the rank still always increases. Any insight would be much appreciated.
- v-juanli-msft
Community Support
Hi raharebecca
If [Loss] is a measure and you want to ignore blank regions, you could create a measure as below
Measure = RANKX(FILTER(ALLSELECTED('Table'),'Table'[region]<>BLANK()),[loss],,ASC,Dense)Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - v-juanli-msft
Community Support
Hi raharebecca
Is this problem sloved?
If it is sloved, could you kindly accept it as a solution to close this case?
If not, please let me know.
Best Regards
Maggie