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 a collection ba...
Power Apps
Answered

Filter a collection based on selected items in gallery and sum up the collection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

I have this collection and would like to filter base on selected condition.

Below is my collection table:

Order#Product#SizeQuantity
1Product ASmall2
1Product ALarge5
1Product BSmall2
2Product BSmall2
2Product ALarge4
1Product BLarge5

 

When there is a dropdown selection made on Product: Product A and Size: Large on the gallery,

Filter the same criteria in the the collection and sum the quantity.

The end result would be for ; Collection, Product A, Large, 9

 

Need your advice on how the statement should be written in this scenario.

Thanks in advance for the help.

 

Regards

Hidayat

Categories:
I have the same question (0)
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Insert a Textbox and on Default property;

     

    Sum(Filter(Datasource Product = Dropdown1.Selected.Value And Size =

    Dropdown2.Selected.Value), Quantity)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard