<?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 add total row after each category in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-add-total-row-after-each-category/m-p/780379#M248653</link>
    <description>&lt;P&gt;Maxim 6: Google Is Your Friend.&lt;/P&gt;
&lt;P&gt;A search for "sas subtotal proc tabulate" immediately leads to &lt;A href="https://communities.sas.com/t5/SAS-Procedures/Subtotal-on-a-proc-tabulate/td-p/385751" target="_blank" rel="noopener"&gt;this communities post&lt;/A&gt;&amp;nbsp;(first hit), which gives me this solution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.cars  out=want_a1(drop=_type_ _page_ _table_) format=comma21. MISSING;
 class origin   Type   Cylinders ;
 table (origin='Factory Origin' all="Origin Total")*(Type='Type of Car' all='TOTAL'), (Cylinders='Number_Cylinders' )*(n=''*f=comma21.) all='TOTAL' / rts=10  misstext='0';
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Nov 2021 10:21:02 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-11-16T10:21:02Z</dc:date>
    <item>
      <title>Proc tabulate add total row after each category</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-add-total-row-after-each-category/m-p/780374#M248650</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to add a total row after each origin.(There are 3 origins : Asia,Europe ,USA so I need to add 3 total rows)&lt;/P&gt;
&lt;P&gt;What is the way to do it please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.cars  out=want_a1(drop=_type_ _page_ _table_) format=comma21. MISSING;
 class origin   Type   Cylinders ;
 table origin='Factory Origin'*Type='Type of Car' all='TOTAL', (Cylinders='Number_Cylinders' )*(n=''*f=comma21.) all='TOTAL' / rts=10  misstext='0';
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Nov 2021 09:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-add-total-row-after-each-category/m-p/780374#M248650</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2021-11-16T09:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate add total row after each category</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-add-total-row-after-each-category/m-p/780379#M248653</link>
      <description>&lt;P&gt;Maxim 6: Google Is Your Friend.&lt;/P&gt;
&lt;P&gt;A search for "sas subtotal proc tabulate" immediately leads to &lt;A href="https://communities.sas.com/t5/SAS-Procedures/Subtotal-on-a-proc-tabulate/td-p/385751" target="_blank" rel="noopener"&gt;this communities post&lt;/A&gt;&amp;nbsp;(first hit), which gives me this solution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.cars  out=want_a1(drop=_type_ _page_ _table_) format=comma21. MISSING;
 class origin   Type   Cylinders ;
 table (origin='Factory Origin' all="Origin Total")*(Type='Type of Car' all='TOTAL'), (Cylinders='Number_Cylinders' )*(n=''*f=comma21.) all='TOTAL' / rts=10  misstext='0';
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 10:21:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-add-total-row-after-each-category/m-p/780379#M248653</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-16T10:21:02Z</dc:date>
    </item>
  </channel>
</rss>

