Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Rank Volume based on multiple columns in Matrix visual

I have a matrix visual as shown below: 

Not Sorted

Then I want to Rank and sort the rank in Ascending order. Hence what i want to achieve is shown below:

The rank is based on Business and Client Columns 

Please help.

  • Anonymous , a measure rank like

     

    rankx(filter(allselected(Table[group], table[business], Table[Client]), [group] =max([group] ) && [business] =max([business] )), calculate(sum([voulme])),,desc, dense)

2 Replies

  • Anonymous , a measure rank like

     

    rankx(filter(allselected(Table[group], table[business], Table[Client]), [group] =max([group] ) && [business] =max([business] )), calculate(sum([voulme])),,desc, dense)

    • Anonymous's avatar
      Anonymous
      Not applicable

      amitchandak, Thanks for the resolution. It works, however, when I add another measure to the visual, the Group and business column are not sorted. for instance, if i add average to the matrix visual i will get below:

      but what i want to achieve is below

      Note: that the business column is well ordered from 1.Small, 2.Medium and 3.Large.

      Group, Business and Client are from different Tables

      Please help.