Hi - I have an app with several different screens which acts as a portal by which our customers can enter relevant information directly into our SharePoint lists. The need has arisen to add a new screen to the existing functionality, with a gallery which I need to filter based on if the item has "Conditional Approval" or is "Approved", and the Customer status isn't "Discontinued". I got this to work like this:
SortByColumns(
Filter(
'Master Ingredients List',
(FIWApproval.Value = "Conditional Approval" || FIWApproval.Value = "Approved") && CustApproval.Value <> "Discontinued"
),
"Title"
)
Since this list will likely become quite large, I want to be able to filter the new gallery by the ingredient name (text input box ) and/or customer name (combox box based on the choices in the SP list). In an existing gallery, this works as below, but note that this gallery also has a filter based on the customer logged on. For the new gallery, I don't need the functionality to filter by the customer logged, as the customers won't be able to see the control to access this screen.

I tried the following, but it doesn't like the formula and I can't see what I'm doing wrong. The text input is called TxtIngTestFilter, and the combo box is called cbCustFilter_IngTest.
SortByColumns(
Search(
Filter(
'Master Ingredients List',
(FIWApproval.Value = "Conditional Approval" || HalalStatus.Value = "Approved") && CustApproval.Value <> "Discontinued",
If(IsBlank(cbCustFilter_Ing.Selected.Value),
true,
Customer.Value = cbCustFilter_Ing.Selected.Value
),
),
"Title",
TxtIngFilter.Text,
"Title"
),
"Title",
Ascending
)