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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Build a Pie Chart from...
Power Apps
Unanswered

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:
I have the same question (0)
  • Hassan_SZ_365 Profile Picture
    542 on at
    Re: Build a Pie Chart from a SP List

    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
    on at
    Re: Build a Pie Chart from a SP List

    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

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 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard