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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to Arrange Column Headers in Table Matrix in a certain order

I have a dynamic table setup here, problem is I want the column headers to be in a specific order. This is a production schedule for job orders that go in a specific order through our facility. 

 

I want to arrange the columns in this order below which is the flow.. The raw data uses department ID numbers that refrences a lookup table with the name and Id's.

 

Job - Fabrication - Sub Assembly - Floors - Sides - Tailgates - Speciatly - Boxing - Rig Out - Paint/Wash - QC - Final Assembly

 

JClaborn_1-1599092809642.png

 

 

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , Create a new column with department sequences and use that as a sort column

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

Sort Month.png

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak @Greg_Deckler @Anonymous 

 

I know how to create a column, but how do I create a department sequence?

 

The raw data looks like this..

 

JClaborn_0-1599148848210.png

 

JClaborn_1-1599148869733.png

 

JClaborn_3-1599148911716.png

 

 

 

 

Anonymous
Not applicable

I have tried all 3 responses and cant get it to sort properly.

Greg_Deckler
Community Champion
Community Champion

@Anonymous - There is this method - https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/963588#M428



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

HI @Anonymous 

Create another table with two columns as Seq and Dept.

In the Seq column number it as per your requirement.

Join these two tables on 1:many relationship and use the Seq column to arrange the columns in the report.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.