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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Custom Order Dates Matrix

Hi, 

I am trying to sort dates chronologically on a matrix. However, as the date formats are in 'Text' format due to additional inputs by user and cannot be converted to a date format, the report matrix view keeps sorting them by Alphabetical order instead. I have tried 'Sorting by column' for the [Cycle Month] in Data view as advised by many, but it is still not being reflected in the Report view. 

 

This is how my matrix looks like - the months are sorted alphabetically instead of chronologically. I can't convert it to date due to additional weeks added like W2R1 

pbi1.PNG

 

This is how it looks like in Data view, sorted chronologically. 

pbi2.PNG

 

Thank u. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Create an equivalent sort column and mark that sort column for this

 

say

sort date = [Date]

or

sort date =format([Date], "YYYYMMDD")  //find exact format for your need

 

Mark this as sort column, sort order of original column will change 

 

Sort Month.png

 

 

How to Create Sort Column and Solve Related Errors: https://youtu.be/KK1zu4MBb-c

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@amitchandak thanks! realised I missed out the 'sort by column' in Report View, that's why it wasn't sorting in the matrix. 

amitchandak
Super User
Super User

@Anonymous , Create an equivalent sort column and mark that sort column for this

 

say

sort date = [Date]

or

sort date =format([Date], "YYYYMMDD")  //find exact format for your need

 

Mark this as sort column, sort order of original column will change 

 

Sort Month.png

 

 

How to Create Sort Column and Solve Related Errors: https://youtu.be/KK1zu4MBb-c

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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