Forum Discussion

byoung's avatar
byoung
Frequent Visitor
6 years ago
Solved

Rankx Within Subcategory Not Working

In the attached, I'm trying to rank each "Account Desc" within each account type, but the rankx formula isn't working as expected. I would exted to see, within the assets account (misspelled in the capture), a ranking from 1-9 based on the Total Amount.

 

Please help! 

 

  • Feeling pretty dumb right about now....I was placing the formula in a calculated column instead of a measure ğŸ™„. Works now.

  • 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

7 Replies