If you make the Tabulate table into a data table, you can then create a new window and use a Table Box() to create your desired output
Data Table from Tabulate
![txnelson_0-1646271462050.png txnelson_0-1646271462050.png](https://community.jmp.com/t5/image/serverpage/image-id/40457i64602BE3FAE944F3/image-size/medium?v=v2&px=400)
Script to generate the Window with the Table Box()
Names Default To Here( 1 );
dt = Current Data Table();
New Window( "table",
tb = Table Box(
String Col Box( "Country", dt:country << get values ),
String Col Box( "size", dt:size << get values ),
Col Span Box(
"Sex",
Col Span Box(
"Female\!nMarital Status",
Number Col Box( "Married", dt:Female Marital Status married << get values ),
Number Col Box( "Single", dt:Female Marital Status single << get values )
),
Col Span Box(
"Male\!nMarital Status",
Number Col Box( "Married", dt:male Marital Status married << get values ),
Number Col Box( "Single", dt:male Marital Status single << get values )
)
)
)
);
What the output looks like
![txnelson_1-1646271613130.png txnelson_1-1646271613130.png](https://community.jmp.com/t5/image/serverpage/image-id/40458i0D82AFF09919AE32/image-size/medium?v=v2&px=400)
Jim