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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
324
Helper I
Helper I

Bar chart not showing numbers in order

I created the following bar chart. The x-axis has almost everything in order, but notice that the "9" group is displayed after the "10" group. Why could this be, and what can I do to fix it?

 

Screen Shot 2022-10-28 at 3.03.01 PM.png

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

You need to sort the visual by the axis field.

sort.gif





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

5 REPLIES 5
v-zhangti
Community Support
Community Support

Hi, @324 

 

You can try the following methods.

vzhangti_0-1667202306223.png
Switch the sort from Value to Type.

vzhangti_1-1667202342112.png

vzhangti_2-1667202418472.png

Is this the result you expect?
Sort one column by another column in Power BI - Power BI | Microsoft Learn

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-zhangti - thanks for the response. I suppose we have different versions of Power BI. Where can I find that button in the newer version? I can't seem to find it.

 

Screen Shot 2022-10-31 at 8.30.22 AM.pngScreen Shot 2022-10-31 at 8.30.36 AM.png

Bifinity_75
Solution Sage
Solution Sage

Hi @324 , try this:

 

- Go to Field and select Number

- Go to Sort by Column and selct Number

 

Like the picture:

Bifinity_75_0-1666990011725.png

 

Best regards

Hi @Bifinity_75  - thanks for the response. I suppose we have different versions of Power BI. Where can I find that button in the newer version? I can't seem to find it.

 

324_0-1667219538536.png

 

324_1-1667219538532.png

 

 

PaulDBrown
Community Champion
Community Champion

You need to sort the visual by the axis field.

sort.gif





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors