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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Rearranging in columns in Table Matrix visual

How do I re arrainge these columns to be a specific order? 

 

JClaborn_0-1597722112597.png

 

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

Firstly, you may create a calculated table named 'SortTable' via button "Enter Data" under Home ribbon (assuming the sort order is like column [Order] below), then create relationship with your fact table with Both of Cross filter direction on related field.

172.png

 

 

 

 

 

Secondly, you may select on the status column of your fact table,  which contains values "In-Process", "Not Started" ,,etc,  go to Column tools ->Sort by column, choose the option 'SortTable'[Order].

 

For reference:

 

Sort by column in Power BI Desktop

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

Firstly, you may create a calculated table named 'SortTable' via button "Enter Data" under Home ribbon (assuming the sort order is like column [Order] below), then create relationship with your fact table with Both of Cross filter direction on related field.

172.png

 

 

 

 

 

Secondly, you may select on the status column of your fact table,  which contains values "In-Process", "Not Started" ,,etc,  go to Column tools ->Sort by column, choose the option 'SortTable'[Order].

 

For reference:

 

Sort by column in Power BI Desktop

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Create a new sort column in you table

Sort COlumn =

SWITCH (
TRUE(),
[Column] = "In progress", 1,
[Column] = "Completed", 2, // add other condition
3
)

Then set it has the sort column

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

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
samdthompson
Memorable Member
Memorable Member

Add a sort by column to the table using either SWITCH(). Then use the Sort by column on the column tools ribbon when the field is active.

 

 

// if this is an answer please mark as such

// if this is a solution please mark as such. Kudos always appreciated.
FarhanAhmed
Community Champion
Community Champion

If this is single column values you can use "Sort by Other Column" to sort data in specific order.

 

Create a new column in Power Query and give them numbers accordingly to your desired order

Then you need to apply "Sort by Other Column"

 

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column#:~:text=Select%20whi...







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Helpful resources

Announcements
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!

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