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
Veena_Narayanan
Frequent Visitor

Sort 100% bar chart based on length of bar

I have a 100% stacked bar chart based on 5 parameters, 2 of which are measures which gets calculated based on my slicer selection.

I want to sort the bar chart based on the length of the bar (%).

I am unable to create a new table with the percentages in it & sort the column based on that as the 2 columns for measures shows up as 0 and the percentage that i get is wrong.

sample.png

 

I want this chart to be sorted based on the length of the green bar.

 

 

 
 
1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @Veena_Narayanan ,

 

You could sort data by referring to this column chart post.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hi @Veena_Narayanan ,

 

You could sort data by referring to this column chart post.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
amitchandak
Super User
Super User

Please refer: https://community.powerbi.com/t5/Desktop/100-Stacked-bar-chart/m-p/905132

https://community.powerbi.com/t5/Desktop/100-Stacked-bar-chart-display/m-p/853213

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Datanaut Connect on Linkedin

 

Thanks @amitchandak  but this is not the solution I am looking at.

 

I have the stacked bar chart, which sorts the chart based on the TER value, but i want the same to be sorted as percentage which is displayed in the chart. So my graph should have the MS with highest TER% on top & lowest at bottom.

 

I tried creating a new table & adding a column to calculate the percentage, but it is not calculating it correctly because 2 of the 5 metrics are measures (values are derived based on slicer in dashboard).

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.