Hello,
I am trying to resolve a complex relationship between Child ID's belonging to Parent ID's, according to a ranked list.
An ID can exist in multiple forms as a child to different Parent ID's.
Please see attached example of 20 records in which I need to create a unique set of ID's in which a child ID is eliminated if it exists within another (parent) ID.
For example:
ID 1020 exists as a child of ID 1019. However, ID 1019 is a child of ID 1003. However, ID 1003 is a child of 1002.
Therefore, I now need to check where ID 1020 has a second relationship. It is a child of ID 1016. However, ID 1016 is a child of ID 1008. However, that is a child of ID 1006.
Therefore, I now need to check ID 1020 has a third relationship. It is a child of ID 1005 which has no other relationship.
So ID 1020 is not unique and is excluded. But ID 1005 is - which is retained.
Another example:
ID 1001 and ID 1002 have no other relationship so they are unique.
ID 1003 is a child of ID 1002. Therefore, ID 1003 is immediately excluded. Any children of ID 1003 can now be checked for any other relationship.
Another example:
ID 1019 is a child of ID 1003. However, ID 1003 is already excluded so ID 1019 is unique.
I have thousands of records in total where an ID is a child of many, higher ranked ID's. Can anyone please help with a process of investigating unique ID's please?
Thanks SO much!
Ben.Unique Rank Example.xlsx
Bookmarks