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 / Find Data in String/Co...
Power Apps
Unanswered

Find Data in String/Column Return Data

(0) ShareShare
ReportReport
Posted on by 5,331 Moderator

I have a need to filter for the name with a string. I am getting the desired data back with the StartsWith...if the string starts with the name selected in the Combo Box.

How do I write the formula to say if the matching data is anywhere in the string return the associated data?

 

 

StartsWith(Professional1, ReviewScreenSearchComboBox.Selected.Value)

Categories:
I have the same question (0)
  • EddieE Profile Picture
    4,641 Moderator on at

    @Phineas 

    You can use ‘in’ but it’s not delegable, ie

     

    ReviewScreenSearchComboBox.Selected.Value in yourListName.Professional1

  • PaulD1 Profile Picture
    2,914 on at

    You can use Search rather than StartsWith but note that this will not be delegable if you are using SharePoint as your datasource.

  • Phineas Profile Picture
    5,331 Moderator on at

    And, if my limit is set at 2000, but I never have near that to query/filter it should be good?

    Edit:

    Also, here is the same formula with Search rather the StartsWith. Power Apps didn't like it. There was no error with StartsWith.

     

    Error is: "Invalid number of arguments: received 2, expected 3 or more."

    ||
    Search(
    PSMCCCategoryCommodity && PSMPPCategoryCommodity,
    ReviewScreenPSMSearchComboBox.Selected.Value
    )
    )

  • PaulD1 Profile Picture
    2,914 on at

    Yes, if you set your App's delegation limit to 2000 in settings (default is 500) then you should not have an issue with the Search missing some results assuming your record count does not exceed the delegation limit.

    You will suffer slower performance than StartsWith (as Power Apps must load the full dataset and SP is a slow datasource) but it sounds like that is likely an acceptable trade-off in this case.

  • Phineas Profile Picture
    5,331 Moderator on at

    What about the error?

    When I use Search Power Apps kicks back and error (see formula provided in last post).

  • PaulD1 Profile Picture
    2,914 on at

    You need to supply at least 3 arguments

    1. The list/table to filter

    2. The search term

    3. The field you want to look within

    You can supply additional 'fields to look within' as additional arguments, but you need to supply at least one.

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
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard