Join & Collect Children: 1 Occurrence
Smartsheet Community:
How can I modify this formula where it only Collect 1 Child Occurrence?
Existing Formula: =JOIN(COLLECT(CHILDREN(), CHILDREN(), <>""), ", ")
Children: Chrome, Chrome, Firefox, Safari, Safari
Thanks
Best Answer
-
That is because you have the delimiter set as part of the DISTINCT function. If we shift one of the closing parenthesis from the end, it should resolve the issue.
=JOIN(DISTINCT(COLLECT(CHILDREN(), CHILDREN(), <>"")), ", ")
Answers
-
You need to use Distinct formula:
=JOIN(DISTINCT(COLLECT(CHILDREN(), CHILDREN(), <>""), ", "))
-
Formula Works, but No Commas between the browsers.
Results: SafariChromeFirefoxEdge,
-
@Paul Newcome You have any thoughts on how I can Accomplish this? I tried different variation of the formulas but unsuccessful. The Problem is that I have no Commas between the Different Browsers.
Current Formula: =JOIN(DISTINCT(COLLECT(CHILDREN(), CHILDREN(), <>""), ", "))
Results: SafariChromeFirefoxEdge
Thanks Paul & Alon
-
That is because you have the delimiter set as part of the DISTINCT function. If we shift one of the closing parenthesis from the end, it should resolve the issue.
=JOIN(DISTINCT(COLLECT(CHILDREN(), CHILDREN(), <>"")), ", ")
-
Excellent, Thanks Paul
-
Happy to help. 👍️
-
@Paul Newcome - I have a similar question. I have the following columns and children (the Blue row is the parent).
In the parent Workflow column I have: =JOIN(CHILDREN(), " ; ")
How can I change the formula so that if the Status for a child row = N/A, that it will not be included in the Join results?
I have tried =JOIN(DISTINCT(COLLECT(CHILDREN(), CHILDREN(), Status@row <> "N/A")), " ; ") but I still get all of the children listed.
Thank you!
Jennifer
-
@JSpears It looks like your syntax may be just a little off...
=JOIN(DISTINCT(COLLECT(CHILDREN(), CHILDREN(Status@row), @cell <> "N/A")), " ; ")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!