<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: proc tabulate - remove subtotal heading (keeping top header) in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-remove-subtotal-heading-keeping-top-header/m-p/645623#M24032</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The best you can do with TABULATE is to move the row headers (Age/Name) up into the Box on the left side of the top of the table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1588777078572.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39107i28088B2CE57DC7D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1588777078572.png" alt="Cynthia_sas_1-1588777078572.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You might like the look and feel of PROC REPORT better:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1588777047172.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39106i3FAEC92F02631B8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1588777047172.png" alt="Cynthia_sas_0-1588777047172.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's the code for PROC REPORT vs the BOX approach with TABULATE:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.class;
class age name;
var Weight;
table age=' '*(name=' ' all='all name'*[style=[background=lightblue]]) all='all age', 
      Weight / box='Age and Name';
run;

proc report data=sashelp.class
  style(summary)=Header;
  column age name weight;
  define age / order style(column)=Header;
  define name / order style(column)=Header;
  define weight / sum;
  break after age/summarize;
  compute after age;
    name='Name Tot';
	line ' ';
  endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2020 14:58:54 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2020-05-06T14:58:54Z</dc:date>
    <item>
      <title>proc tabulate - remove subtotal heading (keeping top header)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-remove-subtotal-heading-keeping-top-header/m-p/645612#M24031</link>
      <description>&lt;P&gt;Is there a way to remove only the repeating sub headings [red arrow] - (while still keeping&amp;nbsp;the first heading [blue arrow])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tabulate row heading.png" style="width: 168px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39102i7D0543AF52565D15/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tabulate row heading.png" alt="Tabulate row heading.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sample code to produce the output above&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.class;
class age name;
var Weight;

table age*(name all='all name'*[style=[background=lightblue]]) all='all age', Weight;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To get something like this with only a top header and no header for each subtotal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GertNissen_0-1588775177325.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39103iA9F5F0A117211EA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GertNissen_0-1588775177325.png" alt="GertNissen_0-1588775177325.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 14:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-remove-subtotal-heading-keeping-top-header/m-p/645612#M24031</guid>
      <dc:creator>GertNissen</dc:creator>
      <dc:date>2020-05-06T14:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate - remove subtotal heading (keeping top header)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-remove-subtotal-heading-keeping-top-header/m-p/645623#M24032</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The best you can do with TABULATE is to move the row headers (Age/Name) up into the Box on the left side of the top of the table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1588777078572.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39107i28088B2CE57DC7D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1588777078572.png" alt="Cynthia_sas_1-1588777078572.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You might like the look and feel of PROC REPORT better:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1588777047172.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39106i3FAEC92F02631B8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1588777047172.png" alt="Cynthia_sas_0-1588777047172.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's the code for PROC REPORT vs the BOX approach with TABULATE:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.class;
class age name;
var Weight;
table age=' '*(name=' ' all='all name'*[style=[background=lightblue]]) all='all age', 
      Weight / box='Age and Name';
run;

proc report data=sashelp.class
  style(summary)=Header;
  column age name weight;
  define age / order style(column)=Header;
  define name / order style(column)=Header;
  define weight / sum;
  break after age/summarize;
  compute after age;
    name='Name Tot';
	line ' ';
  endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 14:58:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-tabulate-remove-subtotal-heading-keeping-top-header/m-p/645623#M24032</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-05-06T14:58:54Z</dc:date>
    </item>
  </channel>
</rss>

