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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
NadiaK
Frequent Visitor

Sorting Columns in Matrix

I have a matrix, where I want to sort the column headers in the cronological order as it is the data table. Whatever I try, the matrix sort column headers alphabetic. I have tried adding numbered IDs for my column data, so it could sort it descending, but it seems like I only can sort on the row or value and not on the columns? 

 

I do not have the option "Sort by column" in my Power Bi Desktop

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @NadiaK 

Thanks for @Wilson_ reply. Actually, Power BI Desktop has the Sort by column feature.

vyaningymsft_0-1714372186983.pngvyaningymsft_1-1714372217042.png

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi, @NadiaK 

Thanks for @Wilson_ reply. Actually, Power BI Desktop has the Sort by column feature.

vyaningymsft_0-1714372186983.pngvyaningymsft_1-1714372217042.png

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Thanks @Anonymous 

 

Do you also know, if it is possible to rotate the headers in the matrix visual, so it is vertical og then save some space in the columns width? 

NadiaK_0-1714373330498.png

 

Anonymous
Not applicable

Hi, @NadiaK 

Does turning rows into columns and columns into rows meet your needs? Or manually make the column widths smaller(Place the cursor at the edge of the column).

vyaningymsft_1-1714375010168.png


In my understanding you want to have the same effect as in the picture below, so as to save the entire matrix rows.

vyaningymsft_0-1714374968882.png

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Sorry for not being clear. What I mean is to have the header title rotated, so it is vertical in the cell like: 

NadiaK_0-1714377618485.png

 

Anonymous
Not applicable

Hi, @NadiaK 

In fact, the feature you want is not available in the current version of Power BI. You can submit an idea for here and the product team will take note of such a need.

Related Link: New tab (powerbi.com)

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

Wilson_
Super User
Super User

Hi NadiaK,

 

The ideal solution would be to ask whoever can edit the model to do the Sort by Columns option that you mentioned.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.




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

Proud to be a Super User!





Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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