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 / Automatic Dropdown val...
Power Apps
Answered

Automatic Dropdown value based on time

(0) ShareShare
ReportReport
Posted on by 55

Hi All,

 

Requirement: I have 2 values in dropdown value naming "A-Shift" and "B-Shift". Now i want to autopopulate Shift names based on time criteria. If a user has logged in the app between 7:00 A.M to 7:00 P.M the dropdown value will automatically say Shift A and if the user logs in between 7 P.M to 7 A.M the dropdown value should capture Shift B. 

How can i achieve this?

Thanks in advance!!

Categories:
  • Verified answer
    C-Papa Profile Picture
    1,836 on at

    Hi, this should do the trick, you now longer need a dropdown, you could just have a label or even hide it from the user completely. 

     

    If(Value(Text(Now(),"HH")) > 07 && Value(Text(Now(),"HH")) < 19,"Shift A ","Shift B")

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard