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 Browse Gallery ...
Power Apps
Answered

Filter Browse Gallery with Dropdown and Choice Field

(0) ShareShare
ReportReport
Posted on by 62

Hello,

I am trying to filter a Browse Gallery with a Dropdown as well as a choice field. Currently the dropdown and the "All" feature work, but I cannot get the choice field to work. I'm trying to sort by month and then "Active" status. 

 

Here is what is in my BrowseGallery1 Items List

 

If(MonthDropdown.Selected.Result = "All", 'Client Onsite Calendar', Filter('Client Onsite Calendar', 'Project Month' = MonthDropdown.Selected.Result, Status.Value = "Active"))

 

 

Here is my OnVisible to collect the Month for the dropdown

 

ClearCollect(collectMonth, {Result: "All"});
Collect(collectMonth, Distinct('Client Onsite Calendar', 'Project Month'));

 

 

I'm not sure if what I'm asking is possible, so is there a way to make this function (this is a new dataset and application so I'm not especially attached to the way it is currently selected)

Categories:
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @crjwarre ,

    You can Use condition like below for FIlter the Gallery.

    Filter(TestAkshay,MyUser.DisplayName = Dropdown2.Selected.UserDIsplayName && Complexity.Value="Complex")

    VijayTailor_0-1601875504788.png

    Thanks,
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • crjwarre Profile Picture
    62 on at

    Thank you @VijayTailor , but that part of the code is already working. My issue is that all status types are visible with the statement for All months:

    If(MonthDropdown.Selected.Result = "All", 'Client Onsite Calendar',

     When a month is selected, they  are correctly filtered for Active, but the first part, which allows for for all months to be visible won't accept the && or "," to add the filter for "Active"

  • Verified answer
    Vijay Tailor Profile Picture
    2,961 on at

    Hi @crjwarre ,

    Your modified code as you told second part is working correctly fine but you facing a problem with the First part FIlter.

    So Please use like below.

    If(MonthDropdown.Selected.Result = "All", Filter('Client Onsite Calendar', Status.Value = "Active"), Filter('Client Onsite Calendar', 'Project Month' = MonthDropdown.Selected.Result, Status.Value = "Active"))

    Thanks,

     Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • crjwarre Profile Picture
    62 on at

    Thank you so Much! That worked right away!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard