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 / How to do a vote colle...
Power Apps
Answered

How to do a vote collection app

(0) ShareShare
ReportReport
Posted on by 43

I am currently building an app that I will have lots of people simultaneously voting on 5 different options. Once they have voted I would like the next screen to then be a graph showing the amount of votes each option has, but I would like this to update automatically, so if other votes go in whilst they are looking at the graph, then it will change.

 

I currently have an app that uses a radio poll and the votes go into a SharePoint list and these votes are taken from here and are then put into a graph, however, this does not update automatically.

 

Is anyone able to help?

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

    Hi @edwardhorton,

    Glad that our paths cross again. 😊

     

    With the graph code we worked on yesterday, the graph info will only automatically update when that particular user adds another choice. It will not update when another user, in another app instance adds a row to the datasource.

     

    The good news is, there is an easy workaround. You could use a Timer control that refreshes your datasource every x amount of seconds/minutes.

     

    (1) Add a Timer control to your Graph screen

    (2) Set the AutoStart, AutoPause and Repeat properties to true (this will automatically start the timer when navigating to the screen and automatically pause the timer when navigating from that screen - during the screen visit, the timer will keep running repeatedly)

     

    (3) Add the following to the OnTimerEnd property

    Refresh(LISTNAME)

     (4) Set the duration to your preferred value (in milliseconds)

    //Preferably the value would not be too low (value below will refresh every 30 sec)
    30000

     

    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

    Hello again!

     

    Thank you so much for your help again, I was thinking it was going to take much longer than 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 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