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 August 31st. Request your voucher.

Reply
ngutc
Frequent Visitor

Sort / order legend and axis on live database data

Hello, 

 

is there a way to sort simultaneously legend and the x axis of 100% stacked bar chart when building on live database? 

 

I've read on how to sort the legend with the switch and push method but when you build the visual on a live database there is no option as sort by column. Same for the axis. I could create the switch function, where I set the order for each category but then there's no way to sort by that order column. 

 

Is there any other way or the only option is to create the order column / table in the live database? 

 

Thank you 

2 REPLIES 2
amitchandak
Super User
Super User

@ngutc , You have an option to sort legend in the recent version, can that help ?

 

 

amitchandak_0-1659015559466.png

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

What version is that, mine does not have that function. 

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.