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

Searching a table to return records with any one of a few criteria

Hi all 🙂

 

I'm asking PowerApps to:

  • Look at Table 1
  • Return records with SW1 in them
  • From the postcode (zip code) column

 

 

Search(Table1,"SW1","Postcode")

 

 

 

This works, giving me all the SW1 records.

 

What I need is for it to return (for example) SW1, SW2 or SW3 - so a bigger list containing any records from a few different postcodes (basically this kind of thing) - it's the bit inside of the stars that I'm struggling to sort out.

 

Search(Table1,   ***  "SW1"  OR  "SW2"  OR  "SW3"  ***  ,"Postcode")

 

 

... I've tried playing around with OR statements with not much luck.

 

Any help much appreciated thanks 🙂

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

@jbjb247 

The SEARCH function cannot be delegated in SharePoint so you might want to use a different function instead.  This will allow you to search Table1 beyond 2,000 records.

 

I would suggest a combination of FILTER + STARTSWITH instead which can be delegated.  It would look something like this.

Filter(
    Table1, 
    StartsWith("SW1","Postcode")
    Or StartsWith("SW2","Postcode")
    Or StartsWith("SW3","Postcode")
)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

 

 

View solution in original post

2 REPLIES 2
Super User III
Super User III

@jbjb247 

The SEARCH function cannot be delegated in SharePoint so you might want to use a different function instead.  This will allow you to search Table1 beyond 2,000 records.

 

I would suggest a combination of FILTER + STARTSWITH instead which can be delegated.  It would look something like this.

Filter(
    Table1, 
    StartsWith("SW1","Postcode")
    Or StartsWith("SW2","Postcode")
    Or StartsWith("SW3","Postcode")
)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

 

 

View solution in original post

Thank you 🙂

Helpful resources

Announcements
News & Announcements

Community Blog

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

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (4,533)