cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Musky
Level: Power Up

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
hpkeong
Level 10

Re: Changing a circles color based on statistics

hi

Can you just use
- Color.Red or others to replace the code?
Have a nice day.
hpkeong
Musky
Level: Power Up

Re: Changing a circles color based on statistics

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

hpkeong
Level 10

Re: Changing a circles color based on statistics

Hi

 

Can you look at this screenshot?

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

 

Screenshot (330).pngtry on both Color.Green & Hex Code

hpkeong
Musky
Level: Power Up

Re: Changing a circles color based on statistics

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (5,229)