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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
amend
Regular Visitor

Re-ordering x-asis to show most recent month

I'm still learning Power BI, and I have a sheet with dates from 2021 and 2022, but I can't get the x-asis order (like the last column should be June-2022, and the first July-2021, if I have date from the last 12 months). How I can re-order them?

image.png

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

Hi, @amend ;

You could put date to x-axis, then drill down it.

vyalanwumsft_0-1655864295634.png

The final show:

vyalanwumsft_1-1655864308819.png


Best Regards,
Community Support Team _ Yalan Wu
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

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @amend ;

You could put date to x-axis, then drill down it.

vyalanwumsft_0-1655864295634.png

The final show:

vyalanwumsft_1-1655864308819.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ashish_Mathur
Super User
Super User

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
johncolley
Solution Sage
Solution Sage

Hi @amend ,

 

If you are using a calendar table - add a Month Year column

Month Year = FORMAT('Calendar'[Date], "MMMM YYYY")

Then make sure you format it as per the following image:

johncolley_0-1655686883007.png

 

Then use this Month Year column as your Axis. 

 

If you're not using a Calendar Table - see this link to set one up: https://hevodata.com/learn/power-bi-calendar-table/ 

 

If this solves your problem, please mark it as a solution!

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.