Forum Discussion
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:
RankProdHr = IF (
HASONEVALUE (
BizLine[ProvName] ),
RANKX(
ALL (
BizLine[ProvName]),NetProd[Prod/Hr]))Any help would be appreciated. I have adjusted this formula to exclude HASONEVALUE, i've included dense, skip. All produce the same behavior...
Thanks,
Mike
Hi,
This measure solves the problem
RankProdHr = IF(HASONEVALUE(BizLine[ProvName]),RANKX(ALLSELECTED(BizLine[ProvName]),[Prod/Hr]))Hope this helps.
16 Replies
- Ashish_MathurSuper 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.
- JellyFishBiHelper 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_MathurSuper User
Hi,
This measure solves the problem
RankProdHr = IF(HASONEVALUE(BizLine[ProvName]),RANKX(ALLSELECTED(BizLine[ProvName]),[Prod/Hr]))Hope this helps.