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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mpwall5813
Frequent Visitor

Custom Sort Stacked Column Chart on Two Fields

Hi all - 

 

I have seen several similar messages, but I am struggling to achieve the desired results.

 

I have a stacked column chart I am trying to sort each Branch by 'AVGEmployeeUtilization;' however I would like to keep each branch grouped within it's Region.

 

mpwall5813_0-1710880570341.png

 

 

For example, Central branches would remain grouped together but would descend by 'AVGEmployeeUtilization' (Dallas, Denver, OKC, Austin, etc.). Then Mid-Atlantic would remain grouped but descend by 'AVGEmployeeUtilization' and so on.

 

Would I need a custom dax measure for this? Any help would be greatly appreciated.

 

Thank you all,

1 ACCEPTED SOLUTION

PBI file attached.  I switched the visual to a Table.  Sorted by the first column in ascending order and the last column in descending order.  Switched the visual back to the original one.

Hope this helps.

Ashish_Mathur_0-1710990996375.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

11 REPLIES 11
Ashish_Mathur
Super User
Super User

Hi,

Click on the 3 dots at the upper right hand side of the visual and sort by the measure in descending order.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

Click on the 3 dots at the upper right hand side of the visual and sort by the measure in descending order.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you for your reply. Unfortunately, that is not what I need. If i do that, the Regions (colors) are no longer grouped together.

 

mpwall5813_0-1710943159082.png

 

I need the Branches sorted by descending order within their respective Region (or Color) groups, like this:

 

mpwall5813_0-1710946794078.png

 

 

Thanks again,

@mpwall5813 

can you please share sample data ? 

Hmm...it seems I cannot attach an excel file or a pbix file. I don't want to add work on your end but recreating the below image should get you the information you need to solve the problem.

 

mpwall5813_0-1710971482064.png

 

 

Upload the file to Google Drive or a similar file hosting service and share the download link.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

PBI file attached.  I switched the visual to a Table.  Sorted by the first column in ascending order and the last column in descending order.  Switched the visual back to the original one.

Hope this helps.

Ashish_Mathur_0-1710990996375.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you! 

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