<?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: Exclude Column from Total in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Exclude-Column-from-Total/m-p/40562#M10500</link>
    <description>You'll have to do your tweaked sum before hand I am afraid, as in:&lt;BR /&gt;
[pre]proc summary data=sashelp.class nway noprint;&lt;BR /&gt;
  class AGE;&lt;BR /&gt;
  output out=CLASS;&lt;BR /&gt;
run;&lt;BR /&gt;
data TAB;&lt;BR /&gt;
  set CLASS;&lt;BR /&gt;
  if AGE &amp;lt;14 then TOT+_FREQ_;&lt;BR /&gt;
  label TOT= 'Total for &amp;lt;14';&lt;BR /&gt;
run;  &lt;BR /&gt;
proc tabulate data=TAB;&lt;BR /&gt;
  var TOT _FREQ_;&lt;BR /&gt;
  class AGE;&lt;BR /&gt;
  table (AGE all='Total')*_FREQ_=''*sum=''*f=2.0 TOT*max='';&lt;BR /&gt;
run;</description>
    <pubDate>Thu, 04 Jun 2009 02:41:27 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2009-06-04T02:41:27Z</dc:date>
    <item>
      <title>Proc Tabulate: Exclude Column from Total</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Exclude-Column-from-Total/m-p/40561#M10499</link>
      <description>Hi, I'm using a fairly simple code to make a cross-tabulation table with grades 1 to 5 (pre-adjustment grades) down the side against grades 1 to 5 and 'Exclusions' (post-adjustment grades) across the top as follows:&lt;BR /&gt;
&lt;BR /&gt;
proc tabulate data=work.current;&lt;BR /&gt;
  class before_adjustment after_adjustment /order=data;&lt;BR /&gt;
  classlev before_adjustment after_adjustment /s=[background=white];&lt;BR /&gt;
  table Before_Adjustment=' ' all={ label='Total' s=[background=vligb]}, &lt;BR /&gt;
       N=' '*(After_Adjustment='Period 2 - Current' all={ label='Total' s=background=vligb]})*F=comma12./RTS=10. &lt;BR /&gt;
	box='Period 1 Previous' misstext=' ';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
The thing is, one of the columns on my table is called 'Exclusions' and I would like these figures excluded from the Total (or 'all') at the end of the table.&lt;BR /&gt;
Does anyone know of any way of doing this?&lt;BR /&gt;
&lt;BR /&gt;
Any help greatly appreciated!</description>
      <pubDate>Wed, 03 Jun 2009 09:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Exclude-Column-from-Total/m-p/40561#M10499</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-03T09:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate: Exclude Column from Total</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Exclude-Column-from-Total/m-p/40562#M10500</link>
      <description>You'll have to do your tweaked sum before hand I am afraid, as in:&lt;BR /&gt;
[pre]proc summary data=sashelp.class nway noprint;&lt;BR /&gt;
  class AGE;&lt;BR /&gt;
  output out=CLASS;&lt;BR /&gt;
run;&lt;BR /&gt;
data TAB;&lt;BR /&gt;
  set CLASS;&lt;BR /&gt;
  if AGE &amp;lt;14 then TOT+_FREQ_;&lt;BR /&gt;
  label TOT= 'Total for &amp;lt;14';&lt;BR /&gt;
run;  &lt;BR /&gt;
proc tabulate data=TAB;&lt;BR /&gt;
  var TOT _FREQ_;&lt;BR /&gt;
  class AGE;&lt;BR /&gt;
  table (AGE all='Total')*_FREQ_=''*sum=''*f=2.0 TOT*max='';&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 04 Jun 2009 02:41:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Exclude-Column-from-Total/m-p/40562#M10500</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-06-04T02:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate: Exclude Column from Total</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Exclude-Column-from-Total/m-p/40563#M10501</link>
      <description>Ok, thanks for your help!</description>
      <pubDate>Thu, 04 Jun 2009 11:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-Exclude-Column-from-Total/m-p/40563#M10501</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-04T11:08:24Z</dc:date>
    </item>
  </channel>
</rss>

