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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.