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!
- 6 years ago
#date(Date.Year(DateTime.LocalNow()),Date.Month(DateTime.LocalNow()),Date.Day(DateTime.LocalNow())) - [Date]
Greg_Deckler
6 years agoCommunity Champion
In DAX it would be:
(TODAY() - [Date]) * 1.
Anonymous
6 years agoNot applicable
Oh... 😶 Maybe I'll just do it in DAX then.
Thanks!