🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 09-27-2017 10:48 AM
(2103 views)
Hi,
Clients wants a merged header row that reads "No. (%)", but I couldn't figure out how.
Here is my code using the Shoes dataset. Thank you!
proc format;
picture paren (round)
low-high = '(009.9%)'
( prefix = '(' mult=1000);
run;
proc tabulate data=sashelp.shoes;
where region in ('Asia', 'Canada') and product in ('Boot');
class product region;
var sales returns stores inventory;
table (region all),
ALL * n
(sales returns inventory stores) * (sum mean * f=paren.)
;
run;
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Try
proc tabulate data=sashelp.shoes; where region in ('Asia', 'Canada') and product in ('Boot'); class product region; var sales returns stores inventory; table (region all), ALL * n All='No.(%)'*(sales returns inventory stores) * (sum mean * f=paren.) ; run;
Tabulate will require a class variable or "all" to create any outer level row or column heading.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Try
proc tabulate data=sashelp.shoes; where region in ('Asia', 'Canada') and product in ('Boot'); class product region; var sales returns stores inventory; table (region all), ALL * n All='No.(%)'*(sales returns inventory stores) * (sum mean * f=paren.) ; run;
Tabulate will require a class variable or "all" to create any outer level row or column heading.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
How are you so brilliant?? Thank you!