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 / Pie Charts Single Column
Power Apps
Unanswered

Pie Charts Single Column

(0) ShareShare
ReportReport
Posted on by 27

Hi, I was playing around with the pie chart and I was wondering if it would it be possible to create a pie chart that only counts the values in one column?

 

For instance, I want to show a pie chart that collects all the different types of equipment (Equipment Type) and displays them with numbers on the pie chart.

Categories:
  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @zapperrr 

    Using the below formula for the Items property of the PieChart control, you should get a count of each type of equipment:

     

    AddColumns(
     GroupBy(
     DataSource,
     "Equipment",
     "GroupedByEquipment"
     ),
     "Count",
     CountRows(DataSource)
    )
  • zapperrr Profile Picture
    27 on at

    Hey, thanks for the response.

     

    Unfortunately, this didn't work. Would I have to specify if it's a value column? The name of the column is Equipment Type but it doesn't seem to be working when I add in my own things.

  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @zapperrr 

     

    try 

    AddColumns(
     GroupBy(
     yourDataSource,
     "your Column", //Equipement
     "Different Equipment" //Group name for all the equipment
     ),
     "Total",
     CountRows('Different Equipment') //count the group name
    )

     

    Result

    Creating a collection as data source to illustrate

    ClearCollect(colSomeSource01, ForAll(Sequence(20),{equip: "Equipment Type " & RandBetween(1,3), 'Anohter Column': Value}))

     

    AddColumns(
    GroupBy(
    colSomeSource01,
    "equip",
    "Different Equipment"
    ),
    "Total",
    CountRows('Different Equipment')
    )

    rubin_boer_0-1662744877510.png

     

    Hope this helps,

    R

     

     

     

  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @zapperrr ,

     

    To make this work for a complex type column such as Choice, you have to add a column to the data source that holds the value and then group by that:

     

    AddColumns(
     GroupBy(
     AddColumns(
     DataSource,
     "vEquipment",
     Equipment.Value
     ),
     "vEquipment",
     "GroupedByvEquipment"
     ),
     "CountEquipment",
     CountRows(GroupedByvEquipment)
    )

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard