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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Modify Relative Date Slicer

Hello , I need help. Can we change the today date (1/29/2024) to custome date in Relative Date Slice ? I need to change it to the date when data last update. Thanks before.

ChristoNindyo_0-1706544086008.png

 

1 ACCEPTED SOLUTION
MiquelPBI
Helper I
Helper I

Since the relative option doesnt include today I've approached this with bookmarks.  Assuming the last updated date you're anchoring on is at the model level then this is what I would do.  

 

1. add a column to a date dimension that is a Yes/No for the last date.  I did this in Power Query.  Load this to your model.  

MiquelPBI_0-1706547561456.png

2. Added two slicers to the page.  One for the LastDateDataUpdatedYN column and the second for relative dates. Both columns come from the date dimension in the model. 

MiquelPBI_1-1706547656111.png

3. I set up two bookmarks.  One that catches the state of the LastDateDataUpdatedYN set to Yes and the other where nothing is selected.  I set the bookmark to remember the data, display, and selected visuals.  Selecting the data will remember the selections in the slicer.

MiquelPBI_2-1706547754492.png

4. I added a card and bookmark navigator to the page to clean up the behavior I want the end user to experience.  This part is optional and totally up to how you want the page to feel.  I wanted to demonstrate how the bookmark can tie it together.  

Here is what it looks like when 'Today' is selected.  Notice what is visible in the Dates group on the selection pane.  

MiquelPBI_3-1706548005465.png

Here is what it looks like when 'Relative Dates' is selected.  Again, notice what is visible in the Dates group on the selection pane. 

MiquelPBI_4-1706548069378.png

 

View solution in original post

2 REPLIES 2
MiquelPBI
Helper I
Helper I

Since the relative option doesnt include today I've approached this with bookmarks.  Assuming the last updated date you're anchoring on is at the model level then this is what I would do.  

 

1. add a column to a date dimension that is a Yes/No for the last date.  I did this in Power Query.  Load this to your model.  

MiquelPBI_0-1706547561456.png

2. Added two slicers to the page.  One for the LastDateDataUpdatedYN column and the second for relative dates. Both columns come from the date dimension in the model. 

MiquelPBI_1-1706547656111.png

3. I set up two bookmarks.  One that catches the state of the LastDateDataUpdatedYN set to Yes and the other where nothing is selected.  I set the bookmark to remember the data, display, and selected visuals.  Selecting the data will remember the selections in the slicer.

MiquelPBI_2-1706547754492.png

4. I added a card and bookmark navigator to the page to clean up the behavior I want the end user to experience.  This part is optional and totally up to how you want the page to feel.  I wanted to demonstrate how the bookmark can tie it together.  

Here is what it looks like when 'Today' is selected.  Notice what is visible in the Dates group on the selection pane.  

MiquelPBI_3-1706548005465.png

Here is what it looks like when 'Relative Dates' is selected.  Again, notice what is visible in the Dates group on the selection pane. 

MiquelPBI_4-1706548069378.png

 

Anonymous
Not applicable

@MiquelPBI wow ! Thank you so much

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors