My dataset covers a 5 year period.
The parent line has the total for all 5 years.
Each parent is made up of two types of children -- those that have data for all 7 years and those that only have it for 3 years.
The final dataset will only include the children (because they provide more detail). This means the last 4 years may not equal the total of the parent line.
My question is --> how can I create a new child line that is the sum of the existing children minus the parent line.
The parent and staring children exist in two separate flows.
Children data..
| Hierarchy | Yr1 | Yr2 | Yr3 | Yr4 | Yr 5 | Yr6 | Yr7 |
| Child of #1 | 5 | 10 | 10 | 15 | 10 | 5 | 5 |
| Child of #1 | 5 | 5 | 5 | 5 | 5 | 10 | 5 |
| | | | | | | | |
Compared to the Parent
| Hierarchy | | | | | | | |
| Parent Line #1 | 10 | 15 | 15 | 30 | 30 | 30 | 30 |
How do I generate this...
| Hierarchy | Yr1 | Yr2 | Yr3 | Yr4 | Yr5 | Yr6 | Yr7 |
| Child #1 | 5 | 10 | 10 | 15 | 10 | 5 | 5 |
| Child #2 | 5 | 5 | 5 | 5 | 5 | 10 | 5 |
| New Child #3 | 0 | 0 | 0 | 10 | 15 | 15 | 20 |