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 / I want to search with ...
Power Apps
Answered

I want to search with word + space + word like Google search.

(1) ShareShare
ReportReport
Posted on by 53

I want to search with word + space + word like Google search.
Please tell me the code to write in the item.
I tried the following, but no good. This is because the or search result is extracted by stringB + stringD.
Filter( TableT , stringB in fieldC || stringD in fieldC )

Categories:
  • Robu1 Profile Picture
    1,747 Super User 2026 Season 2 on at

    Hi @tokyo123456 

     

    Here’s a  YouTube video by Shane Young which explains the search functionality in Power Apps.

     

    https://youtu.be/lYi24okXDPs?feature=shared  

     

     

    If this post helps you, kindly give a Thumbs Up and if it solved your issue, Accept it as the solution to help the other members find it easily. 

     

     

    Thanks, 

     

    Robu1. 

  • tokyo123456 Profile Picture
    53 on at

    I watched the video.
    I appreciate your support. thank you.
    If possible, please provide the following support.
    Please tell me the code to put in item to extract records that contain two items, X and Y, like in Google search.
    The following is an example of NG (the result of adding the extraction result of D to the extraction result of B).
    Filter( TableT , stringB in fieldC || stringD in fieldC )

  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    Hi @tokyo123456 ,

    This will look in fieldC for any records containing any other strings separated by a space in your search box. You did not state your data source (SharePoint etc) and this may not be Delegable.

    Ungroup(
     ForAll(
     Split(
     YourString,
     " "
     ),
     Filter(
     TableT,
     Value in FieldC
     )
     ),
     "Value"
    )

     

    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

  • tokyo123456 Profile Picture
    53 on at

    Thank you for your support.
    I tried implementing it right away.
    Below are the results. Please provide further support if possible.
    ---
    I copied the code to item. The record is displayed in the gallery, but only the Title field is displayed. Please modify the code so that other fields can also be displayed.

  • Robu1 Profile Picture
    1,747 Super User 2026 Season 2 on at

    Hi @tokyo123456 ,

     

    Try this modified code:

     

    Ungroup(

        ForAll(

            Split( YourString, " " ),

            Filter( TableT, Value in FieldC.FieldName )

        ),

        "Value"

    )

     

     

    Replace `YourString` with the string you want to split and search for, and replace `FieldName` with the actual field name in `TableT` where you want to search. This code should search in the specified field for each word found in `YourString` and display all matched records, not just the title field that you mentioned.

  • tokyo123456 Profile Picture
    53 on at

    No improvement effect is seen. I would like another solution, is it possible?

  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    @tokyo123456 ,

    All the fields from TableT are available - you just need to have ThisItem.FieldName (actual field name) on the label. Please post the exact code (in Text) you have used.

    @Robu1 - FieldC is already a field name

  • Verified answer
    tokyo123456 Profile Picture
    53 on at

    Was self resolved. Thank you for your support so far.

  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    @tokyo123456 ,

    What was the solution code you used ?

  • Verified answer
    tokyo123456 Profile Picture
    53 on at

    I was able to clear it thanks to your support.

    ---

    Filter('Table_T'
    ,
    Last(FirstN(Split(Substitute(TextInput1.Text," "," ")," "),1)).Value in 'Field_A' ,
    Last(FirstN(Split(Substitute(TextInput1.Text," "," ")," "),2)).Value in 'Field_A' ,
    Last(FirstN(Split(Substitute(TextInput1.Text," "," ")," "),3)).Value in 'Field_A' ,
    Last(FirstN(Split(Substitute(TextInput1.Text," "," ")," "),4)).Value in 'Field_A' ,
    Last(FirstN(Split(Substitute(TextInput1.Text," "," ")," "),5)).Value in 'Field_A'
    )

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard