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 / dropdown needed in seq...
Power Apps
Answered

dropdown needed in sequence with specific stop number based on another value

(0) ShareShare
ReportReport
Posted on by 116

I'm building a app that has a field that requests vacation hours to be deferred into a new year.

I need this dropdown (pictured) to be in intervals of 4 and the max number to go up to 80 UNLESS the person has less the 80 available hours, then it would go up to the max number they have available (has to be divisible by 4 though).

I tried to use sequence but it doesn't have a option for Stop value, just where to start.

 

Obviously please tell me if there is a better way to do this, i'm having a mental block.  Maybe just error validation or something within a text field.

 

Km00_0-1652204468797.png

Km00_0-1652204561707.png

 

 

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    try this

    Sequence(20;4;4)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    i dont know how you get the hours, but try something like this:

    If(
     numericnumber of hours(not a text) < 80;
     Sequence(
     numericnumber of hours(not a text) / 4;
     4;
     4
     )
    )
  • Km00 Profile Picture
    116 on at

    Perfect! Thank you!  my mind was going in the direction but i just couldn't get it today for whatever reason. That worked, Thanks!

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard