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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
heygau
Helper I
Helper I

Not able sort Month on X axis

I am not able to sort axis based on monthName , Month names are as per finacial year somehow November nad decmeber sitting next to each other , is there any way to sort them out Screenshot (49).jpg

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

Hi, @heygau ;

I reproduced your issue as follows:

vyalanwumsft_0-1669960082286.png

And you could sort by year and month.

vyalanwumsft_1-1669960235034.png

Then the month column sort by "month-sort" column.

vyalanwumsft_2-1669960356888.png

The final show:

vyalanwumsft_3-1669960372698.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

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @heygau ;

I reproduced your issue as follows:

vyalanwumsft_0-1669960082286.png

And you could sort by year and month.

vyalanwumsft_1-1669960235034.png

Then the month column sort by "month-sort" column.

vyalanwumsft_2-1669960356888.png

The final show:

vyalanwumsft_3-1669960372698.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.

heygau
Helper I
Helper I

Thank you @Tony_Kuiper  @amitchandak 

Its not helping me, because the X-axis shows last 13 months, somewhat Novemeber Data(Current Year, Previous Year ) is sitting next to each other 

Tony_Kuiper
Helper I
Helper I

Have you checked if the sort option is available in the top right of the visual??

 

If not... I like to create a column 

DateSort = CONCATENATE(YEAR(Table1[your date]),MONTH(Table1[your date])) when these things dont play nicely.
You can then select the original date column you are having trouble with and do a "sort by" and use this numerical version... You can extend it out to the day if you need to by adding another concatenate nested inside that one.
amitchandak
Super User
Super User

@heygau , You month need have month sort column

 

for cal year

Month Year = FORMAT([Date],"mmm")
Month Year sort = month([DAte])

 

For FY assume FY is not same for all month , year start from NOV

 

Month Year = FORMAT([Date],"mmm")
Month Year sort = if( month([DAte])<11, month([DAte])+2, month([DAte])-10)

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

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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