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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
LorenMcPherson
New Member

How to Display Line Graph with all Months and Years

I have data across 4 years and want it to display in a line graph showing every month across every year but I can only get this to drill down to either:

 

January 2019, July 2019, January 2020, July 2020 and so on using the following Axis ordering and drilling down as far as possible within the chart 

LorenMcPherson_0-1661899191264.png

LorenMcPherson_1-1661899283589.png

LorenMcPherson_5-1661899895782.png

 

OR

 

December 2019, December 2020, December 2021 and so on using the following Axis ordering and drilling down as far as possible within the chart 

LorenMcPherson_2-1661899751607.png

LorenMcPherson_3-1661899800276.png

LorenMcPherson_4-1661899843378.png

 

I would like it to show October 2019, November 2019, December 2019, January 2020 and so on. It will do this in a bar graph, but not not the line. 

 

I feel lik I am so close but not quite there. Can anyone please help?

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@LorenMcPherson on the formatting pane, change the x-axis type to categorical instead of continuous.

parry2k_3-1661904489108.png

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

6 REPLIES 6
parry2k
Super User
Super User

@LorenMcPherson it need to be categorical not continuous

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@LorenMcPherson on the formatting pane, change the x-axis type to categorical instead of continuous.

parry2k_3-1661904489108.png

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Oh, got it! Thank you very much. Sorry, I was looking at your image more than the text you had written. Perfect. 

Unfortunately I have already got it set as continuous and am still having issues

LorenMcPherson
New Member

Thank you. I had tried that also but unfortunately get the following which still doesn't detail everything I need. 

 

LorenMcPherson_0-1661904127448.png

 

ronaldbalza2023
Continued Contributor
Continued Contributor

It is a matter of "sorting" your months and years date column. In data view, go to your date table > month & years column, at the top look for sort by column and sort your desired column into a sequential column.

ronaldbalza2023_0-1661900874326.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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