Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

Show the number of items of a column inside an Excel spreadsheet in pie chart


so I have two groups: "Group1" and "Group2". I want to add a pie chart which would then show the number of elements for each group.

For example when I have 5 elements in total, 3 are from "Group1" and 2 are from "Group2", first of all, it would display the labels as "Group1","Group1","Group1","Group2","Group2" and the pie chart would also look similar.

I want the labels to be only the two groups, so "Group1", "Group2". And for the pie chart I would like to display only two parts with the respective number above each part.


I tried something with the function AddColumns(), but I didn't get what I am looking for.

Is there a way to accomplish this?

Best regards,

Softic Kabir


It does. I accepted that as solution 🙂

Super User III
Super User III


Very good.  I just wanted to make sure you were good with the label and number and not the other scenario of the legend with group names and the labels on the chart with just numbers.  That too can be done, but it does involve a bit more "plumbing" to do.

Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!


Thank you, but for the moment this is what I needed 🙂

Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,531)