JOIN function for child row
Hi everyone,
I'm currently working on a way to leverage formulas and row hierarches to create a ROW ID column. Essentially what I would like to happen for children rows to have the same "item ID" as their ancestorial row.
This is what I have so far for the parent and child row formulas (currently seperate)
Parent Formula:=IF(Level@row = "1", JOIN([Ticket #]@row:Category@row, "-"))
Child Formula:=IF(Level@row > "1", ANCESTORS(JOIN([Ticket #]@row:Category@row, "-")))
I have also attached a screenshot, The first three columns for children rows will be blank due to the parent row being pulled in from another sheet.
Any help would be appreciated, thanks!
Answers
-
I don't see a Level column so that maybe part of the issue.... Try this...
=IF(COUNT(ANCESTORS([Ticket #]@row)) = 0, [Ticket #]@row, PARENT(@cell))
You could then turn this into a column formula rather than having to change the formula based on if it's a parent row or not.
My solutions usually data in all cells so I'm not 100% confident the @cell part will work so you'll have to try. If the above doesn't work you can try
=IF(COUNT(ANCESTORS([Ticket #]@row)) = 0, [Ticket #]@row, PARENT([Ticket #]@row))
Kelly Drake (she/her/hers)
STARBUCKS COFFEE COMPANY| business optimization product manager
-
Hey Kelly
There is a Level column, it just at the other end and so wasn't in the picture.
But your formula's might work better thought than what I was trying. I'll give them a shot and let you know.
Thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!