cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Search box that filters two SharePoint Lists

I can currently get a search box to work great with one criteria, but I would like to search multiple columns from my SharePoint List. I have attached a snip of the current screen and I am stumped and have tried a bunch of things lol and looked all over the web with no luck. So my intention is to have many search criteria rather than one while using only one search box.

 

Powerapps Dual Search.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Search box that filters two SharePoint Lists

Hi @DanielWilliams 

 

You can use "||" (Or) to achieve that.

Could you please change your formula expression as:

SortByColumns(Filter('SchoolStatus', StartsWith(ColumnName1, TextSearchBox1.Text)||StartsWith(ColumnName2, TextSearchBox1.Text)||StartsWith(ColumnName3, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

(change the ColumnName1,ColumnName2,ColumnName3 to what to you want to search on your side)

 

More information:

function-filter-lookup

operators

 

Hope this could be helpful.

 

Best Regards.

Yumia

 

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Search box that filters two SharePoint Lists

Hi @DanielWilliams 

 

You can use "||" (Or) to achieve that.

Could you please change your formula expression as:

SortByColumns(Filter('SchoolStatus', StartsWith(ColumnName1, TextSearchBox1.Text)||StartsWith(ColumnName2, TextSearchBox1.Text)||StartsWith(ColumnName3, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

(change the ColumnName1,ColumnName2,ColumnName3 to what to you want to search on your side)

 

More information:

function-filter-lookup

operators

 

Hope this could be helpful.

 

Best Regards.

Yumia

 

View solution in original post

Highlighted
Helper II
Helper II

Re: Search box that filters two SharePoint Lists

Thank you for responding so fast. I will give it a try and let you know how it works out. Thank you again.
Highlighted
Helper II
Helper II

Re: Search box that filters two SharePoint Lists

So I implemeted the function and it worked great. Thank you again. I love this forum. The people are amazing.

 

Regards,

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,977)