I am looking for a way to get Parent column populated. I tried multi row tool but doesnt work. Hi, the first 2 columns are the input and I am looking to get column parent as desired output.
That is the illustrative dummy data. the name could be anything but the ownership indicator is the key. So 1 means ultimate parent. 2 is direct child of ultimate parent. 3 is direct child of nearest 2 above it. For example, Direct parent of child D is C as C is nearest to D, not B
| Name | Ownership indicator | Parent |
| A | 1 | |
| B | 2 | A |
| C | 2 | A |
| D | 3 | C (nearest above is C) |
| F | 4 | D |
| G | 3 | C |
| H | 2 | A |