cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ptiwari Helper I
Helper I

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

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 Helper I
Helper I

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

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (5,072)