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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors