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 / 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

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard