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 / Searchbox with substring
Power Apps
Answered

Searchbox with substring

(0) ShareShare
ReportReport
Posted on by 148

Hi All,

 

I'am looking for a formula for my Gallery linked to a searchbox.

This formula should return the results of of what is entered in the searchbox in this way:

If I type 'po' all cells of a specific column with 'po' in it should be returned. So: Police, Opposition but also is the cel with 'After Poule' .

So far I did not manage to fix this.

I tried: 

- Filter(Datasource, Instr(Textcolumn, Srachstring) >0)

- Filter(Items, Instr (Columnname, Searchstring) >0)

- Filter(Datasource, Search( SearchString, TextColumn, TextOrBinaryComparison.Full) <> -1)

- Filter(DataSource, TextSearchBox.Text in TextColmn)

 

Does someone have the sollution?

Thanks

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    Hi @FZ80 , use a pattern like below:

     

    Search(
     'Your Data Source',
     TextInput1.Text,
     "Your Column"
    )

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution

    If you like my response, please give it a Thumbs Up.

  • FZ80 Profile Picture
    148 on at

    Thanks Amik, this is exactly what does the job!

    This fx is for searching in 1 column, do you (by accident :)) know how to let the formula do this search job but than in 2 or even more columns of the same Table?

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @FZ80 you can search multiple columns from the same TextInput box by additional fields into the expression:

     

    Search(
     'Your Data Source',
     TextInput1.Text,
     "Your Column",
     "Your Column2",
     "Your Column3",
     "Your Column4"
    )

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution

    If you like my response, please give it a Thumbs Up.

  • Verified answer
    FZ80 Profile Picture
    148 on at

    Thanks so much Amik, Now it all works perfect!

     

  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    No problem. Please accept my solution as the solution rather than your reply 😆

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution

    If you like my response, please give it a Thumbs Up.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard