Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Difference Between ALL and VALUES direction

So my last question about the World Cup was maybe too involved so i'll try breaking it up into smaller pieces.  I have 2 table visualizations: Where one is just a subset of the other and ...
  • AntrikshSharma's avatar
    AntrikshSharma
    6 years ago

    Modified your measure to this:

    Phase1_GD_Ranking = 
    IF (
        HASONEVALUE ( Scores[Team] ),
        RANKX (
            ALLSELECTED ( Scores[Group], Scores[Team] ),
            CALCULATE ( SUM ( Scores[Goal Differential] ) ),
            ,
            DESC,
            SKIP
        ),
        BLANK ()
    )