<?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: Summary table of    :  sum(value)/N    How to ? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Summary-table-of-sum-value-N-How-to/m-p/32066#M4224</link>
    <description>You can use the Query Builder to create a calculated column (or two) based on is_yes.  SUM, AVG, COUNT DISTINCT are all built-in summarizations.&lt;BR /&gt;
&lt;BR /&gt;
The Query Builder (in 4.2 and later) will automatically group the results by the remaining column (Month), so your result with have the summarized answers, one record per Month value.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
    <pubDate>Thu, 11 Nov 2010 17:01:23 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2010-11-11T17:01:23Z</dc:date>
    <item>
      <title>Summary table of    :  sum(value)/N    How to ?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Summary-table-of-sum-value-N-How-to/m-p/32065#M4223</link>
      <description>I have table that I want to create summary value that I can easily do in Excel Pivot table .. but how can I acheive this goal in Enterprise guide ?&lt;BR /&gt;
&lt;BR /&gt;
Month  is_yes   &lt;BR /&gt;
a           1&lt;BR /&gt;
a           0&lt;BR /&gt;
a           1&lt;BR /&gt;
b           1&lt;BR /&gt;
b           0&lt;BR /&gt;
&lt;BR /&gt;
how can I create table summary of &lt;BR /&gt;
&lt;BR /&gt;
Month      is_yes_by_month   N(count)&lt;BR /&gt;
a             33.33%                  3&lt;BR /&gt;
b             50%                      2</description>
      <pubDate>Wed, 10 Nov 2010 22:38:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Summary-table-of-sum-value-N-How-to/m-p/32065#M4223</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-10T22:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Summary table of    :  sum(value)/N    How to ?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Summary-table-of-sum-value-N-How-to/m-p/32066#M4224</link>
      <description>You can use the Query Builder to create a calculated column (or two) based on is_yes.  SUM, AVG, COUNT DISTINCT are all built-in summarizations.&lt;BR /&gt;
&lt;BR /&gt;
The Query Builder (in 4.2 and later) will automatically group the results by the remaining column (Month), so your result with have the summarized answers, one record per Month value.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Thu, 11 Nov 2010 17:01:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Summary-table-of-sum-value-N-How-to/m-p/32066#M4224</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2010-11-11T17:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Summary table of    :  sum(value)/N    How to ?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Summary-table-of-sum-value-N-How-to/m-p/32067#M4225</link>
      <description>Hello IamJeannie,&lt;BR /&gt;
&lt;BR /&gt;
If you are not against coding and SQL in EG, you can use the following code:&lt;BR /&gt;
[Pre]&lt;BR /&gt;
data a;&lt;BR /&gt;
  input Month $1 Is_Yes;&lt;BR /&gt;
  datalines;&lt;BR /&gt;
a 1&lt;BR /&gt;
a 0&lt;BR /&gt;
a 1&lt;BR /&gt;
b 1&lt;BR /&gt;
b 0&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
/* Result */;&lt;BR /&gt;
proc SQL;&lt;BR /&gt;
  create table r as&lt;BR /&gt;
  select Month, 1-SUM(Is_Yes)/COUNT(*) as Is_Yes_by_Month   format=Percent7.2,&lt;BR /&gt;
  COUNT(*) as N&lt;BR /&gt;
  from a&lt;BR /&gt;
  group by Month&lt;BR /&gt;
;quit; &lt;BR /&gt;
[/Pre]&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
      <pubDate>Fri, 12 Nov 2010 14:56:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Summary-table-of-sum-value-N-How-to/m-p/32067#M4225</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2010-11-12T14:56:19Z</dc:date>
    </item>
  </channel>
</rss>

