Reply
andyor
Resolver I
Resolver I
Partially syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

@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
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)