I am trying to conditionally format several columns but it seems like the entire row is color coded based on the last dbr.rowclass. Makes sense but how do i only highlight single cells in a row based on a value set
ie:
select 'dbr.colclass', 7, 'highlightcol';
select 'dbr.rowclass', 24;
select 'dbr.colclass', 9, 'highlightcol';
select 'dbr.rowclass', 25;
select 'dbr.colclass', 12, 'highlightcol';
select 'dbr.rowclass', 26;
select 'dbr.colclass', 14, 'highlightcol';
select 'dbr.rowclass', 27;
select 'dbr.colclass', 17, 'highlightcol';
select 'dbr.rowclass', 28;
select 'dbr.colclass', 19, 'highlightcol';
select 'dbr.rowclass', 29;
all of my columns using dbr.colclass are formatted red or green based on my last use of rowclass. (select 'dbr.rowclass', 29;)
Does that make sense?
and these are the appropriate rowclasss columns:
/*row 24*/
, case
when ((sum(deals) / sum(web_of_120 + inbound_120_sec + outbound_120_sec + queue_60_sec)) * 100) > 5 then 'colormegreen'
when ((sum(deals) / sum(web_of_120 + inbound_120_sec + outbound_120_sec + queue_60_sec)) * 100) < 5 then 'colormered'
else ''
end
/*row 25*/
, case
when ((sum(backouts)/sum(deals)) * 100) > 20 then 'colormered'
when ((sum(backouts)/sum(deals)) * 100) < 15 then 'colormegreen'
else ''
end
/*row 26*/
, case
when (sum(overflow + web)) > 91 then 'colormegreen'
when (sum(overflow + web)) < 91 then 'colormered'
else ''
end
/*row 27*/
, case
when ((sum(web_of_120 + inbound_120_sec + outbound_120_sec)/sum(overflow + web))*100) > 60 then 'colormegreen'
when ((sum(web_of_120 + inbound_120_sec + outbound_120_sec)/sum(overflow + web))*100) < 60 then 'colormered'
else ''
end
/*row 28*/
, case
when ((sum(over_18_mo)/sum(b.sumdeal))*100) < 35 then 'colormegreen'
when ((sum(over_18_mo)/sum(b.sumdeal))*100) >35 then 'colormered'
else ''
end
/*row 29*/
, case
when ((sum(b.sumdp)/sum(b.sumcc))*100) > 8 then 'colormegreen'
when ((sum(b.sumdp)/sum(b.sumcc))*100) < 8 then 'colormered'
else ''
end