Forum Discussion
Anonymous
8 years agoNot applicable
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 ...
- 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)] ) ) )
Zubair_Muhammad
Community Champion
8 years agoHi
Try with
ALL('WMGBU BEx Query'[Customer], 'WMGBU BEx Query'[profit center])
Try with
ALL('WMGBU BEx Query'[Customer], 'WMGBU BEx Query'[profit center])
Anonymous
8 years agoNot applicable
I tried to insert that into my formula and it errored out. Here is my actual formula....where should this be inserted ('WMGBU BEx Query'[profit center]) ?
Ranking = RANKX(ALLSELECTED('WMGBU BEx Query'[ENT BASE ITEM]),CALCULATE(SUM('WMGBU BEx Query'[DIRECT MARGIN (PROJECTED)]))/CALCULATE(sum('WMGBU BEx Query'[REVENUE (PROJECTED)])))
Thx for your assistance!