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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
zacharylwy
Frequent Visitor

Year-on-Year Graph with Month name as X-axis

I've created a year-on-year chart that shows each year's performance on the same axis. I have a DateTable that has all the handy columns like "Date", "DayOfYear", "Month" etc. 

I can only format it and fit all data points as attached in the picture when the X-axis is DayOfYear. When I change to Month, it zooms in a lot and turns the graph into something that needs to be scrolled through.

I want to display the axis as Month (Jan, Feb,... or J, F, M, ...) . How do I do this and still have all datapoints fit/no need scroll

zacharylwy_0-1740045358472.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @zacharylwy ,

Based on the testing, if put the month on the X-axis and also display the daily values, that is, there will be a scroll bar, which is designed by the UI layout and cannot be removed. Because by putting both month and days, the line graph is not displayed completely there will be scrollbars.

Unless you don't add the month on the X-axis, then you can display the daily values without scrollbars.

vjiewumsft_0-1740129331780.png

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @zacharylwy ,

Based on the testing, if put the month on the X-axis and also display the daily values, that is, there will be a scroll bar, which is designed by the UI layout and cannot be removed. Because by putting both month and days, the line graph is not displayed completely there will be scrollbars.

Unless you don't add the month on the X-axis, then you can display the daily values without scrollbars.

vjiewumsft_0-1740129331780.png

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

audreygerred
Super User
Super User

Hi, when I have month number in my chart, it doesn't show a scroll bar - this is with the x-axis set as continuous

audreygerred_0-1740066743806.png

 

If I change it to categorical, it still doesn't show a scroll bar, but it does display each month number

audreygerred_1-1740066865126.png

 

I tried with abbreviations of month names and it still works:

audreygerred_0-1740067508603.png

 

 

Can you share a screenshot of what yours is doing?

 

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Also, I do not wish to show just the month totals (12 data points). I want to show the daily values (365/366 data points), same result as if I used "DayOfYear" just with month labels on the X axis.

Ah my apologies, I left out a great deal of details.
I actually put both DayOfYear and Month in the X-axis...For some reason, "Month" alone does not work (nothing shows).

zacharylwy_0-1740101823647.png


Then the graph with the above setting looks like this:

zacharylwy_1-1740101878281.png

 




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.