Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Pie Chart with percent data on multiple columns

Hi there,


I have an excel file that has the following fields:

Type 1         |        Type 2      |     Type 3

Sun                    Sun                   Moon

Moon                Planet                 Sun


I need to have a Pie Chart that displays the total split % or volume such as :

Sun - 3

Moon - 2

Planet - 1

 

The problem is that I cannot put all of their legends, so I will get a combine value but rolling up only to the Types existent in Type 1 ( or Sun | Moon).

 

How can I create a pie chart that shows all of the data labels with their combined values?

 

Thanks

5 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      If I use those, it breaks the rest of the table and formulas that I have. Are there any other ways?

      • v-yingjl's avatar
        v-yingjl
        Icon for Community Support rankCommunity Support

        Hi Anonymous ,

        If you do not want to break the initial table, you can use union() function to create a new calculate table:

        new table =
        UNION (
            SUMMARIZE ( 'Table', 'Table'[Type1] ),
            SUMMARIZE ( 'Table', 'Table'[Type2] ),
            SUMMARIZE ( 'Table', 'Table'[Type3] )
        )

        Rename the column as 'Type', create a pie chart to get the result:

         

        Best Regards,
        Yingjie Li

        If this post helps then please consider Accept it as the solution to help the other members find it more quickly.