Hierarchy Formula Help
I am trying to write a COUNTIF formula such that the value of each of the lowest level of a hierarchy will be counted. I tried using a CountAncestor helper column but not all groups have the same structure. IE. In some groups, the lowest level child is level 3, and in other groups, it is level 4 (or 5). How can I count the value of cells from the "most child" level of a grouping, no matter how many children there are? (note, I realize in the screenshot it appears as those the CountAncestor idea would work as all of the lowest levels here are a "3" but if you scroll down, some of 4 or 5.
Thanks for your help!
Jeff
Best Answer
-
I would suggest a helper column (checkbox) that will check the box on all child rows (rows that do not have any children of their own/lowest level regardless of number of ancestors).
=IF(COUNT(CHILDREN(Task@row)) = 0, 1)
Answers
-
I would suggest a helper column (checkbox) that will check the box on all child rows (rows that do not have any children of their own/lowest level regardless of number of ancestors).
=IF(COUNT(CHILDREN(Task@row)) = 0, 1)
-
Thank you, Paul! Great suggestion
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!