I have a list with columns Col1 to Col9, and each column contains comma separated city names (City1 to City5).
I've created an app that needs to filter which columns I search through and which cities are searched for in the columns and display them in a gallery.
So CityCheckbox1, CityCheckbox2 + ColCheckbox1 looks for list entries that might have city 1 OR city 2 in column 1.
Similarly CityCheckbox1, CityCheckbox2 + ColCheckbox1, ColCheckbox2 would be city 1 OR city 2 in Col1 AND Col2.
My first thought was to keep appending the cities to a collection and search, but I don't know if searching beyond that is possible.
My current formula (which only works for once city at a time) is:
Search(
AddColumns(
Filter(SourceList,
If(ColCheckbox1.Checked ,If(CityCheckbox1.Checked, "City1", CityCheckbox2.Checked, "City2", false) in Col1, true)
,"Searchby", Sourcelist.title, "Searchby1", Sourcelist.title2),
Searchbox.Value, "Searchby1", "Searchby2")
Repeated for each Colcheckbox.