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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.