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 / Chart to show count of...
Power Apps
Answered

Chart to show count of users

(0) ShareShare
ReportReport
Posted on by 42

Hi 

 

I was wondering if anyone could help me.

 

I have a SharePoint list with data.

splist-powerapps.png

NameEnrolled
JoeNo
JoeNo
JoeYes
RoyYes
RyanYes
RyanYes

 

In excel you can create a chart showing the users enrolled.

excel-powerapps.png

I would like to replate this in a powerapp using a Powerapp column chart, is that possible?

 

Thanks in advance.

Categories:
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @surfer1978 

    You will need to perform a few actions on your SharePoint list to show it in the Chart similar to Excel

     

    • Filter the list by Enrolled=true
    • GroupBy Title
    • Count the number of rows

     

    I would suggest doing this by creating a Collection.  Put this code in the OnVisible property of your screen.

     

    //Group by and count code
    ClearCollect(
     Filter(myChartData, Enrolled=true),
     DropColumns(
     AddColumns(
     GroupBy(ReportData,"Item","GroupedItems"),
     "Count Value",CountRows(GroupedItems)
     ),
     "GroupedItems"
     )
    );
    

     

    Now you can add a Bar Chart to your PowerApp and use this code in the Items property to display the data.

     

    myChartData

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • mdevaney Profile Picture
    29,993 Moderator on at

    @surfer1978 

    Please note: I have assumed that Enrolled is a Yes/No Column type in SharePoint.

  • surfer1978 Profile Picture
    42 on at

    Sorry it took so long to test but this worked. Thank you for provising the solution to that!

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard