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

Rankx to measure performance

So I am trying to use Rankx to measure performance of agents. However each KPI has it's own goal. 

 

Quallity  <= .90 
AHT >= 10
Wrap >= 2
CSAT <= .80

 

Example

Rankx.png

 

Current formula 

Ranking  =
RANKX (
ALL ( 'Roster' ),
RANKX ( ALL ( 'Roster'), [QA], ,ASC )
+ DIVIDE (
RANKX ( ALL ( 'Roster'), [AHT (Call)] , ,DESC ),
( COUNTROWS ( ALL ( 'Roster' ) ) + 1 )
+ DIVIDE (
RANKX ( ALL ( 'Roster' ), [Avg. Wrap] , ,DESC ),
( COUNTROWS ( ALL ( 'Roster' ) ) + 2 )
+ DIVIDE (
RANKX ( ALL ( 'Roster'), [CSAT offered] , ,ASC ),
( COUNTROWS ( ALL ( 'Roster' ) ) + 3 )
)
)))

 
1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

I think your formula is fine and you just need to increase the proportion of each row like below.

 

rankvalue = 
var a = RANKX(ALL('Table'),[A1],,DESC,Dense)*100000
var b = RANKX(ALL('Table'),[B1],,DESC,Dense)*1000
var c = RANKX(ALL('Table'),[C1],,DESC,Dense)*10
var d = RANKX(ALL('Table'),[D1],,DESC,Dense)
return
a+b+c+d

 

6.PNG

 And if your proportion for each row is low the result would be effected.

 

rankvalue = 
var a = RANKX(ALL('Table'),[A1],,DESC,Dense)*4
var b = RANKX(ALL('Table'),[B1],,DESC,Dense)*3
var c = RANKX(ALL('Table'),[C1],,DESC,Dense)*2
var d = RANKX(ALL('Table'),[D1],,DESC,Dense)
return
a+b+c+d

 

 7.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

I think your formula is fine and you just need to increase the proportion of each row like below.

 

rankvalue = 
var a = RANKX(ALL('Table'),[A1],,DESC,Dense)*100000
var b = RANKX(ALL('Table'),[B1],,DESC,Dense)*1000
var c = RANKX(ALL('Table'),[C1],,DESC,Dense)*10
var d = RANKX(ALL('Table'),[D1],,DESC,Dense)
return
a+b+c+d

 

6.PNG

 And if your proportion for each row is low the result would be effected.

 

rankvalue = 
var a = RANKX(ALL('Table'),[A1],,DESC,Dense)*4
var b = RANKX(ALL('Table'),[B1],,DESC,Dense)*3
var c = RANKX(ALL('Table'),[C1],,DESC,Dense)*2
var d = RANKX(ALL('Table'),[D1],,DESC,Dense)
return
a+b+c+d

 

 7.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
CheenuSing
Community Champion
Community Champion

Hi @Anonymous ,

 

When you are trying to get Rank based on 4 different criteria. I would recommend a weightage to be given to each criteria.  Then using the achievement in each criteria arrive at the weightage for the criteria.  Sum up the weightage of criteria. Then rank based on the sum weihtage.

 

 

Cheers

 

CheenuSing 

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

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.