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
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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.