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

Notifications

Announcements

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:
I have the same question (0)
  • Ami K Profile Picture
    15,679 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,679 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,679 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard