Forum Discussion
FrancescaLu
4 years agoFrequent Visitor
DAX Ranking by group
Hi, I'm getting some problems finding the right syntax to create a new column which has to contain ranking values based on another column. I have a table made like this: Groups Amount ...
- 4 years ago
Hi,
Calculated Column:
MyRank = VAR ThisGroup = 'Table'[Groups] RETURN RANKX( FILTER( 'Table', 'Table'[Groups] = ThisGroup ), 'Table'[Amount], , , DENSE )Regards
Jos_Woolley
4 years agoSolution Sage
Hi,
Calculated Column:
MyRank =
VAR ThisGroup = 'Table'[Groups]
RETURN
RANKX(
FILTER(
'Table',
'Table'[Groups] = ThisGroup
),
'Table'[Amount],
,
,
DENSE
)Regards
FrancescaLu
4 years agoFrequent Visitor
It works!
Thank you very much