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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Kudoed Authors