<?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: How to summarize a table with the query builder? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-summarize-a-table-with-the-query-builder/m-p/87307#M8256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guessing that you grouped by too many variables.&amp;nbsp; You want to group only by Client_ID, and not by date_to_pay, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you copy the non-summarized columns to the query output, the Query Builder lumps them in with the "Automatic select groups" results.&amp;nbsp; It's probably best if you design this query with just two outputs: Client_ID and the column(s) you want to summarize at the Client_ID level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to use this summarized result for another more complete result, you can Join it back with the detail data as needed, or perhaps your scenario falls into this situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2012/09/18/having-clause-fun-with-sas-enterprise-guide/" title="http://blogs.sas.com/content/sasdummy/2012/09/18/having-clause-fun-with-sas-enterprise-guide/"&gt; HAVING (clause) fun with SAS Enterprise Guide - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2012 19:02:45 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2012-10-05T19:02:45Z</dc:date>
    <item>
      <title>How to summarize a table with the query builder?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-summarize-a-table-with-the-query-builder/m-p/87306#M8255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to summarize information that i have by client ID. I have a variable number of rows per client ID, so what i want is to get total by client variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i condense my database to obtain an only Client ID per row? I don't mind losing the date format columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using the Query Builder, i summarize and select by group "ClientID" but my variables became a constant sum next to the same number of rows per client ID as shown below. The values are correct but they self repeat to the number of ClientID rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Client ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date_to_pay&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum_a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum_b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pay_date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; number_week_pay&lt;/P&gt;&lt;P&gt;153495806&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30NOV2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $19,071.82&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $12,498.63&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01DEC2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.1066666667&lt;/P&gt;&lt;P&gt;153495806&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15DEC2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $19,071.82&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $12,498.63&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17DEC2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.1066666667&lt;/P&gt;&lt;P&gt;153495806&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31DEC2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $19,071.82&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $12,498.63&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14JAN2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.1066666667&lt;/P&gt;&lt;P&gt;153981795&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31DEC2008&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $8,708.31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $7,628.09&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 05JAN2009&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.1860465116&lt;/P&gt;&lt;P&gt;153981795&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15JAN2009&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $8,708.31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $7,628.09&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16JAN2009&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.1860465116&lt;/P&gt;&lt;P&gt;153981795&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31JAN2009&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $8,708.31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $7,628.09&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16JAN2009&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.1860465116&lt;/P&gt;&lt;P&gt;154499681&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31JAN2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $3,802.16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $2,654.33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31JAN2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.2916666667&lt;/P&gt;&lt;P&gt;154499681&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30APR2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $3,802.16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $2,654.33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01MAY2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.2916666667&lt;/P&gt;&lt;P&gt;154499681&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30JUN2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $3,802.16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $2,654.33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06AUG2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.2916666667&lt;/P&gt;&lt;P&gt;154499681&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15JUL2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $3,802.16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $2,654.33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06AUG2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.2916666667&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I would appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 18:43:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-summarize-a-table-with-the-query-builder/m-p/87306#M8255</guid>
      <dc:creator>CesarOmarHR</dc:creator>
      <dc:date>2012-10-05T18:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize a table with the query builder?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-summarize-a-table-with-the-query-builder/m-p/87307#M8256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guessing that you grouped by too many variables.&amp;nbsp; You want to group only by Client_ID, and not by date_to_pay, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you copy the non-summarized columns to the query output, the Query Builder lumps them in with the "Automatic select groups" results.&amp;nbsp; It's probably best if you design this query with just two outputs: Client_ID and the column(s) you want to summarize at the Client_ID level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to use this summarized result for another more complete result, you can Join it back with the detail data as needed, or perhaps your scenario falls into this situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2012/09/18/having-clause-fun-with-sas-enterprise-guide/" title="http://blogs.sas.com/content/sasdummy/2012/09/18/having-clause-fun-with-sas-enterprise-guide/"&gt; HAVING (clause) fun with SAS Enterprise Guide - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 19:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-summarize-a-table-with-the-query-builder/m-p/87307#M8256</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2012-10-05T19:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize a table with the query builder?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-summarize-a-table-with-the-query-builder/m-p/87308#M8257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Chris, that was exactly the issue. It all worked fine, i appreciate the quick response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 21:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-summarize-a-table-with-the-query-builder/m-p/87308#M8257</guid>
      <dc:creator>CesarOmarHR</dc:creator>
      <dc:date>2012-10-05T21:09:20Z</dc:date>
    </item>
  </channel>
</rss>

