Hierarchy Formula Help

Hi Everyone, thank you in advance for your help on this issue.
Currently I have a level column that gives you a number based on the level of the hierarchy the row is assigned to. I am trying to implement a column called "Topic" that lists the Task Name for Level 0 of the hierarchy for all of the children rows.
My formula:
=IF(Level@row = 0, Task@row, IF(Level@row > 0, INDEX(Task:Task, MATCH(0, Level:Level, 0)), ""))
This formula is repeating the Task name for the first level 0 task in the sheet instead of the most recent level 0 parent row for the given child.
Does anyone have any ideas for a solution?
Best Answer
-
Try this:
=IF(Level@row = 0, Task@row, INDEX(ANCESTORS(Task@row), 1))
Answers
-
Try this:
=IF(Level@row = 0, Task@row, INDEX(ANCESTORS(Task@row), 1))
-
@Paul Newcome Thank you so much for the help!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 450 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!