Creating report to show Parent Row based off Child Row
I am trying to design a report to list to our outside salesman. I need to filter it based on contractor names, but those are child rows to the parent row which is the job name.
So in the picture, I would want the criteria to be "ROMANOFF", so I could pull all jobs they are on, which in this case, would be 12th Avenue South.
Is this possible? I do currently have a helper column that allows me to identify parent/child rows by numbering them. Parents are 1 then children are nothing, but don't know if that is enough to achieve this.
Best Answer
-
I would suggest a helper column that replicates the contractor in the child rows and joins the contractors for the parent rows.
=IF(COUNT(CHILDREN([Contractor Name Column]@row = 0, [Contractor Name Column]@row, JOIN(CHILDREN([Contractor Name Column]@row), ", ")
Then you can build your report to pull rows where this helper column contains "Romanoff" or whatever other name you are pulling the report for.
Answers
-
I would suggest a helper column that replicates the contractor in the child rows and joins the contractors for the parent rows.
=IF(COUNT(CHILDREN([Contractor Name Column]@row = 0, [Contractor Name Column]@row, JOIN(CHILDREN([Contractor Name Column]@row), ", ")
Then you can build your report to pull rows where this helper column contains "Romanoff" or whatever other name you are pulling the report for.
-
I am getting #UNPARSEABLE. Did I do it incorrectly?
=IF(COUNT(CHILDREN([Job Name]@row = 0, [Job Name]@row, JOIN(CHILDREN([Job Name]@row), ","))))
-
I think I may have the column references messed up. Here is another snippet of my sheet.
The left column is my helper to determine parent/child, both the job name and contractors are in the same column with the contractors being children to a job.
-
Got it! Missed some parenthesis while typing it out (annoying little buggers).
=IF(COUNT(CHILDREN([Job Name]@row)) = 0, [Job Name]@row, JOIN(CHILDREN([Job Name]@row), ","))
-
Yep. That was exactly it. Glad you got it figured out. Is the report side working now as well?
-
Yup!
-
Excellent. And sorry about the parenthesis issue. My fingers must not have been traveling at the same speed as my brain. Haha
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives