<?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 and summing measures in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-and-summing-measures/m-p/350677#M81535</link>
    <description>&lt;P&gt;Can you provide some sample data? It's much easier to play around with the problem if there's something concrete to work on.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2017 00:10:44 GMT</pubDate>
    <dc:creator>LaurieF</dc:creator>
    <dc:date>2017-04-18T00:10:44Z</dc:date>
    <item>
      <title>Proc Tabulate and summing measures</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-and-summing-measures/m-p/350671#M81533</link>
      <description>&lt;P&gt;I have 2 Proc tabulates where I am trying to show 2 different measure summed over different acacdemic year terms basically i am trying to sum in one&lt;/P&gt;
&lt;P&gt;-the Tuition from each&amp;nbsp;ALLOCATED_COLLEGE/SUBJECT_DESC for each column TERM_CODE &amp;nbsp;&lt;/P&gt;
&lt;P&gt;-the Student count for each&amp;nbsp;&lt;SPAN&gt;ALLOCATED_COLLEGE/SUBJECT_DESC for each column TERM_CODE &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IE I have change the VAR for each but they still sum exactly the same ...any suggestions?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the output from below can be seen in the attached pdf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=ROBM.TBIR1025 missing contents = ' ' format=COMMA6.0 S=[foreground=highlight.];
class ALLOCATED_COLLEGE SUBJECT_DESC TERM_CODE;
var INCLUDED_TUITION;
keylabel Sum = " ";
table (ALLOCATED_COLLEGE =' ') *(SUBJECT_DESC=' ' all='Total') all='Total', ((TERM_CODE=' ' all='Total')*((N=Amount))) /
contents = ' ' misstext=' ' box={label="ALLOCATED_COLLEGE/SUBJECT_DESC"};
run;
&amp;nbsp;
proc tabulate data=ROBM.TBIR1025 missing contents = ' ' format=COMMA6.0 S=[foreground=highlight.];
class ALLOCATED_COLLEGE 'SUBJECT_DESC'n 'TERM_CODE'n;
var STUDENT_COUNT;
keylabel Sum = " ";
table (ALLOCATED_COLLEGE =' ') *(SUBJECT_DESC=' ' all='Total') all='Total', ((TERM_CODE=' ' all='Total')*((N=Count))) /
contents = ' ' misstext=' ' box={label="ALLOCATED_COLLEGE/SUBJECT_DESC"};&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 23:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-and-summing-measures/m-p/350671#M81533</guid>
      <dc:creator>robm</dc:creator>
      <dc:date>2017-04-17T23:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate and summing measures</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-and-summing-measures/m-p/350677#M81535</link>
      <description>&lt;P&gt;Can you provide some sample data? It's much easier to play around with the problem if there's something concrete to work on.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 00:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-and-summing-measures/m-p/350677#M81535</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-04-18T00:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate and summing measures</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-and-summing-measures/m-p/350681#M81539</link>
      <description>&lt;P&gt;You will have to learn a little more PROC TABULATE, I'm afraid. &amp;nbsp;You have never asked for the SUM of anything. &amp;nbsp;You only asked for the N statistic, which gives you a count of the nonmissing values. &amp;nbsp;So the count of the nonmissing values doesn't change. &amp;nbsp;You're allowed to ask for many different statistical measures, but you only get what you ask for.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 01:21:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-and-summing-measures/m-p/350681#M81539</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-04-18T01:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate and summing measures</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-and-summing-measures/m-p/350689#M81541</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you aew right I building these of a EBI server&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  proc tabulate data=ROBM.TABBS99991 missing contents = ' ' format=COMMA6.0 S=[foreground=highlight.];
   class &amp;amp;showvarvalue &amp;amp;showvarvalue1 &amp;amp;acrossvarvalue;
   var &amp;amp;measurevar;
   keylabel Sum = " ";
   table &amp;amp;showby1exp &amp;amp;showby2exp &amp;amp;showvarall, (&amp;amp;acrossexp(&amp;amp;measureexp)) /
                  contents = ' ' misstext=' ' box={label="&amp;amp;boxlabel"};
  run;
&lt;/PRE&gt;
&lt;P&gt;and (&amp;amp;acrossexp(&amp;amp;measureexp)) should have just been (&amp;amp;measurevar)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  proc tabulate data=ROBM.TABBS99991 missing contents = ' ' format=COMMA6.0 S=[foreground=highlight.];
   class &amp;amp;showvarvalue &amp;amp;showvarvalue1 &amp;amp;acrossvarvalue;
   var &amp;amp;measurevar;
   keylabel Sum = " ";
   table &amp;amp;showby1exp &amp;amp;showby2exp &amp;amp;showvarall, (&amp;amp;measurevar) /
                  contents = ' ' misstext=' ' box={label="&amp;amp;boxlabel"};
  run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  proc tabulate data=ROBM.TBIR1025 missing contents = ' ' format=COMMA6.0 S=[foreground=highlight.];
   class 'ALLOCATED_COLLEGE'n 'SUBJECT_DESC'n 'TERM_CODE'n;
   var STUDENT_COUNT;
   keylabel Sum = " ";
   table ('ALLOCATED_COLLEGE'n =' ') *('SUBJECT_DESC'n=' ' all='Total') all='Total', (('TERM_CODE'n=' ' all='Total')*((STUDENT_COUNT))) /
                  contents = ' ' misstext=' ' box={label="ALLOCATED_COLLEGE/SUBJECT_DESC"};
  run;


  proc tabulate data=ROBM.TBIR1025 missing contents = ' ' format=COMMA6.0 S=[foreground=highlight.];
   class 'ALLOCATED_COLLEGE'n 'SUBJECT_DESC'n 'TERM_CODE'n;
   var INCLUDED_TUITION;
   keylabel Sum = " ";
  table (ALLOCATED_COLLEGE = ' ') *(SUBJECT_DESC = ' ' all = 'Total') all='Total', ((TERM_CODE = ' ' all = 'Total')*((INCLUDED_TUITION))) /
                  contents = ' ' misstext=' ' box={label = "ALLOCATED_COLLEGE/SUBJECT_DESC"};
  run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 02:19:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-and-summing-measures/m-p/350689#M81541</guid>
      <dc:creator>robm</dc:creator>
      <dc:date>2017-04-18T02:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate and summing measures</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-and-summing-measures/m-p/350709#M81552</link>
      <description>Can we now assume that you are getting what you want?</description>
      <pubDate>Tue, 18 Apr 2017 05:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-and-summing-measures/m-p/350709#M81552</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2017-04-18T05:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate and summing measures</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-and-summing-measures/m-p/350836#M81612</link>
      <description>&lt;P&gt;yup sorry I should have spent more time examining and understanding my PROC TABULATE&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 13:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-and-summing-measures/m-p/350836#M81612</guid>
      <dc:creator>robm</dc:creator>
      <dc:date>2017-04-18T13:20:32Z</dc:date>
    </item>
  </channel>
</rss>

