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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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