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

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

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.