Writing a ranking measure

butlerrbrian

New Member
Joined
Jan 30, 2013
Messages
37
I need to rank a team of agents on several different KPI to arrive at an overall ranking.

As a part of building the base measure, I am using the formula below, which returns [TABLE="width: 1215"]
<TBODY>[TR]
[TD]ERROR - CALCULATION ABORTED: Calculation error in measure 'Agent Historical'[Rank of Unproductive Pct]: A table of multiple values was supplied where a single value was expected. It appears to be correct, so I am befuddled.:eeek:[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]


=COUNTROWS(FILTER(all('Agents'[Agent Name]), 'Agent Historical'[M_Pct Unprod] (Values('Agents'[Agent Name]))<'Agent Historical'[M_Pct Unprod] && 'Agents'[Agent Name]<>VALUES('Agents'[Agent Name])))+1
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
When doing rankings, you better use RANKX() or you'll encounter BIG performance issues. The COUNTROWS() approach was used back in the days of Powerpivot v1 but I would never use that approach ever again. :(
 
Upvote 0
you mean that it did not return the expected results? in that case, let's try fixing it =) Can you upload a copy of your workbook or maybe replicate the model in a new workbook with dummy data?
 
Upvote 0
A clear mind in the morning (and a bit of reading Rob Collie), and I got the syntax for the base measures. Now to stack the rankings into an overall.
 
Upvote 0

Forum statistics

Threads
1,223,954
Messages
6,175,601
Members
452,658
Latest member
GStorm

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top