11-24-2017 09:35 AM
I'm hoping someone can help!
I have a table 'Performance' which has the below columns:
There are 25 Contracts and 10 SalesGroups, although this number could change.
There is a calculated measure which returns %age actual against target:
I want to rank each Contract's PerfSum 1-25 (or 1-x is less Contracts are selected) within each SalesGroup, and each SalesGroup 1-10 (1-x if less SalesGroups are selected) against the other SalesGroups within whatever parameters are selected but cannot get RANKX to work for this.
Any help would be greatly appreciated!
11-24-2017 09:25 AM
Seriously stuck and in need of help please!
I have a table which has the following columns:
There are 25 contracts and 10 sales groups, but this could change.
From this the calculated measure PerfSum is created to give a dynamic % of target:
I want to rank PerfSum so that it is ranks each contract 1-25 under each of the 10 SalesGroups and also each SalesGroup 1-10 against the others but can't seem to get RANKX to work.
11-24-2017 01:36 PM
The trick with RANKX is you need to use ALL.
if you dont use all, it will rank each item against itself and you always get 1.
ypu should always add table names in front of column names
11-24-2017 03:55 PM
11-24-2017 04:13 PM
Ideally would like to update with selected parameters, but both dynamic and static measures would be useful to get an ‘overall’ and ‘within selexted’ Ranking.