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.
Ashish_Mathur
7 years agoSuper User
Hi,
Assuming Prod/hr is a measure, try this
RankProdHr = IF(HASONEVALUE(BizLine[ProvName]),RANKX(ALL(BizLine[ProvName]),[Prod/Hr]))
If it does not help, then share the link from where i can download your PBI file.
- JellyFishBi7 years agoHelper I
Thanks Ashish_Mathur, but no luck.
Here is the link.
https://drive.google.com/file/d/1DnCfpNOUR6x1u22aQYxAuePcfR4_6t-N/view?usp=sharing
Best,
Mike
- Ashish_Mathur7 years agoSuper User
Hi,
This measure solves the problem
RankProdHr = IF(HASONEVALUE(BizLine[ProvName]),RANKX(ALLSELECTED(BizLine[ProvName]),[Prod/Hr]))Hope this helps.- JellyFishBi7 years agoHelper I
Looks Great. Thank you. Why did we need allselected?