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
rvdhorst1
New Member

PowerBI Matrix Columns Sort

Hi All,

 

I have a column with the name FY (Finacial year). It looks like

2020-2021

2021-2022

2022-2023 

etc

 

I use this with a Matrix in the columns entry.  Only this one can't be sorted. I want this Column is sorted as

 

2022-2023

2021-2022

2020-2021

 

Can this be done?

 

FY.jpgMatrix Column.jpg

 

 

1 ACCEPTED SOLUTION

Yes, that is the Duplicate column. You will have two - your initial one and this new one. Order the initial one based on the Duplicate and you'll be able to sort it in the matrix.

View solution in original post

3 REPLIES 3
AliceW
Power Participant
Power Participant

The simplest way I can think of is you create a new column:

FY for Ordering =

switch(Dates'[FY],

"2020-2021", 3,

"2021-2022", 2,

"2022-2023", 1

)

 

Then click on the original colum, FY. Go to 'Column tools' in the top menu, then 'Sort by column', then this new column.

Thank you Alice,

 

Only my Column name is now 1 2 and 3 not the Fiscalyear name

 

 

Thank you

 

Raymond

 

Yes, that is the Duplicate column. You will have two - your initial one and this new one. Order the initial one based on the Duplicate and you'll be able to sort it in the matrix.

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.