
Announcements
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, 😁!!!
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.