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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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

Top Solution Authors