web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / filter by either or
Power Apps
Answered

filter by either or

(0) ShareShare
ReportReport
Posted on by 7

Good day,

I would like to filter either by a collection or by a text input or by a scanned barcode. What would be the string for this?

 

My actual string is not working:

 

 

Filter(
 colArtikelUnterkategorie;
 Or(TextInput1.Text in Name)
)

 

 

 

Thangs for you help.

Unbenannt.PNG
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,910 Most Valuable Professional on at

    Hi @John_Germany ,

    Both would be

    Filter(
     colArtikelUnterkategorie;
     Or(
     TextInput1.Text in Name,
     First(BarcodeReaderName.Barcodes).Value in Name
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • John_Germany Profile Picture
    7 on at

    Thank you, @WarrenBelz. The string looks good, but there's still a problem. The system requires selecting the collection as a filter in the SharePoint list first, and then I can only search within that collection. However, I want the search to be performed using the text input and barcode across the entire SharePoint list without a prior filter, so the results can be displayed in the gallery.

  • WarrenBelz Profile Picture
    154,910 Most Valuable Professional on at

    @John_Germany ,

    You can search the list directly (just replace the Collection with the List), however the in Filter is not Delegable, so you will be limited in the size of the list you can query to your (500-2,000) Data Row Limit.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • John_Germany Profile Picture
    7 on at

    @WarrenBelz 
    Thank you for the help. The text search can certainly be pre-filtered with the collection, but the problem is that there are about 6000 records in the table from which the barcode reader needs to search.

  • WarrenBelz Profile Picture
    154,910 Most Valuable Professional on at

    @John_Germany ,

    Assuming the barcode exactly matches the name field

    Filter(
     SPListName;
     Name = First(BarcodeReaderName.Barcodes).Value
    )

    but you cannot do a "wildcard" search in 6,000 records from the Text input.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 528

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard