cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Community Support
Community Support

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
Community Support
Community Support

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

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

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

 

Regards,

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (12,853)