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
ChristoNindyo
Advocate I
Advocate I

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

 

@MiquelPBI wow ! Thank you so much

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors