I can't see any photo. Have you checked the docs of proc tabulate? If it is possible to prevent merging, i am sure you will find the option in the docs.
Also post the code you used.
Please post the source dataset (data step with datalines), the code you used, and an example for the expected result (we can easily recreate your current result by running your code on your data).
I think you are asking about the merged cells in the first row.
This happens because the labels for the row dimension classes are shown there
The table option NOCELLMERGE puts the row dimension labels in a separate row. However, this is often also not desired, and you will end up modifying the table statement more -- delabeling the row row header and placing the label in the upper left hand box. This is done using <class>='' and / box="<class>" in the table statement.
Example:
proc format;
picture MBT (fuzz=0)
1E03-<1000000='0000 ' (prefix='' mult=.001)
;
run;
ods html5 file='tabulate.html';
title "Default TABULATE";
proc tabulate data=sashelp.shoes;
class region product ;
var sales;
label Sales = 'Sales $(,000)';
table
product
,
sales*sum=''*f=MBT. * region
;
where region <= 'Canada' and product < 'S';
run;
title "NOCELLMERGE";
proc tabulate data=sashelp.shoes;
class region product ;
var sales;
label Sales = 'Sales $(,000)';
table
product
,
sales*sum=''*f=MBT. * region
/
NOCELLMERGE /* prevent the first row cell merging */
;
where region <= 'Canada' and product < 'S';
run;
title "NO Row dim header and BOX";
proc tabulate data=sashelp.shoes;
class region product ;
var sales;
label Sales = 'Sales $(,000)';
table
product='' /* ='' removes row dim header */
,
sales*sum=''*f=MBT. * region
/
BOX=[label='Product' style=[VerticalAlign=bottom]] /* manually enter removed row dim header in the 'BOX' cell */
;
where region <= 'Canada' and product < 'S';
run;
ods html close;
Output:
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.