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 Columns in Related...
Power Apps
Answered

Sum Columns in Related Child Tables

(2) ShareShare
ReportReport
Posted on by 932

I have a master table the records events (Events). There is a child table that records %Complete for each task on a 1-M basis (Tasks).

 

Each Event defines a dataset in the child table containing all the Tasks associated with that Event.

 

I want to get a sum of all %Complete from the Child table for each Event.

 

This works:

Sum(First(Events).Tasks, %Complete)

 

This does not work:

Clear(TotalPctComplete);

ClearCollect(Events, Columna = "this"); 
// I added the above to demonstrate that simply taking a Sum against the whole Task set on PercentComplete will not satisfy my requirements)

ForAll(colEvents As _Table,
 Collect(TotalPctComplete,
 {
 TotalPercent: Sum(_Table.Tasks, PercentComplete)
 }
);

 

Any assistance is greatly appreciated, so, thank you very much, 😁!!!

Categories:
I have the same question (0)
  • Verified answer
    KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Hi @BenDonahue,

     

    Bit of a leftfield suggestion here but have you considered creating a rollup column on the parent Event table?:

    https://learn.microsoft.com/en-us/training/modules/create-define-calculation-rollup-fields/1-intro


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Connect with me online.

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard