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

How to set a time slicer to select the latest date in default

Hello,

 

I have a dashboard that shows sales by day. How can I set in my date slicer to automaticly select by default the latest date in which I had data? Please note that there are some days that I don't have any data, thus the solution with the relative value does not work in my case.

 

Looking forward for your responses.

 

Many thanks,

MariosChr90

1 ACCEPTED SOLUTION
v-huizhn-msft
Employee
Employee

Hi @Anonymous,

First, create a refresh schedule for your dataset following the steps in this article. Then create a measure to get the latest date using the formula and display it a card visual, when you dataset refresh, the measure returns the latest date automatically. Please note we can't use measure in slicer, we just display it in other visuals.

Latest Date=LASTDATE(Table[Date])


Best Regards,
Angelia

View solution in original post

3 REPLIES 3
v-huizhn-msft
Employee
Employee

Hi @Anonymous,

First, create a refresh schedule for your dataset following the steps in this article. Then create a measure to get the latest date using the formula and display it a card visual, when you dataset refresh, the measure returns the latest date automatically. Please note we can't use measure in slicer, we just display it in other visuals.

Latest Date=LASTDATE(Table[Date])


Best Regards,
Angelia

I'm curious about the use cases for having a date slicer that *doesn't* update when a data refresh happens? Why would you even display this slicer in a report? If you really wanted a static date, wouldn't you just create a visual or report filter? This "non-updating date slicer" issue has really been a frustration, having come to Power BI from Tableau.

Anonymous
Not applicable

Thank you Angelia,

 

This looks to be a good way to solve my problem.

 

Many thanks for your help!

 

MariosChr90

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.

Top Solution Authors
Top Kudoed Authors