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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
newpbiuser01
Helper V
Helper V

Zoom Slider with Date Hierarchy

Hello,

 

I have a stacked bar chart with the date field on the x axis and the payment amount on the y axis. Given the time period being shown on the chart, I need to do the following:

1. Add a zoom slider on the x axis.

2. Show/Bin the time as Month-Year. 

 

When I use add the date as a date heirarchy on the x axis, the x-axis zoom slider is not available. I can only see it if I add the date field as the date field - which plots the visual by the actual date in the column and I need it combined/grouped by month.

 

newpbiuser01_0-1683232097079.png

Does anyone know how I could add the zoom slider and also group the data by month? 

 

Thank you!

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @newpbiuser01 

The Zoom Slicer visual requires a numeric field to work properly.

For your need i  think we can create a calendar Date table as a dimension, and we can create a calculated column like this:

Column 2 = EOMONTH([Date],-1)+1

vyueyunzhmsft_0-1683517639782.png

Then we put this column as the X-axis:

vyueyunzhmsft_1-1683517668475.png

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

2 REPLIES 2
v-yueyunzh-msft
Community Support
Community Support

Hi , @newpbiuser01 

The Zoom Slicer visual requires a numeric field to work properly.

For your need i  think we can create a calendar Date table as a dimension, and we can create a calculated column like this:

Column 2 = EOMONTH([Date],-1)+1

vyueyunzhmsft_0-1683517639782.png

Then we put this column as the X-axis:

vyueyunzhmsft_1-1683517668475.png

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

 

Hi!

 

I have a similar problem but on x-axis instead of just date I have datetime, how can i get a zoom slider for x-axis in this case?

Thanks!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.