Hello,
I have a delegation issue that I was trying to work around, but am having no luck. I have the following code:
ClearCollect(
FilteredDataverseTable,
ShowColumns(
If(ComboBox1.Selected.Value = "Choice1",
Filter(DataverseTable, DateValue('Custom Date/Time') = DateValue(Today())),
If(ComboBox1.Selected.Value = "Choice2",
Filter(DataverseTable, Email in Filter('DataverseTable2', 'Status' = "Yes").Mail,
DateValue('Custom Date/Time') = DateValue(Today())),
If(ComboBox1.Selected.Value = "Choice3",
Filter(DataverseTable, Section = ComboBox1.Selected.Value,
DateValue('Custom Date/Time') = DateValue(Today())
)
),"customdatetime","location","comments","name","section")
);
The section of code that is used in the if statements that is getting the delegation warning is: DateValue('Custom Date/Time') = DateValue(Today())
The warning recieved is: Delegation Warning. The "DateValue" part of this formula might not work correctly on large datasets.
I have tried the following:
'Custom Date/Time' = Today()), which didn't show any records in the app.
'Custom Date/Time' = glbDateToday, which glbDateToday was set as Set(glbDateToday, Today()) in the app OnStart. This also produced no records in the app.
I see records in the app with the code as is, DateValue('Custom Date/Time') = DateValue(Today()), but I am not seeing all of the records due to non-delegable functions. Any help would be greatly appreciated!