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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
e175429
Helper IV
Helper IV

Sorting a Bar Chart

Hello,

 

This has to be the dumbest question I am asking, however, I am going to ask it anyway.

 

This is my data:

e175429_0-1755538256713.png

 

This is my chart:

e175429_5-1755538567862.png

 

 

I want the chart sorted from Highest to Lowest. These are my options to sort the chart:

e175429_2-1755538378861.png

e175429_3-1755538418253.png

 I have tried all the combinations, and yet none of them are sorting the bars correctly.

 

ALSO,

is there any way to get rid of all the unessessary white space in the chart? Like bring the title much closer to the actual bars?

e175429_1-1755538332539.png

 

Thank you kindly!

1 ACCEPTED SOLUTION
rohit1991
Super User
Super User

Hi @e175429 

 

Sorting the Bar Chart
To sort the bars correctly, select your chart and click the three dots (…) in the top-right corner. Choose Sort by >> the measure or field you want and then set it to Descending if you want highest to lowest. Make sure you are sorting by the numeric value, not the category name, otherwise the chart will look alphabetical instead of value-based. If it still doesn’t sort as expected, check if the field in your table is stored as text instead of number and fix the data type.

Removing Extra White Space
Open the Format pane of your chart and go to the Y-axis/X-axis options. Reduce the inner padding so the bars sit closer together and remove the extra gap. You can also adjust the title position, margins, and labels to bring the chart area tighter to the bars. In some cases, turning off unnecessary labels or resizing the chart frame also helps reduce empty space.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

View solution in original post

3 REPLIES 3
v-sshirivolu
Community Support
Community Support

Hi @e175429 ,

The solution from @rohit1991 addresses both sorting and white space issues. I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

 

Hi @e175429 ,

I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you

 

 

rohit1991
Super User
Super User

Hi @e175429 

 

Sorting the Bar Chart
To sort the bars correctly, select your chart and click the three dots (…) in the top-right corner. Choose Sort by >> the measure or field you want and then set it to Descending if you want highest to lowest. Make sure you are sorting by the numeric value, not the category name, otherwise the chart will look alphabetical instead of value-based. If it still doesn’t sort as expected, check if the field in your table is stored as text instead of number and fix the data type.

Removing Extra White Space
Open the Format pane of your chart and go to the Y-axis/X-axis options. Reduce the inner padding so the bars sit closer together and remove the extra gap. You can also adjust the title position, margins, and labels to bring the chart area tighter to the bars. In some cases, turning off unnecessary labels or resizing the chart frame also helps reduce empty space.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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