Click to See Complete Forum and Search --> : very urgent plsssssss.......


konikara
July 12th, 2005, 07:59 AM
DECODE(SIGN(TEST_RAG_BTNET.R-(0.2*50)),-1, '<p style="BACKGROUND-COLOR: GREEN"> ' || TEST_RAG_BTNET.R || ' </p>',(DECODE(SIGN(TEST_RAG_BTNET.R-(0.5*50)),-1,'<p style="BACKGROUND-COLOR: RED"> ' || TEST_RAG_BTNET.R || ' </p>','<p style="BACKGROUND-COLOR:#FFFF00"> ' || TEST_RAG_BTNET.R || ' </p>')))


TEST_RAG_BTNET- table name

R is the column name

0.2 *50 is to take 20% of 50

have to write a decode statement in which.. if the data is greter than 50% data should be in red color..and if grater tahn 80 .. blue and less tahn 50 then green

this happens perfectly..

but if the data is dot 50% .. it shows red
but i want it in green
this is my problem

NatThoelecke
July 14th, 2005, 12:12 PM
It appears you have set things up so your default color is red. So, you can try adding a special condition where if exactly 50% set color to green, or amend you comparison for green to be a less than or equal comparison.