Forum Discussion
Anonymous
7 years agoNot applicable
Ranking a measure
I know this question has been aasked before, I've tried to follow some of the answers but failed... I have a table called Results. This has ... - a column called Player - a column called Poi...
- 7 years ago
Hi Anonymous,
Based your sample, you could have a try with the measure below.
SumPointsRank = Var summry=SUMMARIZE(ALLSELECTED(Results),[Player],"Sum",SUM(Results[Points])) var tmp=ADDCOLUMNS(summry,"RNK",RANKX(summry,[Sum],,DESC,Dense)) return MAXX(FILTER(tmp,[Player]=SELECTEDVALUE(Results[Player])),[RNK])
If you don't want to create a temp table, you also could use the measure2.
Measure2=
RANKX(ALLSELECTED(Results),CALCULATE(SUM(Results[Points]),ALLEXCEPT(Results,Results[Player])),,DESC,Dense)Here is the output result.
More details, you could refer to the attachment.
Best Regards,
Cherry
v-piga-msft
7 years agoResident Rockstar
Hi Anonymous,
Based your sample, you could have a try with the measure below.
SumPointsRank = Var summry=SUMMARIZE(ALLSELECTED(Results),[Player],"Sum",SUM(Results[Points])) var tmp=ADDCOLUMNS(summry,"RNK",RANKX(summry,[Sum],,DESC,Dense)) return MAXX(FILTER(tmp,[Player]=SELECTEDVALUE(Results[Player])),[RNK])
If you don't want to create a temp table, you also could use the measure2.
Measure2=
RANKX(ALLSELECTED(Results),CALCULATE(SUM(Results[Points]),ALLEXCEPT(Results,Results[Player])),,DESC,Dense)
Here is the output result.
More details, you could refer to the attachment.
Best Regards,
Cherry
aizamkamadin
7 years agoHelper II
why when im using measure2, its give a different result(wrong result) compare to using temp table.
but if im using temp table.. i cant see the rank over the time.. because it give the same result.
pls help