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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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