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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
v-cgao-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.