Is it possible to sort and filter a gallery with an if statement? There are two filters currently. One is for location, and that one filters the other one which is for Asset. I want the defualt of the gallery to show all items, but when the user selects the asset I want it to filter the items for that asset.
I have tried the following, but it errors out:
Sort(
If(Facility.Selected.Value="All"),
Machine_Projects,
Filter(
Machine_Projects,
Asset=Line.Selected.Value),
'Date Down')
HELP!!!! Thank you.