Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

How to filter Gallery view using three dropdown list

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

 

I currently have an app using a filter for two dropdowns from two lists and a text input with the following logic and it works how it should:

 

 

If(IsBlank(State.Selected) 
Or IsBlank(City.Selected),

Filter('dwv.Location',
 'Job Key' in 
 Filter(Search('dwv.Location', TextInput1_1.Text, "Job_Name"),
 'State' = 'State'.Selected.State_name).'Job Key' 
 Or'City' = City.Selected.'City_Name'),

Filter('dwv.Location',
 'Job Key' in 
 Filter(Search('dwv.Location', TextInput1_1.Text, "Job_Name"),
 'State' = 'State'.Selected.State_name).'Job Key' 
 And 'City' = City.Selected.'City_Name'))

 

 

However, I'm trying to add in a Zip code dropdown as well, but haven't been able to connect all three within the filter function so that if:

 

A) All dropdowns are blank, the app displays all data entries. 

B) Each individual dropdown can work both independently and together

 

Any help or ideas would be awesome!

 

Thanks,

Jacob

  • Re: How to filter Gallery view using three dropdown list

    What ended up working:

    With({schd: Search('dwv.Location', TextInput1_1.Text, "Job_Name")
     },
     Filter(dwv.Location,
     drp_City.Selected.Result = Blank() Or City = drp_City.Selected.Result,
     drp_State.Selected.Result = Blank() Or State = drp_State.Selected.Result, 
     drp_zip.Selected.Result=Blank() Or Zip = drp_zip.Selected.Result
     )
    )



    @Drrickrypthank you for your help!

  • Verified answer
    Drrickryp Profile Picture
    Drrickryp on at
    Re: How to filter Gallery view using three dropdown list

    @Anonymous 

    See if this comes close.  Replace the names of the columns and dropdowns with your values.

     

    With({schd: Search('dwv.Location', TextInput1_1.Text, "Job_Name")
     },
     Filter('Job Key' In schd.'Job Key',
     drp_City.Selected.Result = Blank() Or City = drp_City.Selected.Result,
     drp_State.Selected.Result = Blank() Or State = drp_State.Selected.Result, 
     drp_zip.Selected.Result=Blank() Or Zip = drp_zip.Selected.Result
     )
    )

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard