web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create Pie Chart Based...
Power Apps
Answered

Create Pie Chart Based off of One Column

(0) ShareShare
ReportReport
Posted on by 185

Hello! 

 

I have created an app in Power Apps. However, I am wanting to add a pie chart with data from one column, where each slice is of the different column choices. For example, if my column is Unit, and the choices are "Unit 1", Unit 2", "Unit 3", then those three units will be given each slice. I have 30 units, and I am wanting to calculate how many items have selected their respective unit. 

 

So an example of one slice would be: 

"Unit 1" - 8(number of items with "Unit 1" selected") 

"Unit 2" - 7 

"Unit 3" - 4 

"Unit 5" - 23

etc....

 

FYI, I do not have a column in my list for the number of items from each choice. I would have to do "AddColumn" or something. I just have a column for Unit. 

 

Categories:
I have the same question (0)
  • Verified answer
    DavidZoon Profile Picture
    738 Most Valuable Professional on at

    Hello,

     

    You can achieve your goal by combining AddColumns(), GroupBy() and CountRows() functions, here is an example : 

    DavidZoon_1-1679592661133.png

     

     

     

    AddColumns(
     GroupBy(
     AddColumns(
     'Sample List',
     "ChoiceValue",
     Choice.Value
     ),
     "ChoiceValue",
     "Detail"
     ),
     "Count",
     CountRows(ThisRecord.Detail)
    )

     

     

    The result is a table of Distinct Choices values in a list ('Sample List') and a column is added to count how many times each value appears in the list

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily.

  • gjbannister01 Profile Picture
    185 on at

    Perfect!!! That worked. Thank you so much!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard