@JRii
let's say you have 2 comboboxes:
- comboboxCause - single choice
- comboboxLocation - multi choice
comboboxLocation has "Nationwide" option and when it is selected, all other selected states are ignored (example "nationwide", "CA", "WA" are selected, fitering will ignore "CA" and "WA" and show all states records)
add a button close to those comboboxes.
button.OnSelect =
Clear(colFilteredMultiCHoice);
If(
!IsBlank(comboboxLocation.Selected.Value) && !("Nationwide" in comboboxLocation.SelectedItems.Value),
ForAll(comboboxLocation.SelectedItems As ThisLocation,
Collect(colFilteredMultiCHoice,
Filter('Volunteer Opportunities',
If(!IsBlank(comboboxCause.Selected.Value),
ThisLocation.Value in Location.Value && comboboxCause.Selected.Value = Cause.Value,
ThisLocation.Value in Location.Value
)
)
)
)
,
!IsBlank(comboboxCause.Selected.Value),
Collect(colFilteredMultiCHoice,
Filter('Volunteer Opportunities',
comboboxCause.Selected.Value = Cause.Value
)
)
,
Collect(colFilteredMultiCHoice, 'Volunteer Opportunities')
);
Clear(colFilteredMultiCHoice1);
ForAll(
Distinct(colFilteredMultiCHoice, ID),
Collect(colFilteredMultiCHoice1, LookUp(colFilteredMultiCHoice, ID = Result))
);
Clear(colFilteredMultiCHoice);
Gallery1.Items = colFilteredMultiCHoice1
Screen.OnVisible = CollectCollect(colFilteredMultiCHoice1, 'Volunteer Opportunities')
NOTE: it is not delegable. Will not work in full if your list has >500 records (or >2000 if you changed the app's settings)