Hi, this should be easy - or so I thought. I want to compare 2 cells, and highlight one of them if it is larger then the second. For example, I want to highlight the weight if it is higher then the max weight. Product Weight MaxWeight A 4 5 A 6 5 B 3 4 3 4 3 C 7 3 Here is what I have as code, that does not work - I'm not sure how to use the compute block to create a different style: proc report data=work.data nowd; column product weight maxweight; define weight / computed ; compute weight; if weight < maxweight then do; call define('Weight','style','style={background=White}'); end; else if weight> maxweight then do; call define('Weight','style','style={background=yellow}'); end; endcomp; run; I think I need to take a class on Proc Report. Thanks for your help!
... View more