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 / Fill Dropdown with inf...
Power Apps
Unanswered

Fill Dropdown with information

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello. I am working on a SharePoint list in wich I would like to have a dropdown with numbers from 0 to 100 counting 5 to 5, something like 0 5 10 15... Is there a way to do it on the PowerApps form with a formula instead of manually setting those values. Any help would be great 

Categories:
  • LRVinNC Profile Picture
    2,297 on at

    You can accomplish this using a timer and a collection

     

    Under your App control, initialize a timer and Clear your collection.

    Set(DDCtr, 0); Clear(DD)

    Then add a Timer control to the screen where your dropdown will appear and set the visible property to false so it is hidden. (I didn't hide it for the purposes of this set of instructions.) 

    Set the 4 highlighted values as follows:
    1.  Set the OnTimerEnd action to:

    Set(DDCtr, DDCtr + 5);Collect(DD,{DDValue: DDCtr});

    2.  Set the Start property to true so the timer will start when the screen become visible.

    3.  Set a duration for your timer -- I used 100 (milliseconds)

    4.  Use an If statement in Repeat to turn repeat off once you get to your target value.  Note that I check for 95, not 100 so that I get only 5 - 100 by 5s in my collection.

    Timer.jpg

     

    Then set your DropDown to get its data from the collection you created, in my case DD and get the value from DDValue.

     

    Timer2.jpg

     

    Execute the On Start for your App properties (right click on 3 dots by App, then click On Start) to initialize DDCtr and clear the collection. 

    Then Play your screen and the dropdown will populate with the desired values.
    Note:  If you need to repeat for testing, be sure to execute the on start each time or you will add to your collection and wind up with duplicate values.

    Timer3.jpg

     

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    I found that you have posted same issue within this forum, please check my response within the following thread:

    https://powerusers.microsoft.com/t5/Creating-Apps/Fill-Dropdown-with-information/m-p/279869/highlight/false#M9590

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for posting in the community @Anonymous - can you review the above replies and advise if they were helpful?

     

    Thank you,

     

    @Anonymous 

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

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard