Forum Discussion
Help with RANKX in an existing measure
Hi,
I have this measure:
Hi Fusilier - Yes, it is possible to use RANKX to rank the result of your %SBC Count Agree measure based.
create below calculation:
Rank Agree % =
RANKX(
ALL('Raw Data'[Question]), // Table over which to rank (all questions)
[%SBC Count Agree], // Expression to rank by (the percentage measure)
, // Leave empty for default
DESC, // Rank in descending order (highest percentage first)
DENSE // Use DENSE ranking to avoid gaps in ranks
)
you should be able to rank your questions by the percentage of "Agree" responses as you want.
Hope this helps.
3 Replies
- rajendraongole1Super User
Hi Fusilier - Yes, it is possible to use RANKX to rank the result of your %SBC Count Agree measure based.
create below calculation:
Rank Agree % =
RANKX(
ALL('Raw Data'[Question]), // Table over which to rank (all questions)
[%SBC Count Agree], // Expression to rank by (the percentage measure)
, // Leave empty for default
DESC, // Rank in descending order (highest percentage first)
DENSE // Use DENSE ranking to avoid gaps in ranks
)
you should be able to rank your questions by the percentage of "Agree" responses as you want.
Hope this helps.