Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9190

Making Hierarchy Top Node as not Input Ready in Input Ready Query

$
0
0

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 NodeTop Node564.664,00
Child Node1Child Node114.284,66
Leaf Node1Leaf Node13.361,09
Leaf Node2Leaf Node23.361,10
Leaf Node3Leaf Node3840,28
Leaf Node4Leaf Node4840,27
Leaf Node5Leaf Node5840,27
Leaf Node6Leaf Node62.520,82
Leaf Node7Leaf Node72.520,83
Child Node2Child Node25.881,92
Child Node3Child Node3147.047,89

Viewing all articles
Browse latest Browse all 9190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>