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

Filter SharePoint list based on the Keywords

We have a SharePoint list named Master Data Dictionary, we stored around 4500 items in it. We have a fields(Group, Portfolio, tables, Column name, Source etc), I got the new requirement to filter those data based on the Keywords. it's similar to like a classic SharePoint list search functionality, if you search the list based on the Keywords, it will filter those items for you.

 

My question is what is the filter condition based on the Keywords?

 

Any help is highly appreciated.

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Filter SharePoint list based on the Keywords

Hi @Ptiwari,

 

Please first try to create the app by selecting Create an app > Start with your data > SharePoint > Fill your sharepoint site URL and select this list. Then PowerApps would auto-generate the app for you. And in this app, the Items property of the Gallery control be default is:

SortByColumns(Filter(ListList, StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

Capture.PNG

 

With this formula, you could type keywords of the Title column and the results would show in the Gallery.

 

About the related functions used:

Filter:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup

SortByColumns:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-sort

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Filter SharePoint list based on the Keywords

You can try the Filter function to see if it works the way you are hoping. Just becareful for delegation. https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/delegation-list 

Shane - Microsoft MVP, YouTube, and PowerApps Consulting for when you are in a bind to get this fixed quickly. And finally we now have PowerApps Training
Ptiwari
Level: Powered On

Re: Filter SharePoint list based on the Keywords

Hi Shane,

 

Thanks for responding back, but the above link is not working, can you please provide me a correct link?

 

Thanks, Pooja

 

Community Support Team
Community Support Team

Re: Filter SharePoint list based on the Keywords

Hi @Ptiwari,

 

Please first try to create the app by selecting Create an app > Start with your data > SharePoint > Fill your sharepoint site URL and select this list. Then PowerApps would auto-generate the app for you. And in this app, the Items property of the Gallery control be default is:

SortByColumns(Filter(ListList, StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

Capture.PNG

 

With this formula, you could type keywords of the Title column and the results would show in the Gallery.

 

About the related functions used:

Filter:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup

SortByColumns:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-sort

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

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: 327 members 6,840 guests
Please welcome our newest community members: