cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DanielWilliams
Level: Powered On

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

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

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

DanielWilliams
Level: Powered On

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.
DanielWilliams
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 374 members 5,661 guests
Please welcome our newest community members: