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 c...
  • byoung's avatar
    byoung
    6 years ago

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

  • v-deddai1-msft's avatar
    v-deddai1-msft
    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