Forum Discussion
JellyFishBi
7 years agoHelper I
Ranking changes when applying filters
Good Evening Folks. My Problem with RANKX is that It ranks my list just fine as shown: BUT When I filter by a Provider, "Reem" in this case, His rank drops to 2 as shown. My Formula is...
- 7 years ago
Hi,
This measure solves the problem
RankProdHr = IF(HASONEVALUE(BizLine[ProvName]),RANKX(ALLSELECTED(BizLine[ProvName]),[Prod/Hr]))Hope this helps.
JellyFishBi
7 years agoHelper I
Looks Great. Thank you. Why did we need allselected?
Ashish_Mathur
7 years agoSuper User
You are welcome. To pay heed to the specific Clinic names chosen in the slicer.
- JellyFishBi7 years agoHelper I
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.