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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
adityah
Frequent Visitor

How to set dynamic defaults on slicers?

Hi,

 

Posting this question since I did not find anything similar on the forum.

 

I want to create a filter with the default as today - 64days till today+32 days but I do not want it to be a dropdown or anything. I need to to be a slicer. I know it is still not a feature in Power BI yet. Any workarounds ?

1 ACCEPTED SOLUTION
JoeBarry
Solution Sage
Solution Sage

Hi @adityah 

 

In your date table add a new column

DatesRange = if('DIM Date'[Date] >= TODAY() - 64 && 'DIM Date'[Date] <=  TODAY() +32,1, 0)

 

Add a slicer with the normal date column in it. in the filter bar add the new column and choose filter type Basic filtering and choose 1 and apply filter

 

JoeBarry_0-1693475326176.png

Thanks

Joe

If this post helps, then please Accept it as the solution

 

View solution in original post

1 REPLY 1
JoeBarry
Solution Sage
Solution Sage

Hi @adityah 

 

In your date table add a new column

DatesRange = if('DIM Date'[Date] >= TODAY() - 64 && 'DIM Date'[Date] <=  TODAY() +32,1, 0)

 

Add a slicer with the normal date column in it. in the filter bar add the new column and choose filter type Basic filtering and choose 1 and apply filter

 

JoeBarry_0-1693475326176.png

Thanks

Joe

If this post helps, then please Accept it as the solution

 

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.

Top Solution Authors