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.
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
Solved! Go to Solution.
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
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.
Thank you Angelia,
This looks to be a good way to solve my problem.
Many thanks for your help!
MariosChr90
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.