Parent and child relationships in reports
I'm trying to figure out a way to show parent/child relationships in reports.
I've watch this youtube video which seems to have found a sensible workaround but they are using dates and the suggested formula is throwing me.
What i'd like to do is include the parent/child relationship in a report if there is text in the status column. FYI I will have multiple project on one sheet ie food show is one project all the other lines will be the same categories for every other project.
Smartsheet Reports | Use This Trick to Get PARENT/CHILD Hierarchies (youtube.com)
Any help/suggested formulas much appreciated.
Thanks
Best Answer
-
Hi Suzanne
I have not watched the YouTube so don't know if this is what you are trying to do, but you can add a column to the grid that contains the parent name, or even a breadcrumb showing parents and grandparents. When you produce reports you can use this column to filter.
This formula, for example, will return the value in the Production column for the first generation:
=IFERROR(INDEX(ANCESTORS(Production@row), 1), Production@row)
It will look like this:
You can make it a column formula and hide the column so it won't bother you in the grid, but use in to filter your reports.
You can find more about parent and ancestor functions here:
Answers
-
Hi Suzanne
I have not watched the YouTube so don't know if this is what you are trying to do, but you can add a column to the grid that contains the parent name, or even a breadcrumb showing parents and grandparents. When you produce reports you can use this column to filter.
This formula, for example, will return the value in the Production column for the first generation:
=IFERROR(INDEX(ANCESTORS(Production@row), 1), Production@row)
It will look like this:
You can make it a column formula and hide the column so it won't bother you in the grid, but use in to filter your reports.
You can find more about parent and ancestor functions here:
-
And you could use Grouping in the report via this new ancestor column to simulate the parent/child row summaries you see in the sheet's grid view.
Adrian Mandile
CHESS Consulting Australia - Smartsheet Solution Provider Gold Partner
Collaborative | Holistic | Effective | Systems | Solutions -
Thanks so much. That seems to help. Sorry another question. Is this all soooo new and like learning another language.
I'd like to check a box if the status column is either blank or has N/A in the box. This if statement seems to be working for if its blank but I don't know how to add the OR if its N/A
=IF(ISBLANK([Status]@row), 0, 1)
Thanks so much
-
Hi Suzanne
You need to add an OR function to the IF, like we did for the other Status dropdown options on the other thread.
=IF(OR(Status@row = "N/A", ISBLANK(Status@row)), 0, 1)
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!