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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Mizzi1234
New Member

Pie Chart Legend not sorting properly

I'm confused why I cant get the legend to sort properly.

 

the posts that i've looked at indicate that you need to make a sort order column but considering that my fields are already numbers I don't think a sort column will actually help the problem.

Mizzi1234_0-1726680693240.png

 

1 ACCEPTED SOLUTION
Mizzi1234
New Member

So i figured out the problem was that the chart sorting the wrong column.

 

for anyone having the same issue as me, click on the 3 dots at the top right of the chart and change the "sort axis" to your legend field.

 

i'm not sure why you can't sort a chart through the actual visualization or filter pane which is where you would think this kind of option would be but at least i found the hidden button.

View solution in original post

2 REPLIES 2
Mizzi1234
New Member

So i figured out the problem was that the chart sorting the wrong column.

 

for anyone having the same issue as me, click on the 3 dots at the top right of the chart and change the "sort axis" to your legend field.

 

i'm not sure why you can't sort a chart through the actual visualization or filter pane which is where you would think this kind of option would be but at least i found the hidden button.

dharmendars007
Super User
Super User

Hello @Mizzi1234 , 

 

While your "Expected Ship" values are numbers, Power BI may still need an explicit sort order. Create a calculated column to ensure that Power BI knows how to sort these values. You can add a column with the same values, but explicitly set the sorting order by selecting the "SORTBYCOLUMN" Option inside Dataview in Power BI.

 

If you find this helpful , please mark it as solution and Your Kudos/Likes are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

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.