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 agoAnonymous
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)] ) )
)Anonymous
8 years agoNot applicable
One last question...is there a way to add to this formula that will restrict the results to only the top 10?
Thx
- Zubair_Muhammad8 years ago
Community Champion
Hi
Sorry for late reply. I am out of town actually
You can put the measure in visual filter and select top 10- Anonymous8 years agoNot applicable
I actually tried that with the Rank Measure and what would happen was from to month the viewable rows would change...10 one month, 8 another and sometimes only 3? That stumped me!