Forum Discussion
Anonymous
6 years agoNot applicable
Rank using multiple attribute columns and 1 value column
Hi all, Maybe i am stupid, but i am strugling with Ranking formula quite a bit and was not able to find solution afer looking into various online rescources. I have dataset with various peopl...
- 6 years ago
Hi Anonymous
Create a calcualted column,
month-year = FORMAT([Day],"Mmmm YYYY")Then create two measures
sum = CALCULATE ( SUM ( 'Table 3'[Value] ), FILTER ( ALLSELECTED ( 'Table 3' ), 'Table 3'[Name] = MAX ( 'Table 3'[Name] ) && 'Table 3'[month-year] = MAX ( 'Table 3'[month-year] ) && 'Table 3'[Group] = MAX ( 'Table 3'[Group] ) ) ) rank = RANKX ( FILTER ( ALLSELECTED ( 'Table 3' ), 'Table 3'[month-year] = MAX ( 'Table 3'[month-year] ) && 'Table 3'[Name] = MAX ( 'Table 3'[Name] ) ), [sum], , DESC, DENSE )Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
Super User
6 years agoHi,
Your expected result in the first post is confusing. Why should there be a rank 1 for all rows? Please explain.
- Anonymous6 years agoNot applicable
In final output, i considered that i have already filtered a table to show only rank 1.
Goal is to see only highest value group per person per month.
Hope it makes it clearer
Filarap
- Ashish_Mathur6 years ago
Super User
Hi,
Based on the first Table that you have shared in your first post, please show the exact rank that you are expecting.