Looking to Avg a Parent with 2 columns of averages

Hi I am looking to average in the E%Allocation column when the level column = 3 for the averages in columns ChildAlloc1 and ChildAlloc2. Any suggestions is greatly appreciated.
Bruce Johnson
Director Portfolio, Project Methods & Governance
Veolia North America
Boston, MA
Best Answer
-
Using the DESCENDANTS function may work.
=IF(Level@row = 3, IFERROR(AVG(DESCENDANTS([%Allocation]@row)), ""))
This gives the average of all the descendants, so if you want to calculate the average of only the bottom task or the children=0 task, you may want to add a helper column, like the one on the far right in the image below, and average the descendants.
=IFERROR(AVG(DESCENDANTS([Children = 0 %Allocation]@row)), "")
Otherwise, if someone inputs a %Allocation value into a cell that is not children=0, as shown in the yellow cell in the image above, you get a different average.
Answers
-
Using the DESCENDANTS function may work.
=IF(Level@row = 3, IFERROR(AVG(DESCENDANTS([%Allocation]@row)), ""))
This gives the average of all the descendants, so if you want to calculate the average of only the bottom task or the children=0 task, you may want to add a helper column, like the one on the far right in the image below, and average the descendants.
=IFERROR(AVG(DESCENDANTS([Children = 0 %Allocation]@row)), "")
Otherwise, if someone inputs a %Allocation value into a cell that is not children=0, as shown in the yellow cell in the image above, you get a different average.
-
Thank You, @jmyzk_cloudsmart_jp - That worked perfectly!!!
Bruce Johnson
Director Portfolio, Project Methods & Governance
Veolia North America
Boston, MA
-
Happy to help!😁
Help Article Resources
Categories
Check out the Formula Handbook template!