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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
goyalsa
Helper III
Helper III

Sort by month-year wise at x-axis not working

Hi All, 

I am trying to sort by "Month-Year" but not able to get the X-axis according to that.

i created a custom column "MonthYear = FORMAT('Master data (history)'[In date].[Date],"MMMM-YYYY")" . I can not figure it out where I am lacking in it.

 

Here is the screen shot of result :

 

goyalsa_2-1623642867484.png

 

Thanks in advance!!

 

1 ACCEPTED SOLUTION

@goyalsa , Your old column will only sort correctly. You just need give sort order using sort column. No need to use this new column

 

refer my video, if needed -  How to Create Sort Column and Solve Related Errors: https://youtu.be/KK1zu4MBb-c

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

View solution in original post

4 REPLIES 4
goyalsa
Helper III
Helper III

Thanks @amitchandak . 

Have a great day!!

goyalsa
Helper III
Helper III

Hi @amitchandak ,

 

I think it works in that way but itn't possible to change month in albhabets instead of numeric and do the same.

Thanks for the quick response.

@goyalsa , Your old column will only sort correctly. You just need give sort order using sort column. No need to use this new column

 

refer my video, if needed -  How to Create Sort Column and Solve Related Errors: https://youtu.be/KK1zu4MBb-c

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
amitchandak
Super User
Super User

@goyalsa , Create a new column

Month Year sort = FORMAT([Date],"yyyymm")

 

and mark that as the sort column of this column

Sort Month Year.png

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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