Hi
I have a gallery which has a variety of different check boxes to apply various filtering. Can anyone suggest a way of making the following code delegable? If I remove the IF statements from inside the FILTER, it works fine:
Sort(
Sort(
Sort(
Filter(
CRUD_3,
If(
FilterBox_6months.Value = true,
(StartDate <= Today() - 180),
(StartDate >= Today() - 180)
),
If(
FilterBox.Value = true,
(TaskType = Value(Filter.Text)) || ProjectId=TxtSearchJob.Text,
TaskType <> Blank()
),
If(
FilterBox2.Value = false,
(TaskNo = 0 Or TaskNo = 3),
TaskType <> Blank()
),
Show = "true"
),
TaskNo,
SortOrder.Ascending
),
ProjectId,
SortOrder.Ascending
),
ProjectName,
SortOrder.Ascending
)