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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Don't Show Year in X-axis when Drilled Down to Month Level

Hello all,

 

I have this issue and I have tried using conditional formatting to solve it but I can't figure out a way.

I have a graph like the one below that has the Years in the x-axis and you can drill down to the Month level:

Manolis_2-1733302185556.png

 

I just don't want to show the year (circled in the below screenshot) when I have drilled down to the Month level 

Manolis_0-1733302119296.png

 

Thank you in advance for you help

1 ACCEPTED SOLUTION
govind_021
Super User
Super User

Hi  
Please have a look below You must have concatenate labels in X axis of the chart - Turn off
Please trun it on and year label will be gone as shown in below screenshot 

If your problems solves please make it as solution.

 

govind_021_2-1733305081357.png


Best Regards,
Govind Sapkade
Data Analyst | Power BI Enthusiast | Microsoft PL 300 Certified Power BI Data Analyst | MS Fabric Enthusiast
🎥 Subscribe to my youtube channel for hands on tutorials : https://www.youtube.com/@govind_dataanalyst

📊 Let’s connect on Linkdin : www.linkedin.com/in/govind-sapkade-845104225

View solution in original post

4 REPLIES 4
govind_021
Super User
Super User

Hi  
Please have a look below You must have concatenate labels in X axis of the chart - Turn off
Please trun it on and year label will be gone as shown in below screenshot 

If your problems solves please make it as solution.

 

govind_021_2-1733305081357.png


Best Regards,
Govind Sapkade
Data Analyst | Power BI Enthusiast | Microsoft PL 300 Certified Power BI Data Analyst | MS Fabric Enthusiast
🎥 Subscribe to my youtube channel for hands on tutorials : https://www.youtube.com/@govind_dataanalyst

📊 Let’s connect on Linkdin : www.linkedin.com/in/govind-sapkade-845104225

Anonymous
Not applicable

Thank you. That works mostly fine. Do you know if there is a way to do it so that only in specific situations (specific filters are applied) hides the year?

bhanu_gautam
Super User
Super User

@Anonymous , Try using 

Use DAX to create a measure that returns an empty string when the drill-down level is at the month. You can then use this measure in your visual to conditionally format the axis labels.

 

AxisLabel =
IF(
HASONEVALUE('Date'[Month]),
"",
MAX('Date'[Year])
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Anonymous
Not applicable

Thank you for your answer. But how can I format the axis labels? Don't they come from columns?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.