cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LewisFoulger
Helper III
Helper III

Filtering Gallery with 2 separate controls

Hi,

I am trying to filter my gallery by 2 controls, a gallery selection and a drop down.

LewisFoulger_0-1657206261154.png

The dropdown is called 'SiteDrop' and the Gallery is called 'FilterGallery'

 

The code works at the moment but does not incoporate the site dropdown, as i dont know where to start!

 

Please help!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

@LewisFoulger 

If(
    FilterGallery.Selected.Title="All", 'Maintenance Log',
    Filter('Maintenance Log', Status.Value=FilterGallery.Selected.Title && 
            Site.Value=SiteDrop.Selected.Value
    )
)

View solution in original post

1 REPLY 1
Drrickryp
Super User
Super User

@LewisFoulger 

If(
    FilterGallery.Selected.Title="All", 'Maintenance Log',
    Filter('Maintenance Log', Status.Value=FilterGallery.Selected.Title && 
            Site.Value=SiteDrop.Selected.Value
    )
)

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,711)