Schedule.GetData how to get schedule totals

So i’m trying to create an excel-file that lists the unit area and the terrace-area next to each other.
I’ve managed to get them in 2 columns next to each other but the problem is that some units have more than 1 terrace so the list doesn’t match up anymore…
So my question is how to get the totals from the terrace-areas from the Revit schedule into my dynamo…


If you are pulling the app # for both you can group the terrace area values by the app # key, and then sum them together.

List.GroupByKey and Math.Sum nodes respectively.

Thanks I already solved it in another way, but I’ll also give this a try!
The other solution/workaround I found here: https://www.revitcity.com/forums.php?action=viewthread&thread_id=11392