Hi All --
I have spent the last 2-3 days trying to figure out a way to accomplish a task given to me and have yet to have any luck. Below is an org structure normalized. Record ID is the group (I am only showing group 88 but there are 949). Tier represents the level -- 0 is the lowest level and in this case 5 is the highest.
I am given the Tier 0 Total_Final amount -- in this case 1,703,823.849. Here is the concept:
Total_Final is multiplied by InterestPC so in the case of Tier 0 -- the Total Based Ownership is now 8519.
Once that is done, we match up the 1st parent in Tier 0 to the GTN in Tier 1. So, in this case Tier 0's 1st parent is BE318 matches up to two GTN's in Tier 1. Once we match it the The Tier 0 -- Total Based on Ownership amount gets moved to tier 1 Total_Final. In the example below 8519 on tier 0 gets moved to Tier 1's Total Final. Confused yet?
Tiers can vary in length.
Excel file attached. I can attach my batch macro, but I'm not sure it helps.
Thanks,
Seth
| Record ID | TIER | GTN | Tax Type | Right_Child and Parent Together | InterestPc | 1st Parent | ChildParent | Total_Final | Total Based on Ownership |
| 88 | 0 | BE583B | CFC | BE583BBE318 | 0.005 | BE318 | BE583BBE318 | 1703823.849 | 8519.119243 |
| 88 | 1 | BE318 | CFC | BE318UK318 | 0.995 | UK318 | BE318UK318 | 8519.119243 | 8476.523646 |
| 88 | 1 | BE318 | CFC | BE318UK990 | 0.005 | UK990 | BE318UK990 | 8519.119243 | 42.59559621 |
| 88 | 2 | UK318 | FDE | UK318UK990 | 1 | UK990 | UK318UK990 | 8476.523646 | 8476.523646 |
| 88 | 2 | UK990 | CFC | UK990UK300 | 1 | UK300 | UK990UK300 | 42.59559621 | 42.59559621 |
| 88 | 3 | UK300 | FDE | UK300UK990K | 1 | UK990K | UK300UK990K | | |
| 88 | 3 | UK990 | CFC | UK990UK300 | 1 | UK300 | UK990UK300 | | |
| 88 | 4 | UK300 | FDE | UK300UK990K | 1 | UK990K | UK300UK990K | | |
| 88 | 4 | UK990K | FDE | UK990KUK970 | 1 | UK970 | UK990KUK970 | | |
| 88 | 5 | UK970 | CFC | UK970UK07351 | 1 | UK07351 | UK970UK07351 | | |
| 88 | 5 | UK990K | FDE | UK990KUK970 | 1 | UK970 | UK990KUK970 | | |