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 / How to add sum of colu...
Power Apps
Unanswered

How to add sum of column numbers to a gallery?

(0) ShareShare
ReportReport
Posted on by 221

I am fully prepared for this to silliest question I ever ask if its something simply I'm overlooking.

 

Sum(Filter(Results,ItemNumber.Text in ThisItem.ItemNbr),ItemCount)

 

I want to pull the sum of ItemCount per ItemNbr from the datasource 'Results'. I have this within a gallery because I want the respective ItemCount per unique ItemNbr. However, what I'm getting from this formula is a repeating total sum of ItemCount for all rows in 'Results'.

 

What am I overlooking here? How can I achieve this?

Ginko_0-1664429355268.png

 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Ginko,

    Could you please share more about your data source?

    Do you want to sum the ItemNbr based on your Filter result?

     

    You could only sum each item within a column or a column within a table. The formula you provided will always sum the result retuning from the Filter() function.

  • Ginko Profile Picture
    221 on at

    Hi Qi,

     

    The data source is an excel spreadsheet on Sharepoint. The rows are generated from user submissions via Patch function within the app. The user inputs a numeric ItemCount into a text label in the app, and the rest is auto-patched via ThisItem results in the gallery.

     

    I want to sum the below ItemCount, by ItemNbr. For example the sum of MM021527 would be 34. I want that 34 to be displayed for MM021527 in the gallery, 16 for CAR00179, 21 for MED00929 and so fourth.

    Ginko_0-1664468840688.png

     

    Does this help? Based on the second half of your reply, is the sum function not able to handle what I am trying to achieve?

  • Ginko Profile Picture
    221 on at

    Bumping this, anyone know how to SUM (for example) Column Y for an individual item from Column X?

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 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard