Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Changing a gallery color based on time

(0) ShareShare
ReportReport
Posted on by

Is there a solution that will change the color of a gallery input based on time? I have seen the use of icons that change colors but its based on a specific button or selection. I was wondering if there is a formula that would change the color based on an input time + entered time. Example: the default fill is blue. Input time is 12:00PM. Cook time is: 6hrs. At 5:45pm turn Yellow. 6PM turn Green. 6:15PM turn RED. 

Pricef1_0-1682640050495.png

For instance in the gallery below it shows an IN time of 18:00. Cycle time of 7.5hrs. So in 15min prior to end time turn yellow, green on end time, and red 15min after end time. 

 

  • turnerj3 Profile Picture
    2,039 on at
    Re: Changing a gallery color based on time

     In the TemplateFill property of the Gallery:

    If(InputTime=TimeValue(“12:00 PM);Green;Blue)

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1