Hi I am new to dynamo and I am trying to calculate the Area of all rooms per their respective level. Below is a quick example of where I am stuck:

[0]

—[0]

-----[0]Ground Floor

-----[1]11

—[1]

-----[0]Ground Floor

-----[1]15

—[2]

-----[0]Ground Floor

-----[1]20

—[3]

-----[0]etc.

-----[1]etc.

[1]

—[0]

-----[0]First Level

-----[1]11

—[1]

-----[0]First Level

-----[1]76

—[2]

-----[0]First Level

-----[1]32

—[3]

-----[0]etc.

-----[1]etc.

and sort and group by level similar to below…

-[0]Ground Floor

—[0]11

—[1]15

—[2]20

—[3]etc.

-[1]First Level

—[0]11

—[1]76

—[2]32

—[3]etc.

After which I want to calculate the sum of each “Ground Floor” list and “First Level” list which I think it to be just a Math.Sum operation for each list.

Any help would be greatly appreciated!