cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Becca51178
Helper II
Helper II

Need help with PieChart

I am new to powerapps. I just want to create a pie chart or bar chart in PowerApps that is linked to a sharepoint list column called status that will count the number of times the following records occur.

Under Review
Hold
Submitted
Not Started
In Progress/On track
Will Not Implement
Complete

I have looked everywhere and I can't make it work. Can anyone please help?
1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Thorpe
Super User
Super User

Try this in the Advance Data section of the Pie Chart.

 

Items > AddColumns('SPListName', "Count", 1)

Labels > Status

Series > Count



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
Jeff_Thorpe
Super User
Super User

Try this in the Advance Data section of the Pie Chart.

 

Items > AddColumns('SPListName', "Count", 1)

Labels > Status

Series > Count



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Its counting all of them as one. Is there a way to group them and count?

@Becca51178 

Under advanced, make sure you have the Label and Series pointing to the correct fields.

Also make sure your Item Color Set does indeed have different colors, and enough colors for each category

OK, lets try this again but this time we'll group the statuses together and aggregate the count.

 

Items > AddColumns(GroupBy(AddColumns('SPListName', "Count", 1), "Status", "Counts"), "Total",Sum(Counts, Count))
Labels > Status
Series > Total



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,338)