Thanks to some helpful posts on this forum, I'm using a function to collect a range of dates in a collection. I'm also looking to add a column to the code, that uses LookUp on a SharePoint list to verify dates. The code all works, but I get a delegation warning on the checkDate=DateAdd(weekStart, Value, Days) part. If I change 'Value' to a static number, this warning goes away. Is there any way to avoid this delegation warning at all, whilst using the current Value?
Or is the warning in this instance not a big deal and therefore I shouldn't worry about it?
ClearCollect(
DateRange,
AddColumns(
FirstN(
[0,1,2,3,4],
DateDiff(weekStart, DateAdd(Today(),1-Weekday(Today(),StartOfWeek.Monday)+4,Days), Days) + 1),
"Day",
"Day " & (Value + 1),
"Date",
DateAdd(weekStart, Value, Days),
"complete",If(IsBlank(LookUp(sfbbLogs,checkDate=DateAdd(weekStart, Value, Days))),false,true)
)
)