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 / Search for Multiple Cr...
Power Apps
Answered

Search for Multiple Criteria

(0) ShareShare
ReportReport
Posted on by

Hello,

I did try to word this once but I felt it was too confusing, so I will try a different way!

 

I have a Microsoft List, called Asset Manager. In my app, I have a gallery that filters based on a search. There are two columns in the Microsoft List I have that I want to connect to a search box. These are 'Asset Tag' and 'Room'.

I want the search box to filter for either a room or an individual asset tag.

 

For example, if I type in a room name, I want it to show me all of the assets connected to that room name in the gallery.

On the other hand, if I just wanted to find one individual asset, I could type that in and find it.

If there's nothing in the search box, I want all of the assets to show in the gallery.

HeronS98_0-1636633435167.pngHeronS98_1-1636633477425.pngHeronS98_2-1636633600016.png

Thank you in advance.

Categories:
I have the same question (0)
  • SH-23070720-0 Profile Picture
    on at

    I believe I may have found a solution, but it also comes with a delegation warning. The application still works but claims it may not like large data sets with the code I have used

     

    Sort(
     If(
     IsBlank(TextSearchBox1.Text),
     'Asset Manager',
     Search(
     'Asset Manager',
     TextSearchBox1.Text,
     "Location",
     "Title"
     )
     ),
     "Title"
    )

    Is there any way to remove the warning?

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @HeronS98 

     

    Please try this.

     

     

    With({SourceItem:'Asset Manager'},
    Sort(
     If(
     IsBlank(TextSearchBox1.Text),
     SourceItem,
     Search(
     SourceItem,
     TextSearchBox1.Text,
     "Location",
     "Title"
     )
     ),
     "Title"
    )
    )

     

     


    Thanks,
    Stalin - Learn To Illuminate

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @HeronS98 

     

    Please verify the updated code above. I forgot to update on another place.

     

  • SH-23070720-0 Profile Picture
    on at

    Brilliant @StalinPonnusamy,

    It works flawlessly, thank you for your input!

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard