Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Totaling a Hierarchy Split Across Multiple Data Sets

I am reporting on hierarchical data. The hierarchy has five levels.  I have five data files, one for each level of the hierarchy.  Each line of data has a parent id which connects that line of data to the parent item which is one level higher in the hierarchy.  Each line of data also has a point value which is the sum of its child point values.  I'm trying to find the point value of the items at the top level of the hierarchy by summing the total of all child (and all grandchild) items.  Something like this:  

 
Level 1 Item     24
 Level 2 Item    12
  Level 3 Item   6
   Level 4 Item  1
     Level 5 Item1
   Level 4 Item  1
     Level 5 Item1
   Level 4 Item  1
     Level 5 Item1
  Level 3 Item   6
   Level 4 Item  1
     Level 5 Item1
   Level 4 Item  1
     Level 5 Item1
   Level 4 Item  1
     Level 5 Item1
 Level 2 Item    12
  Level 3 Item   6
   Level 4 Item  1
     Level 5 Item1
   Level 4 Item  1
     Level 5 Item1
   Level 4 Item  1
     Level 5 Item1
  Level 3 Item   6
   Level 4 Item  1
     Level 5 Item1
   Level 4 Item  1
     Level 5 Item1
   Level 4 Item  1
     Level 5 Item1
 

What is the best way to accomplish this?  

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable
    Hi Anonymous

    Would it be by merging files one by one from the top to the lowest child file and then group?

    Kind regards,
    JB
  • v-frfei-msft's avatar
    v-frfei-msft
    Community Support

    Hi  Anonymous ,

     

    You can use matrix visual to work on it.