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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Aazza
Frequent Visitor

Legend Custom Sort isn't working

I have been trying to custom sort my legend for a while now as there was originally only a sort by ascending or discending option which doesn't fit what I am trying to do. I have created an extra column in my data called Order which should create a custom sort for my legend. Sort by column order has also been selected and there has been no changes made to the bar graph.

I have attached images to show what has been done, any fixes for this issue would be greatly appreciated.

sort.pngThis is the order I am afterThis is the order I am afterThis is the current order.This is the current order.order 3.png

3 REPLIES 3
Anonymous
Not applicable

Hi @Aazza ,

 

Currently, it is not possible to sort the legends, please vote for this idea.

 

One workaround is to add "1-", "2-",... before the field as a legend, It's not pretty, but it's useful.😓

 

est Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Shaurya
Memorable Member
Memorable Member

Hi @Aazza,

 

This seems to be an issue that a lot of people are facing. In some cases, it happens in a specific visual while in other cases it can be resolved by changing the data type of sort column to whole number. Either way, this link has steps that you can perform to try and troubleshoot. Refer:

 

https://community.powerbi.com/t5/Desktop/Sort-by-column-not-working/td-p/1444819

 

Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: Forecast Period - Graphical Comparison 

Aazza
Frequent Visitor

Thank you for responding @Shaurya 

The data type of sort column was already set as whole number and unfortunately the outcome still remains the same. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors