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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.