Ancestor/Parent Formula Help
Hi, I'm needing help with a parent formula that would populate the Category column with the parent Task Name (where Hierarchy = 0). Here's a snapshot of an example, and basically when Hierarchy is larger than 0 the Category should populate with "E. Facilities, Equipment, & Assets"
Answers
-
Hi @KMeyer
Try this:
=IF(Hierarchy@row > 0, JOIN(COLLECT(ANCESTORS([Primary Column]@row), ANCESTORS(Hierarchy@row), 0)))
This will first check to see if the Hierarchy is 0, and if it's not, then it will bring in the Ancestor of the Primary Column that has 0 as a value.
See: ANCESTORS Function / JOIN Function / COLLECT Function
Let me know if this works for you!
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!