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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
amgelain
Regular Visitor

Sort the columns according to their name.

Hello dear!

 

I need to order the columns of the chart according to the description of each one.
For example: the first column "Excellent", the second column "Great", the third "Good" and the fourth column "Terrible". I couldn't figure out a way other than the constants in the axis sort options.

 

Thank you very much in advance if anyone can help.

 

image.jpg

2 REPLIES 2
FreemanZ
Super User
Super User

hi @amgelain ,

 

a column could be sorted by other column.

how: https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column?tabs=powerbi-deskto...

 

You would need a helper column. supposing you have a data table like:

Grade Count
Excellent 10
Great 20
Good 50
Terrible 10

 

try to

1) create a dimensional grade table like:

Grade GradeID
Excellent 4
Great 3
Good 2
Terrible 1

 

2) related data table and grade table

 

3) sort the grade[grade] column by grade[gradeID]

 

4) plot a bar chart with grade[grade] with data[Count]. The axis shall be sorted as you wish, like:

FreemanZ_0-1699587249732.png

 

 

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your  datamodel looks like, but one of ways to solve this is to have sort-order-column for the column that you want to use in the visualization. And then, sort it by the sort-order-column.
I hope the below link from Microsoft helps.

Change how a chart is sorted in a report - Power BI | Microsoft Learn

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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