假设我有一个包含四个变量的简单表(Company,Profit_January,Profit_February,Profit_March)。
我想将此报告显示为:
其中,Profit_January,Profit_February和Profit_March属于子组Profit。做报告是否可以实现?
答案 0 :(得分:1)
是的,这是可以实现的。在COLUMN语句中,这样做会给你预期的结果:
PROC REPORT DATA=mydata NOWINDOWS;
COLUMN Company ("Profit" Profit_January Profit_February Profit_March);
DEFINE Company / <...> ;
DEFINE Profit_January / DISPLAY "January" ;
DEFINE Profit_February / DISPLAY "February" ;
<etc.>
RUN;