Hi,
I'm trying to filter multiple elements in only one gallery but with no sucess. These elements are 2 ComboBox and 1 TextInput in the same Gallery.
ComboBox1 filters MultipleChoiceColumn
ComboBox2 filters SingleChoiceColumn
TexpInput1 filters Name of each row of the SPList
The filter sequence in the gallery should be:
ComboBox1 -> ComboBox2 -> TexpInput1
The code that i'm trying to input into the Gallery1 (section Items)
With(
Filter(
SPlist;
ID in Distinct(
Ungroup(
ForAll(
ComboBox2.SelectedItems As CC;
Filter(
SPlist;
CC.Value in SingleChoiceColumn.Value
)
);
"Value"
);
ID
)),
{
_Data:
Search(
SPlist,
TextInput1.Text,
Name
)
},
If(
Len(ComboBox1.Selected.Value) = 0,
_Data,
Ungroup(
ForAll(
ComboBox1.SelectedItems As _Items,
Filter(
_Data,
_Items.Value in MultipleChoiceColumn.Value
)
),
Value
)
)
)
Thanks in advice!