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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jbhca12
Helper I
Helper I

Sort Stacked Bar Chart by Data Value

Howdy,

I've seen posts about this and maybe I am missing something but I am attempting to sort my stacked bar chart based on the data labels which are calculated based on the filter criteria when the slicer filtering is applied. 

jbhca12_0-1622847697368.png

jbhca12_1-1622847972937.pngjbhca12_2-1622848045663.png

Values: Duration (hour) is SUMmed

 

So as you can see by the above, the Category can change depending on the machine, the scheduled/unscheduled downtime and the start and end date range (that is the filter criteria). The downtime in hours is summed based on the records selected based on the filter criteria.

I've seen solutions that suggest creating another column in the table to perform a sort on a numeric value. But based on the example above, 0.33 for 5S, 0.17 for Reel Change and 8.05 for Setup Time, these values are summed from the detail records selected based on the filter criteria. How would I go about sorting it such that 8.05 is on the top and 0.17 is on the bottom?

Thanks!

1 ACCEPTED SOLUTION
aj1973
Community Champion
Community Champion

Hi @jbhca12 

in the visual you should see

aj1973_0-1622848845616.png

 

Sort by some of lables

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

2 REPLIES 2
aj1973
Community Champion
Community Champion

Hi @jbhca12 

in the visual you should see

aj1973_0-1622848845616.png

 

Sort by some of lables

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Yup, was just about to re-post, "Never mind, found it!"

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.