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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Most Valuable Professional
Most Valuable Professional

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.