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

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

Reply
wpf_
Post Prodigy
Post Prodigy

How to disable selecting old dates on a date slicer?

I have a calendar table which uses calendarauto() and gives me just the dates for the year and use it in a slicer as a date picker.  I am using the calendar picker not the slider or drop down picker.  How can i disable the user from picking dates older then today?  in my calendar table i have a column that only shows dates from today onward.  Older dates show up blank.  And i am using this column in the slicer.  However when i pick an older date, the slicer still shows the older date even though the data is today's date (min).  So this could confuse users.  I am trying to avoid using a slider or drop down.  Thanks. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @wpf_ 

If you only want to show dates after today in your date slicer, you can try to build a filter measure.

I build a Date table by calendar function.

Date = 
CALENDAR(DATE(2021,01,01),DATE(2021,12,31))

Measure:

Slicer Filter Measure = IF(MAX('Date'[Date])<TODAY(),0,1)

Add this measure into your slicer and set it to show items when the value equal to 1.

1.png

Best Regards,

Rico Zhou

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @wpf_ 

If you only want to show dates after today in your date slicer, you can try to build a filter measure.

I build a Date table by calendar function.

Date = 
CALENDAR(DATE(2021,01,01),DATE(2021,12,31))

Measure:

Slicer Filter Measure = IF(MAX('Date'[Date])<TODAY(),0,1)

Add this measure into your slicer and set it to show items when the value equal to 1.

1.png

Best Regards,

Rico Zhou

 

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

 

amitchandak
Super User
Super User

@wpf_ , if you are using calendar date picker, between range?

I think that is able to show dates in the past even if they are not available. 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

 

Is there any way to get around this?  Even if i just want to display a messsage that they can't show it? 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.