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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
kcdask
Frequent Visitor

sort chart x axis

Hi everyone,

 

I'd like help to present a visualization with the below countries sorted on the x axis. I have tried the advice on this post to no avail. The country names continue to be sorted alphebatically or per points as the below photo shows.

 

Link to post:

https://community.powerbi.com/t5/Desktop/Custom-Sort-by-x-axis-legend/m-p/64402?collapse_discussion=...

 

1Australia
2Bahrain
3China
4Azerbaijan
5Spain
6Monaco
7Canada
8France
9Austria
10Great Britain
11Germany
12Hungary
13Belgium
14Italy
15Singapore
16Russia
17Japan
18Mexico
19United States
20Brazil
21Abu Dhabi

 

Capture.JPG

 

Merged table

 

Merged Table.JPG

 

I appreciate your help to present the country names in the order listed in the table no matter which drivers are selected.

 

Thanks,

 

Philip

1 ACCEPTED SOLUTION
TeigeGao
Solution Sage
Solution Sage

Hi @kcdask ,

Based on my test, if I sort the Country column by the order number, then the countries will be sorted by the number, no matter how I change the driver slicer.

Snipaste_2019-04-16_14-17-16.png

The result will like below:

Snipaste_2019-04-16_14-19-49.png

Please upgrade PowerBI desktop to the latest version and try again.

Best Regards,

Teige

View solution in original post

2 REPLIES 2
TeigeGao
Solution Sage
Solution Sage

Hi @kcdask ,

Based on my test, if I sort the Country column by the order number, then the countries will be sorted by the number, no matter how I change the driver slicer.

Snipaste_2019-04-16_14-17-16.png

The result will like below:

Snipaste_2019-04-16_14-19-49.png

Please upgrade PowerBI desktop to the latest version and try again.

Best Regards,

Teige

I got my intended results. Thank you for helping out a Power BI newbie.  

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.