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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
HenryJS
Post Prodigy
Post Prodigy

Reversing Date Axis Matrix

Hi all,

 

Is it possible to sort date axis in a matrix from newest to oldest?

 

 

 

 

Capture.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @HenryJS ,

For my test ,  to avoid "circle", you could creata a new table using the following formula:

Table 2 =
SUMMARIZE (
    'Table',
    'Table'[Date],
    'Table'[Type],
    'Table'[Value],
    "index", RANKX ( ALL ( 'Table' ), 'Table'[Date],, DESC )
)

Then  select Date column ,sort by Index column, so that  dates in calculated table could be in descending order in Matrix 

10.21.5.2.png

10.21.5.1.PNG

Here is the pbix file.

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.

Best Regards,
Eyelyn Qin

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @HenryJS ,

For my test ,  to avoid "circle", you could creata a new table using the following formula:

Table 2 =
SUMMARIZE (
    'Table',
    'Table'[Date],
    'Table'[Type],
    'Table'[Value],
    "index", RANKX ( ALL ( 'Table' ), 'Table'[Date],, DESC )
)

Then  select Date column ,sort by Index column, so that  dates in calculated table could be in descending order in Matrix 

10.21.5.2.png

10.21.5.1.PNG

Here is the pbix file.

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

@HenryJS  you will have to create a index colum in Power query editor for the sorting to work


index1.png
sort the column based on Index number



index2.png
The expected result are as below

index3.png

Hope it resolves your issue? Please consider accepting it as the solution to help the other members find it more quickly.


Appreciate your Kudos, Press the thumbs up button!!👍



@Anonymous the 'week ending' column I am trying to do the sort to is in a DAX table. Is it possible to do for a column like this?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.