cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sajarac
Kudo Kingpin
Kudo Kingpin

fill property

Hi there,

quick question here:

 

I have a label and the value of that label could be between 0-50

I would like to insert a circle and change the fill property of that circle as:

 

if label is equal to "0" and iqual or less than "35" Color Green

if label is equal to "36" and iqual or less than "45" Color Yellow

if label is equal to "46" and iqual or less than "50" Color Red

 

 

Any help or a better approach?

 

thank you kindly

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@sajarac 

Sure thing...set the Fill property of the circle to the following formula:

 

With({lblVal: Value(yourLabel.Text)},
    If(lblVal <= 35, Green,
       lblVal <= 45, Yellow,
       lblVal <= 50, Red
    )
)

 

That should give you what you need.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

1 REPLY 1
RandyHayes
Super User III
Super User III

@sajarac 

Sure thing...set the Fill property of the circle to the following formula:

 

With({lblVal: Value(yourLabel.Text)},
    If(lblVal <= 35, Green,
       lblVal <= 45, Yellow,
       lblVal <= 50, Red
    )
)

 

That should give you what you need.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (41,689)