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

Community site session details

Session Id : AVdfkzoGi6CpMUnI6WVeJV
Power Apps - Building Power Apps
Answered

Filter gallery searchbox and dropdown

Like (0) ShareShare
ReportReport
Posted on 19 Apr 2023 22:43:25 by 405

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:
  • Tan_Jia_Ying Profile Picture
    54 on 20 Apr 2023 at 03:01:53
    Re: Filter gallery searchbox and dropdown

    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!

  • Matt383 Profile Picture
    405 on 20 Apr 2023 at 02:22:13
    Re: Filter gallery searchbox and dropdown

    Thanks Warren, that did the trick

  • Verified answer
    WarrenBelz Profile Picture
    148,894 Most Valuable Professional on 20 Apr 2023 at 02:17:36
    Re: Filter gallery searchbox and dropdown

    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

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete