Forum Discussion
Rank Measure
bdehning ,
cRecord is just a variable name. You can call it whatever you want, but i'm labeling it as cRecord to indicate that it is the current record on the visual.
The divide is used to convert a whole number into a decimal number. The tiebreaker looks at all visible output and returns a tiebreaker score starting from 1 and upwards until your last visible record.
If you break down the output it would be something simlar (considering lowest count is ranked 1):
Having a hard time in getting this to work . We would need to use the Sum of Total Gross Incurred for each Cause Group to break the tie.
[Count of Total Gross Incurred] + DIVIDE(_TieBreaker, 100),
How could the Divide be swapped out to use the Sum of Total Gross Incurred for each Cause Group
- hnguy713 years agoSuper User
bdehning it would just be replaced by your sum of total gross incurred. This would be then your tiebreaker value.
[Count of Total Gross Incurred] + [Sum of Total Gross Incurred],- bdehning3 years agoPost Prodigy
Working on it. Do cRecord and tmpRank need to be columms or can they be measures?
- bdehning3 years agoPost ProdigySecond Return says Unexprected ReturnRETURN _tmpRank,RETURN
- bdehning3 years agoPost Prodigy
Working on it. Do cRecord and tmpRank need to be columms or can they be measures?
- hnguy713 years agoSuper User
bdehning since you're not using the tiebreaker variable, you can get rid of it all
IF( ISINSCOPE( 'InjuryCause'[Cause Grouping]), RANKX ( CALCULATETABLE ( VALUES ( 'InjuryCause'[Cause Grouping]), ALLSELECTED ( 'InjuryCause'[Cause Grouping] ) ), [Count of Total Gross Incurred] + [Sum of Total Gross Incurred], , DESC, DENSE ) )