cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Problem with my code

Good morning, someone could tell me what code I could put so that the rectangle changes color to red when it is above 80 and green when it is below. By the way, the percentage comes from a formula, it is not a numerical field.

 

dsad.jpg

The percentage comes from this formula:

Captura.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Problem with my code

Hi @Anonymous,

Try the following in the Fill property of the rectangle.

If(Value(Label1.Text)>80%,Red,Green)

Assuming that Label1.Text is the label showing the %.

2 REPLIES 2
Super User
Super User

Re: Problem with my code

Hi @Anonymous,

Try the following in the Fill property of the rectangle.

If(Value(Label1.Text)>80%,Red,Green)

Assuming that Label1.Text is the label showing the %.

Super User
Super User

Re: Problem with my code

Hi @Anonymous,

If your question is answered, please mark the thread as solved so others can find it too.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 186 members 5,663 guests
Recent signins:
Please welcome our newest community members: