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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
andyor
Resolver I
Resolver I

Changing sort order of column in pivoted Matrix

How can one change the sort order of a Pivoted column like this in a Matrix?

 

I can change the sort order of the column in Column Tools etc, but it doesn't update the order in the visual. 

 

andyor_0-1675126775387.png

To pivot my Matrix around the  [Year - WeekNumber] column , I have used the Switch Values to Rows option

 

andyor_0-1675126938445.png

 

2 REPLIES 2
andyor
Resolver I
Resolver I

Hi Amit

 

I can't follow your instructions. I currently have a column in the table like this. It's of type Text. 

 

andyor_0-1675132724333.png

 

amitchandak
Super User
Super User

@andyor , Create columns like

 

Year Week 1 = [Year Week]

 

Year week sort =  Rankx(Date, [Year week],,desc,dense)

 

Then mark Year week sort as a sort column of year week1 in column tools and use year week 1 in visual

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!