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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mj2024
Helper II
Helper II

how to force slicer to always update with today's date?

Hi

I have a slicer that enters a start and end date:

Screenshot 2024-12-29 120222.png

 

The start date doesn't change often.  However, I have to change the end date each time I start up PowerBI because I want the latest data.  It would be very helpful if the end date always updates to today's date.  This way each time I start up PowerBI it will have the latest date.  There are occasions when I have to override this logic and if that happens then I can manually enter an end date.  The default value should be today's date.  How can I do this?

 

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mj2024 ,

 

1. Assuming you want a dynamic date range from the minimum date to the maximum date, you can click this eraser button in PBI Desktop and republish it again:

vcgaomsft_0-1735607318487.png

2. If you are wanting to dynamically date range from this year to today. Then you can introduce visual's filter and bookmarks to achieve this.
create a silcer:

vcgaomsft_2-1735609649433.png

create bookmark1. and then create a new measure:

 

Measure = 
VAR __today = TODAY()
VAR __first_Day_Year = DATE(YEAR(__today),1,1)
VAR __selected_Date = SELECTEDVALUE('Date'[Date])
VAR __result = IF(__selected_Date>=__first_Day_Year && __selected_Date<=__today,1)
RETURN
    __result

 

apply it to the slicer's filter:

vcgaomsft_1-1735609586497.png

create bookmark2. and rename bookmark1 and 2. insert bookmark navigator:

vcgaomsft_3-1735609728628.png

vcgaomsft_5-1735609871252.png

 

Output:

vcgaomsft_4-1735609751872.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @mj2024 ,

 

1. Assuming you want a dynamic date range from the minimum date to the maximum date, you can click this eraser button in PBI Desktop and republish it again:

vcgaomsft_0-1735607318487.png

2. If you are wanting to dynamically date range from this year to today. Then you can introduce visual's filter and bookmarks to achieve this.
create a silcer:

vcgaomsft_2-1735609649433.png

create bookmark1. and then create a new measure:

 

Measure = 
VAR __today = TODAY()
VAR __first_Day_Year = DATE(YEAR(__today),1,1)
VAR __selected_Date = SELECTEDVALUE('Date'[Date])
VAR __result = IF(__selected_Date>=__first_Day_Year && __selected_Date<=__today,1)
RETURN
    __result

 

apply it to the slicer's filter:

vcgaomsft_1-1735609586497.png

create bookmark2. and rename bookmark1 and 2. insert bookmark navigator:

vcgaomsft_3-1735609728628.png

vcgaomsft_5-1735609871252.png

 

Output:

vcgaomsft_4-1735609751872.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Ritaf1983
Super User
Super User

Hi @mj2024 
You can create a flag measure like :

flag_last_transaction = if(max('Calendar'[Date])>max('orders'[Order Date]),0,1
Or same logic by last transaction:
flag_last_transaction = if(max('Calendar'[Date])>max('orders'[Order Date]),0,1)
and use it as a filter for the slicer :
Ritaf1983_0-1735532851096.pngRitaf1983_1-1735533040582.png

The pbix with the example is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
some_bih
Super User
Super User

Hi @mj2024 one possible option is to use filter for Relative date, like on picture below. Set it according to your data /requirements.

some_bih_0-1735514853183.png

 





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

Proud to be a Super User!






Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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 Kudoed Authors