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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
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.

Top Kudoed Authors