How to specify a row has a specific parent in a function

I'm trying to average a collection of rows that fit a certain criteria.
So far, I have this formula and I know it works up until Job@row.
=AVG(COLLECT({DurationCPT},{CPTQ}, Job@row,{Packaging JobCPT},(PARENT("CMO")="Packaging Summary")))
For the rest of the formula, I am trying to full specific CMO rows that have "Packaging Summary" as its parent from my criterion range. Pic below:
Does anyone have any tips for this?
Best Answer
-
Hey!
How about a helper column using =parent?
This will mirror the parent for that row and you can use this as your criterion range?
I'm passionate about helping you leverage the truly awesome power of smartsheet!
Answers
-
Hey!
How about a helper column using =parent?
This will mirror the parent for that row and you can use this as your criterion range?
I'm passionate about helping you leverage the truly awesome power of smartsheet!
-
Thanks, that worked! I created a helper column with a column formula of =PARENT([Packaging Job]@row) + " " + [Packaging Job]@row. Then, I created a new sheet reference and this is the finalized formula:
=AVG(COLLECT({DurationCPT}, {CPTQ}, Job@row, {HelperCPT}, "Packaging Summary CMO"))
-
Glad you got it working!
I'm passionate about helping you leverage the truly awesome power of smartsheet!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.8K Get Help
- 474 Global Discussions
- 205 Use Cases
- 517 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 83 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!