Calculating the Average of Descendant Rows
Hi there, I am having some trouble calculating the average of the "RYG Average" column for the child rows in my Smartsheet. I have a helper column called "Parent Row" that has a checkbox for any rows that are considered parent rows. I am wanting to calculate the RYG Average for the child rows under each parent row. Here is the formula I have been using:
=AVG(COLLECT(DESCENDANTS(@row, [Parent Row]:[Parent Row]), [RYG Average]@row))
but Smartsheet keeps saying that this is #UNPARSABLE. I am wondering if this is due to the fact that the hierarchy has multiple levels. For example, the "Security" parent row also has a few sub-departments that fall under it that are also parent rows. I want to calculate the average for "Security" as well as it's sub-functions. Any guidance you can offer would be much appreciated as I am new to Smartsheet.
Answers
-
Are you able to provide a screenshot for context?
-
Here is a photo for context. You can see Security at the top with several sub-departments underneath. Each sub-department has various tasks. I want to calculate the RYG Average of Security and each sub-department (SecOps, ProdSec, SA&T, and IAM, respectively).
-
In that case, I would suggest just putting the average on each parent row which will in turn feed up to the next level.
=AVG(CHILDREN())
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!