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 / Filter gallery searchb...
Power Apps
Answered

Filter gallery searchbox and dropdown

(0) ShareShare
ReportReport
Posted on by 407

Hi, i have a gallery with with 2 filters (1 dropdown and 1 search box). The items property is set to

 

If(IsBlank(
Dropdown2.Selected.Value),PartsRequestCollection,
Search(
Filter(PartsRequestCollection,
Status.Value = Dropdown2.Selected.Value),
LookupSearch.Text,"OrderedFrom"))

 

When nothing is selected, all the gallery records are displayed, however, i cant filter the search with the LookupSearch textinput. Once i filter by dropdown, the lookupSearch textinput filters works fine.  Any suggestions on how i can get the LookupSearch to work when all records are displayed? Thanks

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,463 Most Valuable Professional on at

    Hi @Matt383 ,

    Try this

    Search(
     Filter(
     PartsRequestCollection,
     Len(Dropdown2.Selected.Value) = 0 ||
     Status.Value = Dropdown2.Selected.Value
     ),
     LookupSearch.Text,
     "OrderedFrom"
    )

     

    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

  • Matt383 Profile Picture
    407 on at

    Thanks Warren, that did the trick

  • Tan_Jia_Ying Profile Picture
    54 on at

    Hi,

    I try to get five drop-down list is "ok" at the same time, and the result of the text label is "ok". But if one of the drop-down list is "Fail", then the result of the text label is "Fail".

     

    The program I wrote did not produce errors, but the results it produced were not what I wanted. I've set the following:

     

    Drop down: Items=

    ["OK","Fail"]

     

    Text Label: Text =

    IfError((Text(Dropdown6.SelectedText.Value)&&(Dropdown7.SelectedText.Value)&&(Dropdown8.SelectedText.Value)&&(Dropdown9.SelectedText.Value)&&(Dropdown10.SelectedText.Value)),"OK","Fail")

     

    Thanks for your help!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard