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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Line Graph

I would like to create line graph by showing Year/Month on x-axis. I tried different options ,but could not figure it out. Any suggestions how to acheive it?

 

ja832153_0-1621000459169.png

 

1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hi @Anonymous ,

 

Quick way will be something like below:

  1. Create a chart moving your date hierarchy on x-axis and keeping just Month & Year in the hierarchy.
  2. On the chart drill down to the lowest hierarchy as shown below in the chart:

Pragati11_0-1621000999837.png

Once you click on drill-down you get month-year on the x-axis:

Pragati11_1-1621001062178.png

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

2 REPLIES 2
selimovd
Super User
Super User

Hey @Anonymous ,

 

there is year and month on the x-axis. How do you want it to look like?

 

Also please share a screenshot of your hierarchy that you are using for the visual. If you put year and then month name you should get the result.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
Pragati11
Super User
Super User

Hi @Anonymous ,

 

Quick way will be something like below:

  1. Create a chart moving your date hierarchy on x-axis and keeping just Month & Year in the hierarchy.
  2. On the chart drill down to the lowest hierarchy as shown below in the chart:

Pragati11_0-1621000999837.png

Once you click on drill-down you get month-year on the x-axis:

Pragati11_1-1621001062178.png

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.