Ok, I have the following:
If(IsBlank(TextInput4.Text) && IsBlank(ComboBox2.Selected.ProductCategory),
Filter(Table1,ProductCategory = 'Catergory'.Selected.ProductCategoryID),
If(!IsBlank(TextInput4.Text) && IsBlank(ComboBox2.Selected.ProductCategory),
Filter(Table1,ProductCategory = 'Catergory'.Selected.ProductCategoryID, ProductName = TextInput4.Text),
If(IsBlank(TextInput4.Text) && !IsBlank(ComboBox2.Selected.ProductCategory),
Filter(Table1,ProductCategory = 'Catergory'.Selected.ProductCategoryID, ProductCategory = ComboBox2.Selected.ProductCategory),
Filter(Table1,ProductCategory = 'Catergory'.Selected.ProductCategoryID, ProductCategory = ComboBox2.Selected.ProductCategory, ProductName = TextInput4.Text)
)
)
)
My Combo box has the product list, but when I select anything the whole gallery disappears.
And also my search box in textinput4 does not work.