Im trying to create a series of optional fields to filter my data source.
I use check boxes to select the fields the user wish's to filter on.

I am having trouble adding conditional filters however, I found a solution online which doesn't work for me, it give's a delegation warning and fails to collect records.
ClearCollect(ArchiveSearch,Filter('[dbo].[Problems]',
If(ShowStatus.Value = false,true,FilterStatus.Selected.Result in Status) &&
If(ShowType.Value = false,true,FilterType.Selected.Type in Type) &&
If(ShowOwner.Value = false,true,FilterOwner.Selected.Result in Owner)))
Anyone have any suggestions how I can get this to work without having to write full filters for every possible combination of filter options which would be a couple of hundred lines long.