web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard