I have a proc tab below
proc tabulate data=WORK.HRIR99991 missing contents = ' ' S=[foreground=highlight.];
class BUSINESS_UNIT_DESC GENDER_CODE DEPARTMENT_DESC;
var fte;
keylabel Sum = " ";
table BUSINESS_UNIT_DESC='FTE Count' * fte * sum ALL*fte /
contents = ' ' misstext=' ' box={label="&boxlabel"} style=[font_weight=bold];
run;
what I want is the final column the ALL
*fte to show up bolded I cannot seem to figure out how to use style=[font_weight=bold] to affexct that last column
table BUSINESS_UNIT_DESC='FTE Count' * fte * sum ALL*fte * sum*{style=[font_weight=bold]}
table BUSINESS_UNIT_DESC='FTE Count' * fte * sum ALL*fte * sum*{style=[font_weight=bold]}
hey thanks but i dont really understand the syntax i tried applying it to a different proc tab below with no luck can you explain that syntax a bit.
proc tabulate data=WORK.HRIR99991 missing contents = ' ' S=[foreground=highlight.];
class BUSINESS_UNIT_DESC GENDER_CODE DEPARTMENT_DESC;
var fte;
keylabel Sum = " ";
table BUSINESS_UNIT_DESC='Record Count (Some user have multiple records)' * N='Count' ALL*N=Count * N*{style=[font_weight=bold]} /
contents = ' ' misstext=' ' box={label="&boxlabel"};
run;
You should be getting syntax errors because you are nesting N with N and have Count without quotes.
The basic idea is the style is applied to an element that appears in the table. For CLASS varaibles using the CLASSLEV is best.
When you want a statistics such as N, SUM, Mean appearance modified then the style goes after the statistic.
As you wrote:
ALL*N=Count * N*{style=[font_weight=bold]}
Probably mean
ALL*N="Count" *{style=[font_weight=bold]}
Tabulate also has a heirarchy on how to apply style elements when row and column both have style specifications. You may need to set Style_precedence=ROW in the table options after the / .
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.