I have a powerapps gallery with SharePoint as the datasource.
Currently filter functionality has 2 options (Filter by category and Filter by amount). Category is a single line of text field in datasource and Amount is a number field in datasource.
Search is working fine. Filter works if i select a single category, however if i select multiple categories it doesnt work. It also doesnt work if i check any amount checkboxes.
I have also included below screenshot of my filter code. May i know where i am going wrong?
Main Gallery Items Property
If(
IsBlank(TextInput1.Text) && IsBlank(varSelection),
Items,
Len(TextInput1.Text) > 0,
Filter(
Items,
TextInput1.Text in 'Item Name' || TextInput1.Text in Description || TextInput1.Text in 'Unit Price' || TextInput1.Text in 'Item Category'
),
!IsBlank(varchecked) && IsBlank(TextInput1.Text) && IsBlank(varSelection),
Filter(
Items,
Switch(
varchecked,
"Under $50",
Amount >= 0 && Amount < 50,
"$50 - $100",
Amount >= 50 && Amount < 100,
"$100 - $200",
Amount >= 100 && Amount < 200,
"Above $200",
Amount >= 200
)
),
Filter(
Items,
'Item Category' = varSelection
)
)
Filter by Category Gallery - Items Property
Distinct(Filter(Items,'Item Category'),'Item Category')
Filter by Category Gallery - OnCheck Property
UpdateContext({varSelection:Gallery3.Selected.Value})
Filter by Category Gallery - OnUnCheck Property
UpdateContext({varSelection:Blank()})
Filter by Amount Gallery - Items Property
Distinct(Filter(Filter,Amount),Amount)
Filter by Amount Gallery - OnCheck Property
UpdateContext({varchecked:Gallery3_1.Selected.Value})
Filter by Amount Gallery - OnUnCheck Property
UpdateContext({varchecked:Blank()})
