cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Changing a circles color based on statistics

Hi there, 

 

I've been trying a few things out to change the color of a circle based on a number. My code doesnt work and looks like this: 

If ( Omzet <= 3999, "#FF000", Omzet >= 4000, "#32CD32")

Omzet is the field with a number in it. Can anyone help?

 

Musky

4 REPLIES 4
Highlighted
Community Champion
Community Champion

hi

Can you just use
- Color.Red or others to replace the code?
Have a nice day.
hpkeong
Highlighted

Thanks for replying hpkeong,

I've tried this and I got this error:

 ErrorPowerApps.png

I placed this code in the "Fill" option from the circle. Is this even possible to put code in there?
Thanks in advance,

Musky

Highlighted
Community Champion
Community Champion

Hi

 

Can you look at this screenshot?

Meantime, ColorValue( "#f0f8ff" ) is the correct code (if you wish to use Hex Code)

 

try on both Color.Green & Hex Codetry on both Color.Green & Hex Code

hpkeong
Highlighted

Hey hpkeong,

 

I've got it to work right now, thanks alot for the help, it really helped. The final outcome:
If (ThisItem.Omzet <= 3999, Color.Red, Color.Green)

(**I didnt even call the "omzet" in the first code I posted here, because of the ThisItem I suppose**) Can u tell me if I'm right?

 

Musky~ 

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,320)