Find the common parent of two list members
Options
thomas_2
Member, ALL USERS, Community Pioneer Posts: 3 Master Anaplanner of the Year
I have an Entity list which contains the entities in my organisation. If, as the result of another calculation, I have been returned two entities in the Entity list, how do I determine their lowest common parent? Some combination of PARENT and FINDITEM seems likely... but they might be at different levels.
Tagged:
0
Comments
-
Assuming you have 4 levels in the hierarchy and the Entity list is Level 4 in the Hierarchy you can show the common parent name in a Text Formatted line item using the formula below.
IF PARENT(Entity 1)=PARENT(Entity 2) THEN "L3 - " & NAME(PARENT(Entity 1))
ELSE IF PARENT(PARENT(Entity 1))=PARENT(PARENT(Entity 2)) THEN "L2 - " & NAME(PARENT(PARENT(Entity 1)))
ELSE IF PARENT(PARENT(PARENT(Entity 1)))=PARENT(PARENT(PARENT(Entity 2))) THEN "L1 - " & NAME(PARENT(PARENT(PARENT(Entity 1))))
ELSE "No Common Parents"The code above Prefixes the Level of the Hierarchy which was found to be common starting from the bottom ending at the top.
0
Categories
- All Categories
- 2.3K Anaplan Community
- Academy
- Anaplan Talent Builder
- Model Design Course
- The Anaplan Way
- Archive
- 2 Idea exchange
- 62 Enterprise Scale
- 1.1K Extensibility
- 21 Intelligence
- 1.6K Planning & Modeling
- 331 Security
- Community Connections
- Connections
- Experiences
- Groups
- Personas
- Employees
- CS Toolkit
- Customer Care Center
- Forums
- Academy & Training
- Community Feedback & Updates
- Japan
- Anaplan Community Japan
- Anaplan Community Japan Knowledge Base
- HyperCare Japan
- JP-Central
- Support-Japanese
- Partners
- Partner Leadership Council
- Partner Product Council
- 724 Platform
- Anapedia
- App Hub
- Centers Of Excellence
- Extensions
- Planual
- Platform Updates
- 724 User Experience
- Profile Builder
- Resources
- Anaplan Advocates
- Anaplan Live!
- Community
- Community Advancement
- Community Connections
- Partner Program
- The Official Master Anaplanner Program
- Videos
- Welcome to the Anaplan Community!
- Success Central
- Support
- Case Portal Link
- Common Support Questions
- HyperCare Redirect
- Known Issues and Workarounds
- Support test page
- SupportFAQ
- Survey
- 2 Training Day Takeaways