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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
alemoldav
Regular Visitor

Reset bookmark that sets date slicer to today

Hi everyone,

 

I have a date slicer in my report using the Date slicer with the "After" type.

( I have a calendar table generated in dax, and the date slicer is based on the 'Calendar'[Date] column )

alemoldav_0-1764252292934.png

I use this workaround beacuse I only need one single date from the slicer. In my measure, to retrieve the date I use:

Selected Date = MIN('Calendar'[Date])

This part works fine.

 

On the page I also have a "Reset" button linked to a bookmark, which is supposed to clear all filters on the page. The problem is:

when i click the reset button, the bookmark restores the date slicer to the date that was selected when i last updated the bookmark.

 

What i would like instead is: when I click the reset button, the date slicer should automatically go to today's date (maybe like using TODAY() function as default ? ), instead of the static date saved in the bookmark.

 

The actual state of the bookmark "Reset":

alemoldav_1-1764253347561.png

 

Is there any way to achieve this? Thanks!

1 ACCEPTED SOLUTION

Hi @alemoldav ,

 

The total changing when you add a legend usually means the measure is reacting differently once the visual is split into categories. When the legend is added, Power BI recalculates your measure separately for each slice, and then adds them up which often doesn’t match the “true” total you expect. A reliable way to fix this is to calculate the core pieces of your measure (like Time Booked and Capacity) in a way that doesn’t depend on the legend’s filters.

 

You can do this by wrapping those base measures in REMOVEFILTERS() (or ALL()) so they always compute at the right level before the legend is applied. Once those pieces are stable, the total stays consistent even when you break the bars into categories. If the issue still appears after isolating the filters, then it’s likely due to how the visual calculates totals internally, and raising a Microsoft support ticket would be the right next step.

Thank you.

View solution in original post

9 REPLIES 9
alish_b
Impactful Individual
Impactful Individual

Hey @alemoldav ,

 

Give this a try:
1. Use a 'Before' filter instead of the 'After' filter. Now obviously, you can't resize like you can with the 'After', so put a white shape on top of the unwanted parts of the date slicer (should work seamlessly in Service with, and in Desktop being the development environment the illusion lasts until you double click on the slicer). Also add a text box separately for the Date Title :

alish_b_0-1764322093008.png

2. Now your measure will be using Selected Date = MAX('Calendar'[Date])
3. Add a relative date filter for the whole page on the Calendar[Date] column with last X years including today:

alish_b_1-1764322656059.png

4. Now if the bookmarks job is to just clear the filters, you could simply use the Insert> Buttons> Clear all slicers.

alish_b_2-1764322823662.png

 

Finally, test if it is working as per your requirements.

Hope it helps!

danextian
Super User
Super User

Hi @alemoldav 

Bookmarks don’t have awareness of today’s date. A bookmark is simply a saved snapshot of the report’s state. It remembers exactly what was selected at the time it was created. So if the selection was “yesterday,” triggering the bookmark later will still select “yesterday,” not the new current date.

 

Slicer selections on the other hand rely on a column’s Group By property, which can be configured in Tabular Editor.

In the GIF below, the Date column’s Group By is set to the Offset column, and the selected offset value is –12. Even as the calendar table updates and actual dates shift, the offset value remains constant. So if the offset for today is 0 and today is selected, the slicer will automatically move to the new current date when TODAY changes – because the offset value is still 0.

 

However, this behavior works only with vertical slicers. Range and dropdown slicers do not respond visually to the Group By configuration in the same way — which is why the range slicer in the example does not update its selection.

danextian_0-1764302017395.gif

Please refer to this video - https://youtu.be/MrEAZREQuXM

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Okay, so there is no way to set the date filter i have in my report to the today's date, the only way to achieve this is to use the vertical slicer...

This works fine but i need in my report the date filter with the calendar..

Thank you anyway!

Hi @alemoldav ,

 

The total changing when you add a legend usually means the measure is reacting differently once the visual is split into categories. When the legend is added, Power BI recalculates your measure separately for each slice, and then adds them up which often doesn’t match the “true” total you expect. A reliable way to fix this is to calculate the core pieces of your measure (like Time Booked and Capacity) in a way that doesn’t depend on the legend’s filters.

 

You can do this by wrapping those base measures in REMOVEFILTERS() (or ALL()) so they always compute at the right level before the legend is applied. Once those pieces are stable, the total stays consistent even when you break the bars into categories. If the issue still appears after isolating the filters, then it’s likely due to how the visual calculates totals internally, and raising a Microsoft support ticket would be the right next step.

Thank you.

Hi @alemoldav ,

 

I wanted to follow up and see if you had a chance to review the information shared. If you have any further questions or need additional assistance, feel free to reach out.

Thank you.

Hi @alemoldav ,

 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

Thank you.

lbendlin
Super User
Super User

Don't use slicers.  Use the Filter pane. There you can specify Relative Date filters.

Jihwan_Kim
Super User
Super User

Hi,

One of ways to reset to today is, 
- use new-button-slicer

- create date order column in the calendar table that shows today = 0.
- insert date order column into new button slicer visualization

- do not show date order column on the slicer (turn off value), but show the measure as label (turn on label). 

- Note: the semantic model in the service has to be refreshed at least daily.

 

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1764269296593.png

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

m4ni
Helper II
Helper II

@alemoldav - firstly you probably want to untick Data in your bookmark settings (in your case - Dati) .  If this is ticked, the bookmark will remember the data/date in its state.  

Secondly, you cant really force todays date in the slicer.  Best option would be to have a relative date filter in the last x months/days etc so your slicer is largely dynamic and not fixed to a date.  

Please try these options to see if it helps, but you probably have to find some middle ground on what is actually practically possible and the functionality.  HTH

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.