I have powerapps with SharePoint as the datasource. I have 2 filters i.e. by category and by price.
When i filter by single category, it works fine. However if i select multiple categories at a time, filter doesnt work.
Each filter is a button.
Also, i want to combine category filter with pricing filter. Any idea how to achieve this?
Below is the code on
Gallery Items property
If(
varSelection = "All"||varSelection=Blank(),
Filter(
Items,
(TextInput1.Text in 'Item Name' || TextInput1.Text in Description || TextInput1.Text in 'Price' || TextInput1.Text in 'Category')
),
Filter(
Items,
(TextInput1.Text in 'Item Name' || TextInput1.Text in Description || TextInput1.Text in 'Price' || TextInput1.Text in 'Category') && varSelection = 'Category'
)
)
Each Button OnSelect
UpdateContext({varSelection:"Others"})
UpdateContext({varSelection:"Wine and Spirits"})
UpdateContext({varSelection:"Luxury Goods"})
Filter Screenshot

Report
All responses (
Answers (