Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

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 5
amitchandak
Super User
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/

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

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

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:

piechart.png

 

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.

Anonymous
Not applicable

Hi @v-yingjl,

Thank you! That did work partly, but I still have a couple of issues where I would love to get your insights:

  1. By creating a separate table, I lost the ability to filter my data dynamically. Is there a way I can add another column onto this table "ID" and then create a relationship between both tables so I don't lose the filtering functionality?
  2. Although it grouped the items of some of the tables, I only got 28 in the pie chart when the real count is 46. Any ideas on what could be trigering this?

    Thanks

Hi @Anonymous ,

Could you please consider sharing a sample .pbix file for further discussion? Remember delete or replace sensitive information when you share it.

 

Best Regards,

Yingjie Li

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.