Forum Discussion

Jason6's avatar
Jason6
Icon for Helper I rankHelper I
5 years ago

Sort by legend with highest % based on value

Hi All,

I have a power bi issue i am trying to  solve and have included the sample PBI here

Requirement is to sort based on % contribution per each category 

So the example i am using is population group for each country 

In the <30 age bucket, i want sorting to be done by JP, CN and then IN ( largest to smallest )

In the 30-50 age bucket, i want the sort to be IN, CN and then JP ( largest to smallest )

In the >50 age bucket, i want sorting to be done by JP, CN and then IN ( largest to smallest )

 

In the below example , i can create custom rank column for each category of >30,, 30-50 and >50 and then create those separate columns as legend and enable sort by Rank

However the actual example is having multiple criteria like employement status, activity level and so on... so just basic rank system cannot be used 

 

So is there any way for the chart to automatically sort the country from descending to ascending order based on category

 

 

 

 

 

 

 

 

 

PBI file:

https://www.dropbox.com/s/l0bfkyqh2kjv8rg/Sample_PBI_Sorting.pbix?dl=0

 

 

Thank you in advance for your all your support 🙂

 

5 Replies

  • Hi Jason6 

     

    If you want to sort by the %, highest to lowest, I believe you can click on the triple dots on the top right of your visual, and select Sort by. Then choose the %.

     

     

    • Jason6's avatar
      Jason6
      Icon for Helper I rankHelper I

      darentengmfs thank you for your reply

      Unfortunately the sort option does not work as % is not calculated. 

      I just have volume alone, even if i define % the sorting would not work