Forum Discussion
Ranking changes when applying filters
- 7 years ago
Hi,
This measure solves the problem
RankProdHr = IF(HASONEVALUE(BizLine[ProvName]),RANKX(ALLSELECTED(BizLine[ProvName]),[Prod/Hr]))Hope this helps.
You are welcome. To pay heed to the specific Clinic names chosen in the slicer.
New Problem has arisen. When I select any other provider with the slicer, they all are ranked 1. I need them to maintain their rank when filtered by slicer. How to cope with this?
Man thanks,
Mike
- Ashish_Mathur7 years agoSuper User
Cannot understand. Show the exact problem and also the expected result.
- JellyFishBi7 years agoHelper I
Thanks for the response.
As you can see, the provider Rubis is ranked 2 prior to any filtering and then when filtered to his name, he is ranked 3.
Afer Filtering, His rank Increases to 3.
I Would like his rank to maintain the rank of 2.
My Current formula for this is:
RankProdHr = IF(HASONEVALUE(BizLine[ProvName]),RANKX(ALL(BizLine[ProvName]),[Prod/Hr]))Using ALLSELECTED returns the Rank to 1 when filtered which is not the desired outcome.My thanks.- Ashish_Mathur7 years agoSuper User
Hi,
Try this measure
=IF(HASONEVALUE(BizLine[ProvName]),RANKX(CALCULATETABLE(ALL(BizLine[ProvName]),ALLSELECTED(BizLine[ClientName])),[Prod/Hr]))
If it does not, share the link from where i can download your PBI file.