Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dynamic cell colors based on values - Classic Report

Emy_JackMar 15 2013 — edited Mar 17 2013
Hi,
I have a requirement where some of the columns in my classic report should change the color based on the percentage.
I referred the following code:
SELECT e.*,   
CASE     WHEN sal < 1000     THEN 'red'    
             WHEN sal BETWEEN 1000 AND 2000     T
             wHEN 'yellow'    WHEN sal > 2000     THEN 'green'  
END the_color FROM emp e 
But my requirement is quite complicated, I already perform a lot of calculations on the exisiting colums:
ex:
ROUND(((COUNT(CASE WHEN class ='A' THEN 1 END)/
nullif((SUM(CASE WHEN class ='B' THEN 1 END)+ SUM(CASE WHEN class ='C' THEN 1 END)),0))*100),1) as Percentage 
Can someone help me to modify this code for the column, so that the cells (not the rows) in my Classic report changes color dynamically, say when the above code's percentage is >=75 it should be green, less than 50 means red.

Thanks!
This post has been answered by Roel Hartman on Mar 17 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 14 2013
Added on Mar 15 2013
8 comments
1,460 views