Forum Discussion
warrenpoh
9 years agoFrequent Visitor
Using RANKX to rank Top N aggregate measures
Hi, I have searched relatively hard for this - sorry if it's been covered already - any tips would be helpful. I have a series of 34,000 transaction data for various timesheet entries. I hav...
- 9 years ago
In this scenario, since your rank is based on each staff's sales total, you should use ALLEXCEPT() to calculate the total group on each staff as Anonymous suggested.
Rank = RANKX(ALL(Table1[Name]),CALCULATE(SUM(Table1[Sales]),Table1[IsSold]="T",ALLEXCEPT(Table1,Table1[Name])))
Regards,