Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Decomposition tree :: custom value

How to get conformed total in category group ?

3 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Not understanding what you mean. Can you explain in more detail?

    • Anonymous's avatar
      Anonymous
      Not applicable

      data source : https://en.wikipedia.org/wiki/2019%E2%80%9320_coronavirus_pandemic#covid19-container

      sample data:

      LocationsCasesDeathsRecov.
      United States14241025054767
      Italy976891077913030
      China81470330475770
      Spain85195734016780

      By using this data i want to create a decomposition tree similar to the above screenshot. 

      level 1 for decomposition tree : total cases( sum of cases for all location)

      Level 2 for decomposition tree:  location-wise split of total cases.

      Level 3 for decomposition tree:  for each location i want to split into no of deaths, no of recover and total cases for each location (same from level2 similar to the screenshot above.

       

      please suggest if this makes sense.

       

       

       

       

  • Not sure I got it but you have to get a new table like this in Dax

    union

    (

    Summarize(Table,table[Country],"Category","Confirmed","Cases",[Confirmed Cases]),

    Summarize(Table,table[Country],"Category","Recoveded","Cases",[Recovered Cases])

    /// Add more

    )

     

    But you should have this a category already

     

    Or do the data level unpivot of measure

    https://radacad.com/pivot-and-unpivot-with-power-bi