A B C
m x 100
m y 200
n x 400
n y 600
用以下小程序我可以控制sum的颜色:
ods html;
proc format;
value colortest low-500='red'
other='green';
run;
proc tabulate data=test;
class a b;
var c;
tables a='',(b='' all*{style={foreground=colortest.}})*c='';
run;
ods html close;
结果如下:
但是,这里颜色format是对所有sum的。我的问题是:如果我想对每个变量A的sum有不同的颜色设置,怎么实现?
比如对a=m,200以下是红,a=n则是500以下是红,等等
先在此谢谢了