Forum Discussion
rankx multiple columns allselected
- 4 years ago
Hi adelmonte ,
According to your description, if you want to use RANKX function in a measure, add a CALCULATE function before it, modify the formula to:
Rank = RANKX ( ALLSELECTED ( 'ranking' ), CALCULATE ( SUM ( 'ranking'[TOTAL SCORE] ) ), , DESC, DENSE )In my sample get the correct result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi adelmonte ,
According to your description, if you want to use RANKX function in a measure, add a CALCULATE function before it, modify the formula to:
Rank =
RANKX (
ALLSELECTED ( 'ranking' ),
CALCULATE ( SUM ( 'ranking'[TOTAL SCORE] ) ),
,
DESC,
DENSE
)
In my sample get the correct result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.