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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
andy808
Helper III
Helper III

Show Min and dynamic Max date in "Between" Slicer - override/update "Clear All Filters" Bookmark

I have a Date Table and currently have a Date Slicer showing First and Last Date (from [Date] Column in Date Table), works fine as I refresh and add new dates. The slicer adjusts to latest [Date]. Here it is 2//18/2023

 

andy808_0-1678120700403.png

 

But I have a "Clear All Filters" Bookmark button for the user which resets page (employer wants this feature) and even thought I add new end dates - when I click on "Clear All Filters" button - the slicer goes back to previous date 2/18/2023. 

 

andy808_2-1678121161682.png

 

Results I need:

I need to keep the ability to reset the Date Slicer back to Min date 7/1/2022 (if user chooses 7/2/2022) but force the Max Date to be updated (example here is 3/6/2023) when clicking on the "Clear All Filter" bookmark. (i.e de-selecting Date Slicer visual from the Bookmark is not a solution)

 

How do I do this? 

 

I tried adding DAX Filters to Date Slicer but it doesnt work when I click the Clear All Bookmark:

Max Date for Slicer = MAXX(
    'Date Table',
    'Date Table'[Date]
 
Thank you!

 

 

2 REPLIES 2
MAwwad
Solution Sage
Solution Sage

 

One approach could be to create a measure that calculates the maximum date dynamically based on the current selection in the slicer, and then use this measure in the slicer instead of the actual date column.

For example, you could create a measure like this:

 

 
Max Date = VAR SelectedMinDate = MIN('Date Table'[Date]) RETURN CALCULATE(MAX('Date Table'[Date]), 'Date Table'[Date] >= SelectedMinDate)
 

Then use this measure in the slicer instead of the actual date column. When the user selects a new start date, the slicer will update to show dates from the selected start date up to the dynamically calculated max date based on the current selection.

When the user clicks on the "Clear All Filters" bookmark, you can reset the slicer selection to the minimum date and the dynamically calculated max date will update accordingly.

I created a calculated column in my date table using your measure, applied it to the Date slicer field and I got this:

andy808_0-1678123358364.png

 

andy808_1-1678123409118.png

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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