Hi All,
I need to get the result in Gallery based on the value selected in the checkboxes. This is new automation for my existing application, hence i couldn't change the datatype for my Checkbox data. My source system is SP and having choice column with Checkbox choice option (Screenshot attached).

Used collection concept(written in APP component) to bring this checkbox item into Powerapps screen. (Attached screenshot) And brought input to checkbox using Index formula (screenshot attached)

In Items property of Gallery written formula to filter the selected inputs. But getting incompatible types of comparison error.

If(Check1.Value=false && Check2.Value=false && Check3.Value=false && Check4.Value=false, Records, Filter(Records, If(Check1.Value, CheckBox_Item.Value ="India") || If(Check2.Value=true, CheckBox_Item.Value ="SA") || If(Check3.Value=true, CheckBox_Item.Value = "USA") || If(Check4.Value=true, CheckBox_Item.Value = "China"))) |
My List name - Records
Collection name - colChoices
List Column name - CheckBox_Item
Check Box field name powerapps screen - Check1, Check2, Check3, Check4
Could anyone please help me on how to solve this issues?
I need to bring checkbox data to front end and based on check boxes selection, gallery should display results.
Thanks in advance..