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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors