Hi @daniellemaree85 ,
The error you're seeing in the formula within your PowerApps gallery is due to a data type mismatch. In PowerApps, the OptionSet data type cannot be directly compared with text, which is likely the data type of ddCategory.Selected.Value. Here's how you can resolve this:
If ProductCategory is an OptionSet, you need to compare it with the numeric value of the selected item in the dropdown, not the text value. Here’s a corrected version of your formula:
Search(
Filter(
Products,
IsBlank(ddCategory.Selected.Value) || ProductCategory.Value = ddCategory.Selected.Value
),
txtSearch.Text,
"ds_productname"
)
In this revised formula, ProductCategory.Value is used to compare the selected value's text to the text of the OptionSet. Ensure that ProductCategory.Value is the correct property that holds the text for your OptionSet.
If you are still facing issues, you might need to use LookUp to get the correct value from the OptionSet based on the selected dropdown value.
Best regards,