Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
JellyFishBi
Helper I
Helper I

Ranking changes when applying filters

Good Evening Folks.  My Problem with RANKX is that It ranks my list just fine as shown:
Rankx Before.png
BUT When I filter by a Provider, "Reem" in this case, His rank drops to 2 as shown.
Rankx After.png
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









1 ACCEPTED SOLUTION

Hi,

This measure solves the problem

RankProdHr = IF(HASONEVALUE(BizLine[ProvName]),RANKX(ALLSELECTED(BizLine[ProvName]),[Prod/Hr]))
Hope this helps.
Untitled.png

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

16 REPLIES 16

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.