Forum Discussion
Anonymous
4 years agoNot applicable
Get data for the last X days including today
I am trying to get data for the past 7 days including today I have tried in the previous 7 days and selecting 'today' (see img) but the next day it does not dynamically change. The reason I am using...
Vijay_A_Verma
Most Valuable Professional
4 years agoUse
Date.IsInCurrentDay(Date.From([datetime]))
Hence use this
= Table.SelectRows(Source, each Date.IsInPreviousNDays([datetime], 7) or Date.IsInCurrentDay(Date.From([datetime])))