Forum Discussion
Anonymous
6 years agoNot applicable
Current Day Offset
Hello All,
I have a report where I need to filter by -3 days and +12 days to todays date. It needs to consistently update. If possible, I'd prefer to have this in Power Query.
Thanks!
#date(Date.Year(DateTime.LocalNow()),Date.Month(DateTime.LocalNow()),Date.Day(DateTime.LocalNow())) - [Date]
3 Replies
- Greg_DecklerCommunity Champion
#date(Date.Year(DateTime.LocalNow()),Date.Month(DateTime.LocalNow()),Date.Day(DateTime.LocalNow())) - [Date] - Greg_DecklerCommunity Champion
In DAX it would be:
(TODAY() - [Date]) * 1.
- AnonymousNot applicable
Oh... 😶 Maybe I'll just do it in DAX then.
Thanks!