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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Sync Data Slicer to always shoe todays date as to date

Looking to see if there is a way to set a date slicer to always look up to todays date as a default. Rather than this needing to be moved each day

Capture.JPG

4 REPLIES 4
PattemManohar
Community Champion
Community Champion

@Anonymous  You can try using relative date filtering either in slicer visual or Filters pane as shown below

 

image.pngimage.png





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

Proud to be a PBI Community Champion




Anonymous
Not applicable

@PattemManohar this will work but i want the date slice to look at all dates up to todays date. Thank you

@Anonymous Ignore my suggestion, go with @PattemManohar reccomendation.  Putting the date on the slicer and setting it to Relative > This Day will make moving selection.

jdbuchanan71
Super User
Super User

Hello @Anonymous 

If you add a column to your date table using this code.

Date (today) = IF ( Dates[Date] = TODAY(), "Today", FORMAT ( Dates[Date], "m/d/yyyy" ) )

Then you can put the [Date (today)] field in your slicer and pick "Today".  Whenever the model refreshes (I assume that is daily) this column will get calculated and the row that is marked as "Today" will shift.  Since your slicer is set to pick the row that is marked as "Today" your selection moves with it.

 

Tomorrow the row for 7/13/2019 will be marked as "Today"Tomorrow the row for 7/13/2019 will be marked as "Today"

If you con't care about seeing the other dates and only care about "Today" moving you can change the code to this.

Date (today) = IF ( Dates[Date] = TODAY(), "Today" )

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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