Hi @AndreS3 ,
Do you want to display items depending on your collection(Escolha)?
Can you tell me whether the data type of field in combo box the same as the data type of 'UQU 1' in your data source?
I assume the field in combo box and 'UQU 1' is the same data type.
I’v made a test for your reference:
I more suggest you not use collection, you could directly use “ComboBox1.Selected.Value” to represent your selection of combo box.
Case1:Not use collection.
Add a gallery control and set it’s items property to:
Filter(Test2,'UQU 1' = ComboBox1.Selected.Value) /*Test2 is my data source*/
What’s more, I notice that maybe you use “;” as “,” in your region, so you could try this:
Filter(Test2;'UQU 1' = ComboBox1.Selected.Value)
Case2:Use collection.
Step1:set the button’s OnSelect property to:
ClearCollect(Escolha,ComboBox1.Selected.Value)
you could try this:
ClearCollect(Escolha;ComboBox1.Selected.Value)
Step2:Add a gallery control and set it’s items property to:
Filter(Test2,'UQU 1'in Escolha)
You could try this:
Filter(Test2;'UQU 1'in Escolha)
Please notice that: if you use ClearCollect(), you could only filter items based on your one time choice in combo box.
If you want to filter items based on all of the historical selection, I suggest you use Collect() function to save the selection of Combo box.
Collect(Escolha,ComboBox1.Selected.Value)
Best regards,
Bof