Forum Discussion
Rankx Within Subcategory Not Working
- 6 years ago
Feeling pretty dumb right about now....I was placing the formula in a calculated column instead of a measure 🙄. Works now.
- 6 years ago
Hi byoung ,
If you want to use measure,please refer to
measure = RANKX(ALL(Transactions[Account Desc]),CALCULATE(SUM(Transactions[Amount])),,DESC,Dense)If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi Ashish,
Yes, Total Amount is a measure, the formula is sum(Transactions[Amount]).
I've implemented the suggested solution, but it appears the data may not be aggregating/grouping properly. The field Account Type is from a joined table, I'm not sure if that makes a difference or not, there is a 1 to many relationship.
Please see attached, thank you.
Hi byoung
Do you want to rank the account in each Type respectively? Can you try this one? If not working, remove the column [Account Number], have a try, let me know how it goes.