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

How to create pie chart from sharepoint list using groupby and add column

Like (0) ShareShare
ReportReport
Posted on 16 Sep 2023 03:09:47 by 77

Hi,

 

Here is my sharepoint list. 

 

I want to produce a pie chart that shows the total count of ACTIVE and INACTIVE in the status column of a sharepoint list.

 

I am unsure of the formula in the items property. I see some that use an ADD COLUMN and then a GROUPBY. Others do it the other way around. 

 

Here is a screenshot of my sharepoint list and powerapp page.

 

Screenshot 2023-09-16 at 11.06.30.png

 

Screenshot 2023-09-16 at 11.08.10.png

 

 

 

 

 

 

 

 

Thank you in advance. 

I have the same question (0)
  • Verified answer
    rubin_boer Profile Picture
    4,841 Super User 2024 Season 1 on 17 Sep 2023 at 12:13:57
    Re: How to create pie chart from sharepoint list using groupby and add column

    hi @lmcc 

     

    here you go for a choice column. get the value from the complex type and group it.

     

    AddColumns(
     GroupBy(
     AddColumns(
     OppsAgain,
     "yourNewStatus",
     Status.Value //Status is your choice column
     ),
     "yourNewStatus",
     "Statuses"
     ),
     "Totals",
     CountRows(Statuses)
    )

     

    Result

    rubin_boer_0-1694952907941.png

     

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 629 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 397 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 232 Moderator

Last 30 days Overall leaderboard