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! Learn more

Reply
925stuart
Helper I
Helper I

How do I re-order stacked bars to a custom order?

Hi,

 

My bars are now plotted alphabetically.  How do I re-order it to a custom order?  E.g. I want the green chunk to be at the bottom and not where it is just because the label starts with S.  Is that possible?

 

925stuart_0-1700202923899.png

 

9 REPLIES 9
Awmium
New Member

Add a custom column with the desired sorting sequence, 
Awmium_0-1700207153291.png

Next, select column1 and sort it by the custom from the ribbon.

Thanks @Awmium but how do I translate that into the re-ordering of the stacked bars?

It should've been solved by its own once you sort the column.

Thanks but I'm not following.  😓

Fowmy
Super User
Super User

@925stuart 

To apply a custom sort to your legend, you need to create a custom column and use Sort By column option, you can do it in Power Query or in the source system and and sort the ledgend field by the new sort column. This should solve your problem.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Do you mean transform Orange to 1.Orange so it displays before 2.Apples?

yes 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

I was trying to avoid doing it this way.  Is there another possibility?  Thanks!  @Fowmy 

@925stuart 

That is the workaround that I think of.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors