Forum Discussion

trishd1223's avatar
trishd1223
Frequent Visitor
3 years ago
Solved

Rankx skipping 0's/blanks

Hi - I'm having trouble with Rankx.  I don't want to rank 0's or blanks.  I was able to get the rankx to avoid assigning a rank # to 0's, however, it doesn't skip and resume to the next rank #.  For ...
  • Fowmy's avatar
    3 years ago

    trishd1223 

    Can you try the following measure?

    Rank adam test $ chg 2 =
    IF (
        [$ Chg Column for Ranking - adam] <> 0
            && ISINSCOPE ( AppendedData[Brand] ),
        RANKX (
            FILTER (
                ALLSELECTED ( AppendedData[Brand] ),
                [$ Chg Column for Ranking - adam] <> 0
            ),
            [$ Chg Column for Ranking - adam]
        )
    )