cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bongobus1
Level: Powered On

Traffic light

Hi peeps

I have a box that returns a value on selecting a button - (does a calculation)

And this calculation returns a number from 0 to 21

I would like a separate circle shape or box to shade a colour depending on the value of this other box. Example
If 13 and above the shape goes red
If between 7 and 12 goes amber
Below 7 goes green

How do i achieve this ?
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Traffic light

Hi @bongobus1,

Put a circle icon on the screen and size it.  If your box is named Textinput1, then select the icon and set the Fill property to

If(Value(TextInput1.Text) <7, Green,Value(TextInput1.Text)>12,Red,Yellow)

The Circle will change color instantly depending on the value in the Textinput control.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Traffic light

Hi @bongobus1,

Put a circle icon on the screen and size it.  If your box is named Textinput1, then select the icon and set the Fill property to

If(Value(TextInput1.Text) <7, Green,Value(TextInput1.Text)>12,Red,Yellow)

The Circle will change color instantly depending on the value in the Textinput control.

View solution in original post

Super User
Super User

Re: Traffic light

@bongobus1,

if this answers your question, please mark the thread as solved.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,226)