Forum Discussion

Rice's avatar
Rice
Helper I
6 years ago
Solved

RankX Tie Break Alphabetically

Hello All,   I'm just looking for a way to break rankx ties alphabetically in DAX based on a secondary column (Such as Category Name) without using an index column. I have a simple table visual dis...
  • Vvelarde's avatar
    6 years ago

    Rice 

     

    Hi, Try with this DAX

     

    Note: You need to adjust to Column Names and Top 10 Filter.

     

    Ranking =
    RANKX (
        ALLSELECTED ( 'Table'[Pais] );
        'Table'[TotalPoints]
            + DIVIDE (
                RANKX (
                    ALLSELECTED ( 'Table'[Pais] );
                    CALCULATE ( MIN ( 'Table'[Pais] ) );
                    ;
                    DESC;
                    DENSE
                );
                1000
            )
    )

     

    Regards

     

    Victor