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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

How to Limit the Date Slicer selection to one year

Hi All,

 

I have a Date Slicer with defined Calender Data set. It's working absolutely fine to seleted the from and To dates.

 

Now, my questions - Is there any way we can limit the selection of dates , either from and To to one year.

 

For example -If user selects from Date, can Power Bi Auto fill the To Date with the difference on 365 days or 1 year? Likewise for To Date as well?

 

KrishnaKoushik_0-1597845291683.png

@DataSlicer 

3 REPLIES 3
Anonymous
Not applicable

First, click on the slicer, then, go to the filters panel and input the following setting (amending the from and to accordingly) then hit apply. 

Karlos_0-1597845680773.png

 

Anonymous
Not applicable

@Anonymous- Thanks for your response

 

Actually I have a calender range of 2-3 decades , I just want to give the flexibility to user such that if user selects or slides either From or To Dates,the other one should auto select or slide with the difference of 1 year.

 

For example - In the Calender dates of 20-30 years , if I select from date as 18th August 2020 -the date slicer should be something like 18th August 2020 to 17th August 2021

 

Anonymous
Not applicable

Got ya, 

 

Try the Timeline Slicer, it's actually really nice for that type of thing. 

Karlos_0-1597846681124.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors