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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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