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
kelvin-lkh
Frequent Visitor

Columns Sorting issue for matrix table

Hi all ,

 

I have a matrix table below and the columns is by years. I want the order of the columns is sort by FY20, FY21, FY22, Budget. However, the sequence of the columns always give me the Budget in front. Even I create a table to add in the Index and then use the sort by index function but the result is still the same.

 

Can anyone advise how I can get the columns to be sorted in the way I wanted? Thanks for the advice in advance.

 

 

 

 

kelvinlkh_2-1664500190394.png

 

 

kelvinlkh_1-1664500147334.png

 

2 REPLIES 2
kelvin-lkh
Frequent Visitor

@danextian Thanks for your input. I thought there is a way to work around this restriction but looks like I need to redesign the naming of the column to overcome this issue. 

 

Thank you for the advice!

danextian
Super User
Super User

Hi @kelvin-lkh 

Columns in a matrix are sorted alphabetically unless sorted by another column. Since B come first in the alphabet and so does in your matrix. Try sorting Year column by Index column so Budget comes last

danextian_0-1664501944014.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.