Forum Discussion
rhl94
6 years agoAdvocate III
Return a constructed column to MAX()
Hi I'm looking to create a ranking as a measure. It looks like the following: RANKX(ALL(Corporate),CALCULATE(SUM(Corporate[Amount])),,ASC,Dense) I'd like, in the measure, to divide t...
- 6 years ago
what if try to use ALL()?
DIVIDE ( RANKX ( ALL ( Corporate ), CALCULATE ( SUM ( Corporate[Amount] ) ), , ASC, DENSE ), MAXX (ALL ( Corporate ), RANKX ( ALL ( Corporate ), CALCULATE ( SUM ( Corporate[Amount] ) ), , ASC, DENSE )) )do not hesitate to give a kudo to useful posts and mark solutions as solution
rhl94
6 years agoAdvocate III
Unfortunately that does not seem to work:
The Rank column is the desired outcome.
az38
6 years agoCommunity Champion
what if try to use ALL()?
DIVIDE (
RANKX ( ALL ( Corporate ), CALCULATE ( SUM ( Corporate[Amount] ) ), , ASC, DENSE ),
MAXX (ALL ( Corporate ), RANKX ( ALL ( Corporate ), CALCULATE ( SUM ( Corporate[Amount] ) ), , ASC, DENSE ))
)do not hesitate to give a kudo to useful posts and mark solutions as solution