@zachary_stern21 ,
I just ran this code after creating a collection with field names and types the same as your as well as control names the same - the below worked perfectly and returned the expected results (CountRows got no errors - it just does not seem to want to filter all when blank). You also had an extra || after w4
With(
{
w1: Index(PrecComboBox_1.SelectedItems,1).Value,
w2: Index(PrecComboBox_1.SelectedItems,2).Value,
w3: Index(PrecComboBox_1.SelectedItems,3).Value,
w4: Index(PrecComboBox_1.SelectedItems,4).Value
},
Filter(
'HCFCD Projects',
(
IsEmpty(PrecComboBox_1.SelectedItems) ||
(
'Primary Precinct'.Value = w1 ||
'Primary Precinct'.Value = w2 ||
'Primary Precinct'.Value = w3 ||
'Primary Precinct'.Value = w4
)
) &&
StartsWith(
'Project Title',
PNSearch_1.Text
)
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps