Forum Discussion

TMoney's avatar
TMoney
Frequent Visitor
3 years ago
Solved

Difference between RANKX in Matrix and Card visuals

Hello, I've reached out to two experts on this, and neither has been able to figure this one out.   I have a basic RANKX formula, ranking Sales: Rank Sales = RANKX ( ALL( 'aims teams' ), [SUM....
  • v-easonf-msft's avatar
    v-easonf-msft
    3 years ago

    Hi, TMoney 

    I'm sorry for replying so late, I've just seen your message.

    Please checked the attached pbix file. You may need to modify the measure formula like:

    New Rank Basic = 
    VAR tab =
        ADDCOLUMNS (
            ALLEXCEPT('aims teams','aims teams'[Index]),
            "SUM.$Sales", [SUM.$Sales],
            "_Rank basic", [Rank basic]
        )
    
    RETURN
        MINX(tab, [_Rank basic] )

     

    Best Regards,
    Community Support Team _ Eason