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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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