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

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

Reply
Snagalapur
Helper IV
Helper IV

Custom order or sort columns

Hi All,

 

How to custom order below level1 columns in matrix, also i have 7 diffrent column levels in matrix.

Snagalapur_0-1732193829021.png

 

Thank you.

 

2 ACCEPTED SOLUTIONS

Hi @Snagalapur 
In table view (3rd image) click on the column Level 1 and then on Column tools choose Sort By Column and select your Rank as the sort column.

 

Then in the front end on your matrix (2nd image) click the ... in the top right of your visual.
Choose sort and sort by Level 1 and Descending that should apply the sort.


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

That means it is treating 1 and 10 the same.

Normally happens when the datatype is set to text, change using Column Tools to Whole Number.


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

7 REPLIES 7
saud968
Super User
Super User

Identify the Column Level:

Open the "Fields" pane in your Power BI report.
Locate the column level you want to customize (Level 1).
Create a Custom Sort Column:

Create a new calculated column in your data model.
Assign a numerical value to each category within Level 1 based on your desired order.
For example, if you want "Management Eval" to be first, "Non Trade Alliance" second, and so on, you could create a calculated column named "SortOrder" with values like 1, 2, 3, etc.
Sort the Column Level:

Right-click on the Level 1 column in the matrix visual.
Select "Sort by Column" from the context menu.
Choose the "SortOrder" column you created in step 2.
Set the sort order to "Ascending" to achieve the desired order.

Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!

SamWiseOwl
Super User
Super User

Hi @Snagalapur 

You can assign a column to be sorted by another column.

Click the column, top of the page Column tools | Sort by column | Choose the column with your sortId

SamWiseOwl_1-1732194172540.png

 

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

I did create column order (back-end) and sorted based on the rank column but chages are not applied in matrix column (front-end). please suggest.

Snagalapur_0-1732195522393.pngSnagalapur_1-1732195545196.png

Snagalapur_2-1732195621759.png

 

Hi @Snagalapur 
In table view (3rd image) click on the column Level 1 and then on Column tools choose Sort By Column and select your Rank as the sort column.

 

Then in the front end on your matrix (2nd image) click the ... in the top right of your visual.
Choose sort and sort by Level 1 and Descending that should apply the sort.


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

thank you so much for your patience.

I was able to update sorting but as highlighted below there is mismatch with one record, although rank is 10 for Management eval.

Snagalapur_0-1732211216908.png

 

That means it is treating 1 and 10 the same.

Normally happens when the datatype is set to text, change using Column Tools to Whole Number.


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Thank so much for help, Solution works :-).

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors