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 / color code boxes based...
Power Apps
Answered

color code boxes based off number inside

(1) ShareShare
ReportReport
Posted on by 84
Good morning,
I had this working but then added another color and now I cannot get the color needed. I have the code below. I am not receiving an error, the color of the second and third box are not displaying the correct color based off of the logic. Any assistance is appreciated. The fourth box is under a different color scheme. 
 
If(Value(WhatIfAdd.Text)<=160, Color.Green,
    Value(WhatIfAdd.Text)>160 && Value(TextInput1.Text) < 180, Color.YellowGreen,
    Value(WhatIfAdd.Text)>181 && Value(TextInput1.Text) < 200, Color.Yellow,
    Value(WhatIfAdd.Text)>201, Color.Red)
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,968 Moderator on at
    Hi
     
    The reason is your code says Greater Than 181 not Greater than or equal so its excluded.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard