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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
joew98
Frequent Visitor

TODAY() date changing with date slicer?

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.

2 REPLIES 2
iceparrot
Advocate II
Advocate II

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?

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors