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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
SACooper
Helper II
Helper II

RankX Measure to ignore slicer

We have a scoreboard that shows our employee's their quality scores across different contact types (Email, Telephony, Face to Face as well as a Combined Score)

 

The Table (Quality) is defined with columns Date, Name, Assessment Type, Attritbute, Score_Acheive, Score_Potential

 

I have a variety of measures [Result]  are defined as

VAR Numerator = CALCULATE(SUM(Quality[Score_Achieved]), Quality[Assessment Type] = "Email")
VAR Denominator = CALCULATE(SUM(Quality[Score_Potential]), Quality[Assessment Type] = "Email")
RETURN
If (Denominator = 0, 0 , DIVIDE(Numerator, Denominator))
 
for the different types of assessment and the following for the overall result.
 
VAR Numerator = SUM(Quality[Score_Achieved])
VAR Denominator = SUM(Quality[Score_Potential])
RETURN
If (Denominator = 0, 0 , DIVIDE(Numerator, Denominator))
 
We have a simple Dashboard with a date slicer and an employee slicer (with a manager/employee hierarchy so we can look at team performances) and then a guage that shows their performance to target, for each type of assessment (Email, Telephony, Face to Face and a Combined Result)
 
What i'd like to acheive is a ranking measure that would essentially allow the employee to see that they are position X of Y employee's for that assessment Type. 
 
The closest i've got is 
 
Ranking =
RANKX(
    ALLSELECTED( Quality), CALCULATE( DIVIDE( SUM(Quality[Score_Achieved]), SUM( Quality[Score_Potential])), ALL( Quality[Assessment Completed For:])),,DESC,Dense
)
 
Which If I put employee, Score and this measure into a table returns the correct values - when I then add this to the dashboard a different figure is returned. It looks like its being affected by the employee slicer -- and i've not figured out a way to change it so it ignores this...
 
Any help would be really apprecaited. 
 
2 REPLIES 2
amitchandak
Super User
Super User

@SACooper , if you do not filter to change to all

 

Ranking =
RANKX(
    all( Quality), CALCULATE( DIVIDE( SUM(Quality[Score_Achieved]), SUM( Quality[Score_Potential])), ALL( Quality[Assessment Completed For:])),,DESC,Dense
)
 
But remember any column not covered by the Table expression in rank, rank will distribute inside that
 
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak Thank you for looking at this, unfortuantely this doesn't appear to be working, ranks everyone as 2 in the test table -- and does the same for the visuals when added as a tooltip.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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