Announcements
I have a table with 2 Columns
I am using Extra column in ComboBox and want sum of result column based on Combobox selection.
Thanks in advance.
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
@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)
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 ) )
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 342 Super User 2026 Season 2
M Bilal Khan 271
Mohsin Ali 239