Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
ShaunGibbs23
Frequent Visitor

Sorting Graph/Table by Values in a Column Header

Hello,

 

I am trying to sort this graph (and tables) by the values in the legend group/column header of '18'. The data in this graph is a measure I have produced titled '% of Row Total'. I am struggling to have the order anything other than Provider Group and do not want the sort to be rigid, instead changing when I change the filter which would be 'year'.

 

For example, I would want 'University of Oxford' at the top as the percentage for the column header of '18' is the highest at 79.1% but the customer/user changes the filter to previous years, then the order of providers will likely change as the values in the column '18' will change.

 

I'm current transitioning from Tableau where you could sort by clicking on '18' on the table and also options on the filters to sort so any help would be greatly appreciated.Power BI - Sort by column header.jpgPower - Table to sort.jpg

3 REPLIES 3
ShaunGibbs23
Frequent Visitor

Thank you for your help. How would I create a measure to add to the tooltip that only gives that value, to then sort by? I currently have the measure Age Group that includes all ages but is there a way of creating an Age Group that only has ones with the result 18, to then filter by? @amitchandak 

amitchandak
Super User
Super User

@ShaunGibbs23 , In the matrix, if you use the field in the column, then you can only sort on rows or grand total of the column.

 

In the stacked visual, you can add a measure that is only giving that value in the tooltip and can sort on the tooltip field using three dots on visual

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for your help. How would I create a measure to add to the tooltip that only gives that value, to then sort by? I currently have the measure Age Group that includes all ages but is there a way of creating an Age Group that only has ones with the result 18, to then filter by?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.