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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.