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 / Multiple Filter Issue
Power Apps
Answered

Multiple Filter Issue

(0) ShareShare
ReportReport
Posted on by 792

Hi 

 

I have an application where I have one search box and two combo boxes and beneath is a gallery showing the data from a collection.

 

Previously i have just a search box to filter the gallery however I now need to implement the filter with the combo boxes. I have this working when you select the exact data however I would like it to show all data until the selection is made, I hope that makes sense?

 

Let me know if you can support on this issue 🙂

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

    HI @Kmayes ,

    You might share some code here, but the structure would be

    Filter(
     ListName,
     (
     IsBlank(ControlOutput1) ||
     FieldName1 = ControlOutput1
     ) && 
     (
     IsBlank(ControlOutput2) ||
     FieldName2 = ControlOutput2
     ) 
    )

     

    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.

    Visit my blog Practical Power Apps

  • Kmayes Profile Picture
    792 on at

    @WarrenBelz Apologies the code I currently have is 

    SortByColumns(Filter(LIST,Date=Blank() || Date=Today() , StartsWith(Postcode,TextSearchBox1_2.Text) , StartsWith('Coverage Area',COMBOBOX1.Selected.Value) , StartsWith(Workstream,COMBOX2.Selected.Value ))

    , "Address_1",Ascending,"Address_2",Ascending)

     

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

    Hi @Kmayes ,

    Something like this structure should do it

    SortByColumns(
     Filter(
     LIST,
     (
     Date = Blank() || 
     Date = Today() 
     ) &&
     (
     Len(TextSearchBox1_2.Text) = 0 ||
     StartsWith(
     Postcode,
     TextSearchBox1_2.Text
     )
     ) &&
     (
     Len(COMBOBOX1.Selected.Value) = 0 ||
     'Coverage Area' = COMBOBOX1.Selected.Value
     ) &&
     (
     Len(COMBOBOX2.Selected.Value) = 0 ||
     Workstream = COMBOX2.Selected.Value
     )
     ), 
     "Address_1",
     Ascending,
     "Address_2",
     Ascending
    )

     

    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.

    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

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard