Have a Share Point list (SPList) with a choice field (can select multiple) named SPColors (Blue, Green, Red, Yellow, etc.). Sample records are:
SPList Record 1 SPColors => Blue, Green, Red
SPList Record 2 SPColors => Gray, Yellow
SPList Record 3 SPColors => Green, Purple, Red
Have a Power App with 6 different search fields that need to be && together to filter the Share Point data to display in the gallery.
The Share Point Color choices are loaded into a Color Collection when the Power App starts. There is a combobox (ddlbColors), with multi-select turned on, which displays the Color Collection and the user can select multiple colors. The gallery should then display only those records that matches all colors selected. In the sample data above, if the user selects Green and Red in the combobox, the gallery should display Record 1 and 3.
In the gallery Items field, the gallery returns only those Share Point records that match the last color selected:
Filter('SPList',ddlbColors.Selected.Value in SPColors.Value)
Since the combobox returns a table, we cannot use the 'in' function with SelectedItems:
Filter('SPList',ddlbColors.SelectedItems.Value in SPColors) <- the word "Value" errors as "Invalid Argument Type. Cannot use Table values in this context"
Tried Reza's solution but it did not work. Thoughts on how to filter the gallery based on all selected values in the combobox?
Thank you!