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
Jansco
Helper I
Helper I

Sorting dates descending in a matrix

Is there any way to sort dates descending in a matrix, where dates are in columns and metrics are in rows?  I know that the option to sort asc or desc is not available when dates are in columns but is there any way around this, for example, by ranking or indexing the dates?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Jansco ,

 

You can add a table with date and index to use 'sort by column' feature to manually define date sort order based on index fields.

Then build relationship to raw table on date filed and use custom sort order table data as matrix column.

Custom Sorting in Power BI


Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Jansco ,

 

You can add a table with date and index to use 'sort by column' feature to manually define date sort order based on index fields.

Then build relationship to raw table on date filed and use custom sort order table data as matrix column.

Custom Sorting in Power BI


Regards,

Xiaoxin Sheng

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.