cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Thomas_Pyndt
Frequent Visitor

Filter using multiple keywords to SQL

Hi

 

I am trying to build a filter formula, which can filter a SQL data source for multiple keywords in a single column. 

I have concatinated the values I want to search in into a single column like this:

 

Car red xl 2

Bike blue xl 4

Car blue m 2

 

so if my search text box has the values "Car xl" only the first row should be returned

 

I have tried the solution mentioned by @CarlosFigueira here:

 

https://powerusers.microsoft.com/t5/Using-PowerApps/Search-with-multiple-words-in-multiple-columns/t...

 

but the solution does not seem to delegate the filter function. I guess it's the use of find(), which is the problem. I have <2,000 records in the table, so I need the filter funciton to be delegated to SQL.

 

Any suggestions?

 

Thanks in advance!

 

2 REPLIES 2
Thomas_Pyndt
Frequent Visitor

Correction to the above: I have > 2,000 records Smiley Happy

Hi @Thomas_Pyndt 

 

If you have > 2000 records, then read in the first 2000 records (ClearCollect(mycollection,<DataSource>);

Then read in the rest of the records (assuming they are less than 4000 records) Collect(mycollection, Filter (DataSource, ID > 2000)).

 

Then you can manipulate mycollection to your heart's content as there will be no delegation issues with collections.

 

Regards

 

Nigel

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (1,982)