Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

color code boxes based off number inside

(1) ShareShare
ReportReport
Posted on by 63
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)
 
  • Verified answer
    Michael E. Gernaey Profile Picture
    40,666 Super User 2025 Season 1 on at
    color code boxes based off number inside
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,601 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,942 Most Valuable Professional

Leaderboard