I have built a Power Query that filters BEFORE today last year as follows, populating the 12 with a GetValue query that picks up a value from a named cell in the Workbook ,,,
... but it now appears that the REAL requirement (!) is a fixed date cut off, not a fixed period ie ...
... how would I code that?
I know what the syntax looks like if I use a Power Query date filter ie (for 1/4/2020) ...
... but how would I turn eg 1/4/2020 entered into the named cell in the Workbook into the correct syntax ie (2020, 4, 1, 0, 0, 0)?
Thanks ...
Power Query:
[LastCompletedDate] < Date.AddMonths(DateTime.LocalNow(),-12)
... but it now appears that the REAL requirement (!) is a fixed date cut off, not a fixed period ie ...
Power Query:
[LastCompletedDate] < {a fixed date that has been entered into a named cell in the Workbook}
... how would I code that?
I know what the syntax looks like if I use a Power Query date filter ie (for 1/4/2020) ...
Power Query:
[LastCompletedDate] < #datetime(2020, 4, 1, 0, 0, 0)
... but how would I turn eg 1/4/2020 entered into the named cell in the Workbook into the correct syntax ie (2020, 4, 1, 0, 0, 0)?
Thanks ...