Hi @Anonymous ,
Do you want to filter your Gallery Items based on any combination of 6 ComboBoxes?
Regarding your needs, I have made a test on my side, please try the following formula (set the Items property of Gallery to following😞
Filter(
'Protocol Template Database',
If(
IsBlank(ComboBox1.Selected.Value),
true,
'Product Family Type'.Value = ComboBox1.Selected.Value
),
If(
IsBlank(ComboBox2.Selected.Value),
true,
'Choice Field 2'.Value = ComboBox2.Selected.Value
),
If(
IsBlank(ComboBox3.Selected.Value),
true,
'Choice Field 3'.Value = ComboBox3.Selected.Value
),
...
...,
If(
IsBlank(ComboBox6.Selected.Value),
true,
'Choice Field 6'.Value = ComboBox6.Selected.Value
)
)
Note: I assume that all of your 6 ComboBoxes are connected to Choice type columns in your 'Protocol Template Database' List.
If you want to add a Search function to above Filter function to search result based on the TextSearchBox, and add a Sort function to above formula to sort records, please try the following formula:
Sort(
Search(
Filter(
'Protocol Template Database',
If(
IsBlank(ComboBox1.Selected.Value),
true,
'Product Family Type'.Value = ComboBox1.Selected.Value
),
If(
IsBlank(ComboBox2.Selected.Value),
true,
'Choice Field 2'.Value = ComboBox2.Selected.Value
),
If(
IsBlank(ComboBox3.Selected.Value),
true,
'Choice Field 3'.Value = ComboBox3.Selected.Value
),
...
...,
If(
IsBlank(ComboBox6.Selected.Value),
true,
'Choice Field 6'.Value = ComboBox6.Selected.Value
)
),
TextSearchBox.Text,
"TextColumn1", // replace here with actual Text type column name from your List, the column name should be wrapped with double quotes
"TextColumn2"
),
ColumnName, // Choose column from your List as Sort column
SortOrder.Ascending
)
Please try above solution, hopes it could solve your problem.
Best regards,