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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply

Sort Matrix

Hello together

 

How can I implement sorting in descending (2) order by date in a matrix form date table (1)?

Bild1.png

 Sorting in the table tools has no effect.

Bild2.png

THX for help.

 

 

1 ACCEPTED SOLUTION
v-weiyan1-msft
Community Support
Community Support

Hi @thebeginner1204 ,

 

Based on your description, you might consider adding an index column.
My Sample:

vweiyan1msft_0-1705296162305.png

1.In the Power Query Editor,click on 'Index Column' on the Add column tab after sorting your table in descending order by Date column.

vweiyan1msft_1-1705296224505.png

vweiyan1msft_2-1705296252795.png

2.Click on the Date field in the Field pane and do the following:

vweiyan1msft_3-1705296287818.png

Result is as below.

vweiyan1msft_4-1705296305867.png

For further details,please find attachment.

 

Best Regards,
Yulia Yan

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-weiyan1-msft
Community Support
Community Support

Hi @thebeginner1204 ,

 

Based on your description, you might consider adding an index column.
My Sample:

vweiyan1msft_0-1705296162305.png

1.In the Power Query Editor,click on 'Index Column' on the Add column tab after sorting your table in descending order by Date column.

vweiyan1msft_1-1705296224505.png

vweiyan1msft_2-1705296252795.png

2.Click on the Date field in the Field pane and do the following:

vweiyan1msft_3-1705296287818.png

Result is as below.

vweiyan1msft_4-1705296305867.png

For further details,please find attachment.

 

Best Regards,
Yulia Yan

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@thebeginner1204  Maybe this will work:

- Create a Date1 column in your date table: Date1 = 'Date Table'[Date]
- Create a Sort column in your date table: Sort = RANKX ( ALL ( 'Date Table' ), 'Date Table'[Date],, DESC, Dense )
- Sort the Date1 column by the Sort column, then use the Date1 column in your matrix

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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