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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.