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
yacatac
Frequent Visitor

Sort column headers in Matrix Direct Query

Try as I might, I can't find how to sort the column headers in a DirectQuery scenario.

 

I want them in descending order, i.e. 2019, 2018, 2017, etc, It's easy enough to sort by rows though...! Smiley Frustrated

 

Sort Columns.jpg

 

Any help will be appreciated!

Thanks

Stuart

5 REPLIES 5
Ischaq
Frequent Visitor

its been 3 years and havent find no solution for this

Anonymous
Not applicable

Dear Yacatac,

 

Have you found a solution to this problem yet? Im experiencing the same business case. 

 

Kind regards,

 

M

v-chuncz-msft
Community Support
Community Support

@yacatac,

 

Add a custom column in Query Editor, then take advantage of Sort using the Sort by Column button.

10000 - [Year]
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks. Appreciate your help. Smiley Happy however I get a message to convert to an Import mode, which I don't want to do because of the amount of data.

 

I find it difficult to understand why it needs to be done that way though, when rows can be sorted so easily.

Anonymous
Not applicable

@yacatacI would also like to know if you figured anything out for this. I'm having the exact same issue 😞

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.