Hello everyone,
I'm trying to filter a sharepoint source into a collection based on items in a gallery. So for example, my gallery has the following items - "Facility, Horticulture..." then I have a collection that I need to filter to show items that have facility or horticulture as the unit or whatever items that are in the gallery. My problem is, I don't know how to do it. I've tried different things that haven't worked. Any help will be appreciated. This is what I have in my code now...I've commented out the different things i've tried/am trying.
ClearCollect(
colBudgetFilter,
If(
User().Email = varDeptHead,
Filter(
Budgets,
Department = varDept,
Conso = "Admin Costs",
Year = Text(Year(Today()))
),
Filter(
Budgets,
//Unit = "Facility" || Unit = "Horticulture",
//Unit = Concat(Gallery2.AllItems, Unit, "; "),
//ForAll(Gallery2.AllItems, Unit =
Conso = "Admin Costs",
Year = Text(Year(Today()))
)
)
);