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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
rpss650
Frequent Visitor

Trend lines Month Name by year are not in ascending order.

Hello,

I'm new in power bi. I've created a trend line with month name by year, but they are not in ascending order. How to fix the problem? Thank you.

 

pic.jpg

Note: I can't find anyplace here that I can upload my Power bi workbook. Sorry, I only can upload the picture. 

 

Wenyi

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi rpss650.
it can be done on 2 steps:
1. Based on the date column in your data table, you can add a month column with function("Month").
See attached picture 1.
2. You can sort your month name by this column. See attached picture 2.
To share a BPIX file, you can save it on drive and provide a link to it with edit options
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

Ritaf1983_0-1679199729091.png

 



Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Hi Rita,

Following your tip, it works now.  I'll try to upload a file in drive. Thank you so much. 

Best regards

 

Wenyi

 

 

View solution in original post

5 REPLIES 5
Ritaf1983
Super User
Super User

Hi rpss650.
it can be done on 2 steps:
1. Based on the date column in your data table, you can add a month column with function("Month").
See attached picture 1.
2. You can sort your month name by this column. See attached picture 2.
To share a BPIX file, you can save it on drive and provide a link to it with edit options
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

Ritaf1983_0-1679199729091.png

 



Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi Rita,

Following your tip, it works now.  I'll try to upload a file in drive. Thank you so much. 

Best regards

 

Wenyi

 

 

It's my pleasure 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Greg_Deckler
Super User
Super User

@rpss650 Not sure I understand. If by ascending order you mean your months are in proper sort order then you need to use a numeric Sort By column.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hi Greg,

You mean by using MonthNumber? But how to do that?  What I mean here by ascending order by month name should be like Jan, Feb, Mar, Apr, .....Dec in one year in trend line axis. It seems Power bi can't do that 

Thank you.

Wenyi

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.