IF {#D1-LAST HOMICIDE}= 0 THEN "N/C" ELSE IF {#D1-LAST HOMICIDE}<> 0 THEN ({#D1-HOMICIDE}-{#D1-LAST HOMICIDE})/{#D1-LAST HOMICIDE}*100 & "%"
I have yet to see less than 0 turn green and N/C always turns red. Basically I want all positive numbers to be red and all negative numbers to be green and everything else (N/C and 0%) to be black.
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 13 Jun 2012 at 9:20am
THe formula was not for display but to return a numeric value so you can use the <,= and > options for color coding. You can still use your original fomrula for siplay and referenc this new fomrula only for coloring.
Joined: 08 Jun 2012
Online Status: Offline
Posts: 18
Posted: 13 Jun 2012 at 9:58am
I ended up using:
if {#D1-LAST HOMICIDE}=0 then crblack else if (({#D1-HOMICIDE}-{#D1-LAST HOMICIDE})%{#D1-LAST HOMICIDE})>0 then crred else if (({#D1-HOMICIDE}-{#D1-LAST HOMICIDE})%{#D1-LAST HOMICIDE})<0 then crlime else crblack
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum