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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
eviswink
Frequent Visitor

Date format with zoom slider on X-axis

Hello,

I have a question about the zoom slider in Power BI. In the visual below I use dates on the X-axis with a zoomslider. When all the data point are in the same month, the year is not visible in the labels on the X-axis. Is there a way to fix this? Thanks in advance!

 

zoomslider.png

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @eviswink 

Enabling the slider label will show the period you've selected within the slider. However, if your slicer selections result in a single month, it will impact the slider range, causing the year to become invisible.

danextian_0-1744115091812.png

danextian_1-1744115473336.png

 

Alternatively, you can create a measure that returns the year if there's only one month in the current context.

Year = 
IF (
    -- Check if the selected value in 'dates[month and year]' is not blank
    NOT ( ISBLANK ( SELECTEDVALUE ( dates[month and year] ) ) ),

    -- If not blank, return the maximum year from the 'dates[year]' column
    MAX ( dates[year] ),

    -- If blank, return an empty string
    ""
)

 Alternatively, you can create a measure that returns the year if there's only one month in the current context.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

6 REPLIES 6
v-karpurapud
Community Support
Community Support

Hi @eviswink 

Could you please confirm if your query have been resolved the solution provided by @Daniel29195 & @danextian ? If they have, kindly mark the helpful response and accept it as the solution. This will assist other community members in resolving similar issues more efficiently.

Thank you

danextian
Super User
Super User

Hi @eviswink 

Enabling the slider label will show the period you've selected within the slider. However, if your slicer selections result in a single month, it will impact the slider range, causing the year to become invisible.

danextian_0-1744115091812.png

danextian_1-1744115473336.png

 

Alternatively, you can create a measure that returns the year if there's only one month in the current context.

Year = 
IF (
    -- Check if the selected value in 'dates[month and year]' is not blank
    NOT ( ISBLANK ( SELECTEDVALUE ( dates[month and year] ) ) ),

    -- If not blank, return the maximum year from the 'dates[year]' column
    MAX ( dates[year] ),

    -- If blank, return an empty string
    ""
)

 Alternatively, you can create a measure that returns the year if there's only one month in the current context.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Daniel29195
Super User
Super User

hello @eviswink 

i understand what you want. try this workaround. 

in the updated version  of power bi , when enabling the zoom slider ,

if you expand the zoom slicer, you have slider labels toggled off. just toggle it on . 

 

hope this helps 

Hi @Daniel29195, thank you for your response. I toggled on the slider labels but this doesn't solve the issue unfortunately. sliderlabels.png

make sure you are using a date column on the x axis.   @eviswink 

Daniel29195_2-1744116177639.png

 

Daniel29195_3-1744116195032.png

 

The column that I use on the X-axis is a date column.

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.