Forum Discussion

archana_c's avatar
archana_c
Icon for Helper I rankHelper I
2 years ago
Solved

Give same rank to same group.

I have a table visual with the following columns, participant name(group), allocation no, outstanding balance. I need to rank the participant name(group) based on outstanding balance (desc order), bu...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi archana_c ,

    You can create a measure as below to get it, please find the details in the attachment.

    rank = 
    RANKX (
        ALLSELECTED ( 'Table'[participant name] ),
        CALCULATE (
            MAX ( 'Table'[outstanding balance] ),
            ALLEXCEPT ( 'Table', 'Table'[participant name] )
        ),
        ,
        DESC,
        DENSE
    )

    Best Regards