Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I have a set of measures that are based around the TODAY() function. E.g. using TODAY() - 7 to find data for a week ago to display a % change for the previous week to date. If I added a date slicer with a list of all previous Sundays to look back at historical week-by-week data, would I be able to format my measures so that the value taken in the TODAY() function is that of the date in the slicer, rather than the actual present day?
Thanks for any help.
Hey @joew98 ,
as TODAY() is a function which always returns todays date you cannot change its value.
Howver I'd suggest you to implement a date dimension table which provides you different dates.
If you want to do analysis like "Show me data from last Saturday till today." then I'd additionally implement a date-range dimension table as well.
Let me know if this helps you or if you need further information.
Thanks, could you explain a bit about a date-range dimension table and how I'd go about implementing that?
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.