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 / Build a Pie Chart from...
Power Apps
Answered

Build a Pie Chart from a SP List

(0) ShareShare
ReportReport
Posted on by 33

Hi, I'm trying to  use the piechart control but I cant get it to work.
My chart must show the total of each status of my List.

RaphaelMelo_0-1699369506364.png

This is what Im getting when try set it

RaphaelMelo_1-1699379091443.png

 

 

 

Categories:
  • Hassan_SZ_365 Profile Picture
    542 on at

    Hi @RaphaelMelo ,

    To fix this, you need to aggregate your data based on the status before it's used in the pie chart. Here's a short human explanation of the solution:

    1. Aggregate Data: Ensure the data you're feeding into the pie chart is summarized. You want a count of items for each status.

    2. Adjust Chart Data Source:

      • Set the pie chart's data source to a version of your list that is grouped by the status column.
      • Use the "Count" (or similar) aggregation to get the total number of items per status.
    3. Configure the Pie Chart:

      • For the Values area, use the count of items.
      • For the Legend (or Category) area, use the status.
    4. Refresh the Chart: After making these adjustments, refresh your pie chart to see if it now reflects the aggregated data.

    If you're using Power BI, you might need to use the "Group By" feature in Power Query or create a measure in DAX to count the number of items per status. If it's another tool, look for similar functionality to group and count data based on a column.

     

    Best Regards,
    Hassan Raza

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @RaphaelMelo,

    Could you please tell me that if this Status column is Text column type?

    If so, you just need to set the PieChart Items property as below:

    AddColumns(GroupBy(list1,"Status","Gs"),"Count",CountRows(Gs)).Count

    Then set the Labels and Series as Count

    vqiaqimsft_0-1699410464255.png

    What's more, set the Legend Items property as below:

    GroupBy(list1,"Status","Gs")

    vqiaqimsft_1-1699410537662.png

     

     

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