cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver III
Resolver III

Use a textbox to search multiple fields using In

I have a gallery connected to a SharePoint list with several multi user fields. I want to search for a user and then find items where they appear in any of the fields. I am searching for other users, not myself.

I have gotten it to work searching for when they appear in one column by converting the people label to text but want to add a condition where they can appear in the second/third column as well. Here is what is working for one column:

Filter(TextInput1.Text in Text(Concat(Manager.DisplayName, Text(DisplayName) & " ")))

When I tried to copy the same formula for the second column, it works by finding searched users where they're only in both columns:

Filter(RecordsCollection, TextInput1.Text in Text(Concat(Manager.DisplayName, Text(DisplayName) & " ")), TextInput1.Text in Text(Concat(Associate.DisplayName, Text(DisplayName) & " ")))

Is there any way to make this an OR query instead of AND? I tried using the OR operator as well but it errored

TextInput1.Text in Or(Text(Concat(Manager.DisplayName, Text(DisplayName) & " ")), TextInput1.Text in Text(Concat(Associate.DisplayName, Text(DisplayName) & " ")))
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver III
Resolver III

Re: Use a textbox to search multiple fields using In

Used || for Or instead of the Or formula: 

Filter(RecordsCollection, (TextInput1.Text in Text(Concat(Manager.DisplayName, Text(DisplayName) & " ")) || TextInput1.Text in Text(Concat(Associate.DisplayName, Text(DisplayName) & " "))))

View solution in original post

1 REPLY 1
Highlighted
Resolver III
Resolver III

Re: Use a textbox to search multiple fields using In

Used || for Or instead of the Or formula: 

Filter(RecordsCollection, (TextInput1.Text in Text(Concat(Manager.DisplayName, Text(DisplayName) & " ")) || TextInput1.Text in Text(Concat(Associate.DisplayName, Text(DisplayName) & " "))))

View solution in original post

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (5,170)