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 / Powerapps Gallery mult...
Power Apps
Unanswered

Powerapps Gallery multiple dropdown filters

(0) ShareShare
ReportReport
Posted on by 2

Hi @PowerAddicts, I am developing an app about managing business opportunies. I have gallery listing all the opportunities, using sharepoint as datasource with multiple dropdown filters. I am able to filter it by:
opportunity country,

sales stage,

product family,

due date (dropdown options as in ["next 7 days", "next 2 weeks", "next 1 month"])

 

Now I want to add another filter called "Top opportunities" (which should be a dropdown with options as in ["top 3 by GP", "top 5 by GP", "top 10 by GP"] ). Here GP means Gross Profit which is a column in the SP source list. 

 

The ask is they want to filter the gallery of opportunities by the topN based on the expected GP in order to focus on the most important opportunities. I will apprecate help in how to add this type of filter, thank you in advance.

 

Screenshot 2021-08-31 233317.png

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,386 Most Valuable Professional on at

    Hi @Amigomusa ,

    Top 10 would be something like this

    With(
     {
     wProfit:
     Sort(
     DataSource,
     'Gross Profit',
     Descending
     )
     },
     FirstN(wProfit,10)
    )
    	

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Amigomusa Profile Picture
    2 on at

    Hi @WarrenBelz , thank you for the respond however, this is the scenario I have:
    The TopOpportunities dropdown is configured as below picture.
    drptopopportunities.png

    And the collection colTopOpportunities is defined on the OnVisible property of the page as follows

     

    collection.png

    If I use the "FirstN(SortByColumns(colWinRooms, "ExpectedOpportunityAnnualGrossPr", Descending), 10)", it actually filters the gallery perfectly my issue is how to do t dynamically wen a user selects a option from the TopOpportunities dropdown.

     

  • WarrenBelz Profile Picture
    156,386 Most Valuable Professional on at

    @Amigomusa ,

    You need to do the collection when the user selects whatever filter they need.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    156,386 Most Valuable Professional on at

    Hi @Amigomusa ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard