I have seen the reference posts on SO here and here. I have tried the responses from the forums but can not successfully run my PowerQuery.
So far I have named both my Start and End date cells as "StartDate" and "EndDate". From there I have created two blank queries, both renamed to StartDateValue and EndDateValue and look like this:
(StartDate) => Excel.CurrentWorkbook(){[Name=StartDate]}[Content]{0}[Column1]
and (EndDate) => Excel.CurrentWorkbook(){[Name=EndDate]}[Content]{0}[Column1]
Now, Looping back to my original PowerQuery, the where clause to set these date parameters looks as such:
AND A."CREATED_DTM" BETWEEN Excel.Workbook(File.Contents(StartDateValue("StartDate"))) and Excel.Workbook(File.Contents(EndDateValue("EndDate")))
Doing so doesnt seem to work. Though if I replace my "failed" call and simply input date values like '5/1/2022'
my script executes normally. Maybe I am missing a step or not calling the values properly in my SQL...not too sure. Any information on this helps, thanks.