Forum Discussion
rhl94
Advocate III
6 years agoReturn 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
az38
Community Champion
6 years agoHi rhl94
try MAXX function https://docs.microsoft.com/en-us/dax/maxx-function-dax , smth like
DIVIDE (
RANKX ( ALL ( Corporate ), CALCULATE ( SUM ( Corporate[Amount] ) ), , ASC, DENSE ),
MAXX (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
Advocate III
6 years agoUnfortunately that does not seem to work:
The Rank column is the desired outcome.
- az386 years ago
Community 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