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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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