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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.