web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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,705 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard