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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
nleuck_101
Responsive Resident
Responsive Resident

X-Axis to only display the years but show data points for all the months

Hello All,

 

How would I control the X-Axis in Power BI to show the years only but the values in the chart show all the months? I feel like I've done this before but I'm not getting exactly what I want in the chart or the x-axis. Below is a screenshot of what I'm trying to accomplish. I'm probably overthinking this so any help would be greatly appreciated!

nleuck_101_0-1778098232952.png

 

1 ACCEPTED SOLUTION
freginier
Super User
Super User

Hi nleuck_101,

 

In a Line chart, set the X-axis Type to Continuous (Format pane > X-axis > Type = Continuous) and feed it your real Date column (not a Year or Year-Month text column). Power BI then automatically thins out tick labels: at a wide range it shows only the years while every month is still plotted as a data point.

 

If you must keep a Categorical axis, build the date hierarchy (Year > Quarter > Month), turn off Concatenate labels under X-axis, and use the Expand all down one level icon so the months show with their year as the parent label.

 

Last resort, a calculated column you can use as the category:

 

Year Label = IF(MONTH('Calendar'[Date])=1, FORMAT('Calendar'[Date],"YYYY"), BLANK())

 

Then use [Year Label] on the X-axis with Type = Categorical and the line will have monthly points but only year labels. The Continuous axis option is the cleanest one in 99% of cases.

 

Hope this helps!

View solution in original post

2 REPLIES 2
nleuck_101
Responsive Resident
Responsive Resident

@freginier 

I used option 1. I was completely overthinking this. Thanks for the help!

freginier
Super User
Super User

Hi nleuck_101,

 

In a Line chart, set the X-axis Type to Continuous (Format pane > X-axis > Type = Continuous) and feed it your real Date column (not a Year or Year-Month text column). Power BI then automatically thins out tick labels: at a wide range it shows only the years while every month is still plotted as a data point.

 

If you must keep a Categorical axis, build the date hierarchy (Year > Quarter > Month), turn off Concatenate labels under X-axis, and use the Expand all down one level icon so the months show with their year as the parent label.

 

Last resort, a calculated column you can use as the category:

 

Year Label = IF(MONTH('Calendar'[Date])=1, FORMAT('Calendar'[Date],"YYYY"), BLANK())

 

Then use [Year Label] on the X-axis with Type = Categorical and the line will have monthly points but only year labels. The Continuous axis option is the cleanest one in 99% of cases.

 

Hope this helps!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.