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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
vinodDrinkPak
Helper II
Helper II

Sort Stacked Bar chart

Hi,

 

I want to sort , my stacked bar chart, while keeping the "Other" Category as last Bar and ofcourse the rest of the company should be sorted in descending order

 

here is my link to pbix file

https://drive.google.com/file/d/1XN5SnO_rJOeMjjnxyo14DFbMPj5-06jw/view?usp=sharing

 

Not sure how can i achieve this?

vinodDrinkPak_0-1694015745135.png

 

1 ACCEPTED SOLUTION

@vinodDrinkPak 

My closest answer is to create this measure and then put it in tooltip, and sort it descendingly.

 

No of Pallets_RANK = 
IF(MAX(LOCATION_INVENTORY[Customer Name for Sorting])="Other",-99999,[No of Pallets])

 



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

View solution in original post

7 REPLIES 7
vinodDrinkPak
Helper II
Helper II

@johnyip 

this works, but only problem is i don't want to show this as tool tip, seee below it gets mixed up in the tool tip and doesn't look really good, anything we can do ?

 

vinodDrinkPak_0-1694057418108.png

 

I am afraid no. Please vote on this Microsoft Idea and they may eventually add support to this ???

 

 



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!
parry2k
Super User
Super User

@vinodDrinkPak you mean this?

 

parry2k_0-1694052877230.png

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k  Excellent, you are awesome, i have beeen sitting to find a solution for this, since couple of days

thank you so much, Can you share the solution please?

parry2k
Super User
Super User

@vinodDrinkPak is this what you are looking for:

 

parry2k_0-1694020688430.png

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k 

this i manage to do  it as well, but the issue is , we still need to sort  the category from Descending, for example in the above pic monster should be the top bar based on the overall total, then Celsius etc

@vinodDrinkPak 

My closest answer is to create this measure and then put it in tooltip, and sort it descendingly.

 

No of Pallets_RANK = 
IF(MAX(LOCATION_INVENTORY[Customer Name for Sorting])="Other",-99999,[No of Pallets])

 



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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