Forum Discussion

menglaro78's avatar
menglaro78
Microsoft Employee
6 years ago
Solved

TOP N RANK EXCLUSIVE

Hi All,

i have this situation,

For each team I would like to score the top 3 players.

 

MEXICO TEAM ISSUE:

 

In this case 2 players have same results Ancer -1 and Morikawa -1, sono for top n filter both are considered.

I would like a measure that considers only 1.

 

Correct result for Mexico total would like -8

 

This is the measure that i use in a table.

 

FilterTop3ByCat_Filter =
VAR Top3Cat =
CALCULATETABLE (
GENERATE (
VALUES ( TEAMS[Team] ),
TOPN (
3,
CALCULATETABLE ( VALUES ( TEAMS[Player]) ),
[Par]*-1, DESC
)
),
ALLSELECTED()
)
RETURN
CALCULATE (
1 * ( NOT ISEMPTY ( TEAMS ) ),
KEEPFILTERS ( Top3Cat )
)

Any Ideas ?

 

 

Thank U 

Marco