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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Sort chart x axis custom

Hi

 

I am in the education sector and trying to produce a chart which is sorted by a 15 point scale (A+ A A- .... E+ E E-) with the alphabetical descriptors and not numerical ones. 

The chart will sort alphabetically fine but goes A A- A+ etc instead of A+ A A-.

Any ideas on how this can be done?

 

Thank you

Capture.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous

Try to sort Grade column manually by following way-

  1. Create a column by using the following DAX

                Grade Sort = SWITCH(Table1[Grade_Base],"A+",1,"A",2,"A-",3,"B+",4,"B",5,"B-",6,"C+",7,"C",8,"C-",9,10)

      2. Sort Grade Column by Grade sort(created column) under the modeling tab in ribon pallet.

For more details see the pbix file.

Download pbix file

 

 

Regards,

Angad

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous

Try to sort Grade column manually by following way-

  1. Create a column by using the following DAX

                Grade Sort = SWITCH(Table1[Grade_Base],"A+",1,"A",2,"A-",3,"B+",4,"B",5,"B-",6,"C+",7,"C",8,"C-",9,10)

      2. Sort Grade Column by Grade sort(created column) under the modeling tab in ribon pallet.

For more details see the pbix file.

Download pbix file

 

 

Regards,

Angad

how do you disable the auto sort feature on the visuals ? 

22LACMT_0-1672856497626.png

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.