Hi @MART1
I am afraid this does not work because "i" is not a macrovariable and you cannot refer directly to each new columns created by the "ACROSS" definition.
Please try this:
proc report data=WORK.TEST nowd;
column (YEAR, (EXPECTED MISSED TOTAL));
define YEAR / across 'YEAR';
define EXPECTED / analysis SUM 'EXP' missing;
define MISSED / analysis SUM 'MISS' missing;
define TOTAL / analysis SUM 'TOT' missing;
compute YEAR;
if (_C1_ + _c2_) = _c3_ then call define('_c3_','style','style={background=lightblue}');
if (_C4_ + _c6_) = _c6_ then call define('_c6_','style','style={background=lightblue}');
if (_C7_ + _c8_) = _c9_ then call define('_c9_','style','style={background=lightblue}');
if (_C10_ + _c11_) = _c12_ then call define('_c12_','style','style={background=lightblue}');
if (_C13_ + _c14_) = _c15_ then call define('_c15_','style','style={background=lightblue}');
if (_C16_ + _c17_) = _c18_ then call define('_c18_','style','style={background=lightblue}');
if (_C19_ + _c20_) = _c21_ then call define('_c21_','style','style={background=lightblue}');
if (_C22_ + _c23_) = _c24_ then call define('_c24_','style','style={background=lightblue}');
endcomp;
run;
... View more