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
HenryJS
Post Prodigy
Post Prodigy

Matrix Axis - Change Order

Hi all,

 

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

 

Opposed to oldest to newest - as shown below.

 

Capture.PNG

 

thanks,

4 REPLIES 4
v-kelly-msft
Community Support
Community Support

Hi  @HenryJS ,

 

Have you checked the suggestion by @amitchandak ?Is your issue solved now?

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

@v-kelly-msft  I haven't been able to change the order yet. Is there a simple way to do this within Power BI?

Hi @HenryJS ,

 

Sorry for the late reply!

 

First create 2 columns as below:

 

DateNumber=DAY('Table'[Dates])
Rank= MAX('Table'[DateNumber])-'Table'[DateNumber]

 

Then duplicate the dates column;

Finally select the duplicate column >sort by>Rank;

Screenshot 2020-10-21 154200.png

And you will see:

Screenshot 2020-10-21 154241.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

 

amitchandak
Super User
Super User

@HenryJS ,

Create in your date table

Date 1 = Date

Date Rank = rankx(all(Date), Date[Date],,desc,dense)

 

Sort Date1 and on Date Rank and use Date 1 in your visual

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.