Hi All,
I have a toggle outside a gallery. I need it to filter my gallery with my toggle when switched to false(no) and also by a column called Code "Q". I had the following but it's not working. ClearCollect called ccTestTable. Toggle called testIndicator
How do I get this to filter when the toggle is set to false? Any help will be so helpful. Thank you
Filter(
ccTestTable,
If(testIndicator.Value=false ||
Code = "Q"
))
Hi @Anonymous,
Do you want to filter the Gallery only when the Toogle value is switched to false?
If so, please modify your formula as below:
Filter(
ccTestTable,
If(testIndicator.Value=true,true,YesOrNo_Column=false) ||
Code = "Q"
))
Note that if you want to filter gallery based on tooggle and the Code column, you should use && instead of ||
You don't need the If() function as both the toggle and Code = Q can be evaluated on their own:
Filter(ccTestTable, !testIndicator.Value || Code="Q" )
WarrenBelz
110
Most Valuable Professional
MS.Ragavendar
81
stampcoin
54