1. I have an Input ready query with hierarchy in the Row. Customer want only the top node of that hierarchy should not be input ready. However, if they change any lower node value then the overall result should change in the top node (which is not input ready).
Hierarchy Value
Node1 (Top Node) 10 ---> Not Input ready
Node2 4 ---> Input ready --> Sum of all Leaf Nodes under this Node (Node2 = Leaf)
Leaf 4 ---> Input ready
Node3 6 ---> Input ready --> Sum of all Leaf Nodes under this Node (Node3; in this case Node3 = Leaf1 + Leaf2))
Leaf1 1 ---> Input ready
Leaf2 5 ---> Input ready
Now if somebody change Node3 Value from Node3 = 6 to Node3 = 8, then the extra 2 (=8-6) value will be distributed among the Child Leafs (New Leaf1 value = earlier Leaf1 + 1 = 1 + 1 = 2 and New Leaf2 value = earlier Leaf2 + 1 = 5+1 = 6) and New Top Node will become 10 + 2 = 12 (earlier Top Node + 2).
Top Node | Top Node | 564.664,00 | ||
Child Node1 | Child Node1 | 14.284,66 | ||
Leaf Node1 | Leaf Node1 | 3.361,09 | ||
Leaf Node2 | Leaf Node2 | 3.361,10 | ||
Leaf Node3 | Leaf Node3 | 840,28 | ||
Leaf Node4 | Leaf Node4 | 840,27 | ||
Leaf Node5 | Leaf Node5 | 840,27 | ||
Leaf Node6 | Leaf Node6 | 2.520,82 | ||
Leaf Node7 | Leaf Node7 | 2.520,83 | ||
Child Node2 | Child Node2 | 5.881,92 | ||
Child Node3 | Child Node3 | 147.047,89 |