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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Keep RANKX values static

In my organization we have our stores set up in a hierarchy that goes Region > District > Store. Each level of hierarchy has its own performance scorecard, and each Store/District/Region is ranked based on that score. I currently use this formula to produce a rank at each level:

 

SC Rank = IF(
ISFILTERED(Roster[Store]), RANKX(ALL(Roster[Store]),[SC Total Score]), IF(
ISFILTERED(Roster[District]), RANKX(ALL(Roster[District]),[SC Total Score]), IF(
ISFILTERED(Roster[Region]), RANKX(ALL(Roster[Region]),[SC Total Score]))))
 
This works as I'd expect it to at each level UNTIL a filter is applied. If someone selects to just view a specific District all Stores in that District are re-ranked against just each other rather than still showing their global rank. Is there a way to make it so that BI "remembers" what their global rank is (leave the rank static) rather than globally changing it?
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Use a calculated column rather than a measure.  Calculated columns are only refreshed once during data source refresh, and are unaffected by filter changes.

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Use a calculated column rather than a measure.  Calculated columns are only refreshed once during data source refresh, and are unaffected by filter changes.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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