Reporting: pulling in Parent Rows
Hello,
I want to have parent row pulled into my report. I used the following formula from one of the previous threads to automatically check parent row if a subtask is due to start in 30 days. However, the formula does not check parent row even when a subtask is checked. There are up to 5 heirarchy level in some instances, but none are checked. Am I missing something?
=IF(COUNT(ANCESTORS([Task Name]@row)) = 0, IF(COUNT(CHILDREN()) > 0, 1), IF(AND(Start@row >= TODAY(), Start@row <= TODAY(30)), 1))
Thank you in advance
U
Best Answer
-
Try something like this...
=IF(COUNT(CHILDREN([Task Name]@row)) > 0, IF(COUNT(CHILDREN()) > 0, 1), IF(AND(Start@row >= TODAY(), Start@row <= TODAY(30)), 1))
Using the ANCESTORS function and looking for the counts that equal zero mean it will only work on the parent rows that are of the highest hierarchy level meaning the leftmost indented rows.
Answers
-
Try something like this...
=IF(COUNT(CHILDREN([Task Name]@row)) > 0, IF(COUNT(CHILDREN()) > 0, 1), IF(AND(Start@row >= TODAY(), Start@row <= TODAY(30)), 1))
Using the ANCESTORS function and looking for the counts that equal zero mean it will only work on the parent rows that are of the highest hierarchy level meaning the leftmost indented rows.
-
Brilliant Paul! It worked.
Thank you for the quick response and explanation of the logic.
Cheers,
Usha
-
Hello Paul - ran into trouble with the formula. Its checking parent rows even when there isn't a subtask due to start in 30 days. Is there a refinement to the formula that could prevent this? Many thanks
U
-
My apologies. I just looked at that first part and assumed the rest of the formula was working for you. I didn't even look at the second IF.
=IF(COUNT(CHILDREN([Task Name]@row)) > 0, IF(COUNTIFS(CHILDREN(), AND(@cell >= TODAY(), @cell <= TODAY(30))) > 0, 1), IF(AND(Start@row >= TODAY(), Start@row <= TODAY(30)), 1))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!