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 / Displaying Poll Result...
Power Apps
Answered

Displaying Poll Results in a Chart

(0) ShareShare
ReportReport
Posted on by 43

I have been creating a voting app on Power apps where people simply select out of the 5 options on a radio poll and the votes then go into a share point list. I now would like a screen within the app that shows the amount of votes each option has on a graph - once the have selected their options they will then be taken to this screen to show them the current standings.

 

Is this possible, and if so is anyone able to help?

Categories:
  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @edwardhorton,

     

    That should be possible by leveraging the column chart and group by function.

    How does your SharePoint list look like - Is the radio poll linked to a Choice column or is it a text column?

  • edwardhorton Profile Picture
    43 on at

    Hi, 

     

    Thanks for your reply.

     

    It is very simple currently, the SharePoint list is just one text column.

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Ok thanks for the info @edwardhorton ! 😊

     

    You could try the following:

     

    (1) Add a Column Chart control to your Power App

     

    (2) Use the following code in the Items property of the ColumnChart

    //Group your records and create a column to display the count
    AddColumns(
     GroupBy(
     //Change LISTNAME and COLUMNNAME to the correct names
     LISTNAME,
     "COLUMNNAME",
     "GroupedRecords"
     ),
     "Count",
     CountRows(GroupedRecords)
    )

     

    (3) (optional since it may be ok already), select the ColumnChart control, go to the property panel on the right and select 'Advanced'

    • The Series properties should be set to Count
    • Labels property should be set to your column name

     

    Since Column Charts are more complex controls I will add some additional resources to help you get started:

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • edwardhorton Profile Picture
    43 on at

    I have just added a column chart but when I click on it it does not have the items option in the drop down. In the tree view it gives me these options : 

    edwardhorton_0-1692019037009.png

    and when I then click on the ColumnChart2 bit, i get the items option in the dropdown however it does not let me type anything into the coding bar.

  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @edwardhorton,

     

    ColumnChart2 should indeed have an Items property. Is there any error you are receiving when trying to type in the Items property? You could try to save & reopen the app in edit mode. 

     

    Note: the code should be added via the formula bar in the top header, not via the 'Properties' section of the right property panel.

     

    I hope this helps!

  • edwardhorton Profile Picture
    43 on at

    It has worked now, thank you for your help!!

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard