Forum Discussion
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
- amitchandak
Super User
Anonymous , use unpivot or transpose and then you can count
https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/- AnonymousNot applicable
If I use those, it breaks the rest of the table and formulas that I have. Are there any other ways?
- v-yingjl
Community 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 LiIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.