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 / Dropdown menus for Pow...
Power Apps
Unanswered

Dropdown menus for Powerapps Gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, I want to build a PowerApps-Gallery filtering everything with dropdowns, I'm using this Tutorial, but it won't work for my problem: PowerApps filter gallery by dropdown - YouTube. Typically very great instruction and I have normally no problems, but today I'm struggling:

mba2001_0-1679680452377.png

Screen - OnVisible: ClearCollect(collectODs; {Result:"All"});;
Collect(collectODs;Distinct(tD;'Primary Division (then)'))

Dropdown - Items: collectODs

Gallery - Items: If(Dropdown3.Selected.Value = "All";collectODs; Filter(tD;'Primary Division (then)' = Dropdown3.Selected.Value))

Thank you for the help!

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    Instead of a collection use this as the Items property of a dropdown control. IMHO, much better and won't require re-collecting if another division is added.

    Ungroup(
     Table(
     {options: Table({Value: "All"})};
     {options: Sort(Distinct(tD;'Primary Division (then)'), Value)}
     );
     "options"
    )

    For the Items of the gallery:

    Filter(tD; Dropdown3.Selected.Value = "All" ||
     'Primary Division (then)'= Dropdown3.Selected.Value
    )

    Also cleaner, gets rid of the If(). 

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I'm not 100% sure how it works, but it's genius! Now I want to add a second dropdown to filter another row, with a Dropdown. I changed the code so it fits for the second column, but I'm not sure what to do with the items property of the gallery, can you help me out again? 

    Thank you!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard