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 / Sum of rows based on c...
Power Apps
Answered

Sum of rows based on combobox selections

(0) ShareShare
ReportReport
Posted on by 4

I have a table with 2 Columns

 

ExtraResult
A5
B10
C15

 

I am using Extra column in ComboBox and want sum of result column based on Combobox selection.

 

Thanks in advance.

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,754 Most Valuable Professional on at

    Hi @muhammadh811 ,

    Note Value may be different depending on the Items of the Combo Box

    Sum(
     Filter(
     Table,
     Extra = ComboBox.Selected.Value
     ),
     Result
    )

     

    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.

    Visit my blog Practical Power Apps

  • muhammadh811 Profile Picture
    4 on at

    @WarrenBelz 
    Thank you for your reply. I tried this code but it is giving me result as per my 2nd selection. I need sum of both.
    For example I choose A and B from Combo Box but it is showing result of B only.

    Sum(
     Filter(
     'Extra List', Title = ComboBox1.Selected.Title),Cloth)

     

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

    Hi @muhammadh811 ,

    You did not mention multiple selections, so this gets a fair bit more complex. Note this will only work on list numbers up to your Delegation limit (I have only used the top statement to get rid of the warning)

    With(
     {wExtra: 'Extra List'},
     Sum(
     Ungroup(
     ForAll(
     ComboBox1.SelectedItems As aSel,
     Filter(
     wExtra,
     Title = aSel.Title
     )
     ),
     "Value"
     ),
     Cloth
     )
    )

     

    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.

    Visit my blog Practical Power Apps

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard