Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

RANKX ISSUES

I have been trying to iron out this issue for a week now.  I saw in tutorials that if you use ALL in your RANKX formula that the Rank result would not be "Ones".  I have done so in the below example ...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    8 years ago

    Anonymous

     

    Or with this

     

    Ranking =
    RANKX (
        SUMMARIZE (
            ALLSELECTED ( 'WMGBU BEx Query' ),
            'WMGBU BEx Query'[ENT BASE ITEM],
            'WMGBU BEx Query'[profit center]
        ),
        CALCULATE ( SUM ( 'WMGBU BEx Query'[DIRECT MARGIN (PROJECTED)] ) )
            / CALCULATE ( SUM ( 'WMGBU BEx Query'[REVENUE (PROJECTED)] ) )
    )