Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Decomposition Tree

Hi, I was new in Power BI and first time using decomposition tree method. 

I have a list of data 

Incoming water 

timestampMain waterBasement adminwasherbin
30/5/223423124523
3/6/224534346745
3/6/225645568967

 

outgoing water 

timestampwaste 1waste 2waste 3
30/5/22234234234
3/6/22345345567
3/6/223445645

 

Data list

typecategorysubcategory
incoming waterbasementadmin
incoming waterbin 
incoming waterwasher 

 

typecategory
outgoing waterwaste 1
 waste 2 
 waste 3

 

for the decomposition tree, 

I may need the sum of the main water > each category in incoming water by showing the sum in the timestamp (may use slicer to pick the date)> each subcategory also shown the sum 

 

sum of all the incoming water > each outgoing water category with the sum in timestamp table 

 

I will appreciate for your help. 

 

Kind regards, 

Kim. 

 

  • Unpivot your data to bring it into a usable format. Then you can consider putting incoming and outgoing in the same table so you can use a Waterfall (haha, funny)  chart too.

     

    see attached for a sample.

     

     

5 Replies

  • Unpivot your data to bring it into a usable format. Then you can consider putting incoming and outgoing in the same table so you can use a Waterfall (haha, funny)  chart too.

     

    see attached for a sample.

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi lbendlin

      From the flow that you make, are there any chance to include subcategory? Such as by pressing the plus symbol will show the subcategory of the amount. 

       

      Thanks a lot. 

      • lbendlin's avatar
        lbendlin
        Super User

        That is technically possible but your sample data is inconsistent (I had to move stuff aroud to make it work and fix spelling differences too). Provide a better category/subcategory mapping, and then I can help with the visual.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi lbendlin

    This will be the category/subcategory mapping. Only one item contain subcategory. Will it still be able to do? 

     

    Thanks so much. 

    • lbendlin's avatar
      lbendlin
      Super User

      yes, that will work.  You will need to report on subcategory level for all categories. Meaning you cannot provide values for Basement and for City Water, you can only provide it for City Water and do the rollup to Basement automatically.