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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard