<?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: Group by and Sum only if value greater than a specific value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Group-by-and-Sum-only-if-value-greater-than-a-specific-value/m-p/294170#M61344</link>
    <description>&lt;P&gt;Then add the line after your FROM statement.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2016 19:53:33 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-08-25T19:53:33Z</dc:date>
    <item>
      <title>Group by and Sum only if value greater than a specific value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Group-by-and-Sum-only-if-value-greater-than-a-specific-value/m-p/294156#M61339</link>
      <description>&lt;P&gt;I have the below sample datalike&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Product&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Subsidiary&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Stores&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Boot&lt;/TD&gt;&lt;TD&gt;Addis Ababa&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;$29,761&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Men's Casual&lt;/TD&gt;&lt;TD&gt;Addis Ababa&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;$67,242&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Men's Dress&lt;/TD&gt;&lt;TD&gt;Addis Ababa&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;$76,793&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sandal&lt;/TD&gt;&lt;TD&gt;Addis Ababa&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;$62,819&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Slipper&lt;/TD&gt;&lt;TD&gt;Addis Ababa&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;TD&gt;$68,641&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sport Shoe&lt;/TD&gt;&lt;TD&gt;Addis Ababa&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;$1,690&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Women's Casual&lt;/TD&gt;&lt;TD&gt;Addis Ababa&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;$51,541&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Women's Dress&lt;/TD&gt;&lt;TD&gt;Addis Ababa&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;$108,942&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Boot&lt;/TD&gt;&lt;TD&gt;Algiers&lt;/TD&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;TD&gt;$21,297&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to Group by data basis the Product but only for Subsidiaries where count of stores is &amp;gt; 10. Then I want Group by of Product with count of such store and total sales from such Products&amp;nbsp;(where store count is &amp;gt;10).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to do this in SAS?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 19:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Group-by-and-Sum-only-if-value-greater-than-a-specific-value/m-p/294156#M61339</guid>
      <dc:creator>ankush23</dc:creator>
      <dc:date>2016-08-25T19:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Group by and Sum only if value greater than a specific value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Group-by-and-Sum-only-if-value-greater-than-a-specific-value/m-p/294158#M61340</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHERE Stores &amp;gt; 10&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can be added to a SQL or PROC or Data step query. Which one are you intending to use?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 19:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Group-by-and-Sum-only-if-value-greater-than-a-specific-value/m-p/294158#M61340</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-25T19:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Group by and Sum only if value greater than a specific value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Group-by-and-Sum-only-if-value-greater-than-a-specific-value/m-p/294166#M61342</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add this to the Proc SQL&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 19:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Group-by-and-Sum-only-if-value-greater-than-a-specific-value/m-p/294166#M61342</guid>
      <dc:creator>ankush23</dc:creator>
      <dc:date>2016-08-25T19:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Group by and Sum only if value greater than a specific value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Group-by-and-Sum-only-if-value-greater-than-a-specific-value/m-p/294167#M61343</link>
      <description>HI Reeza I want to add this inside the Proc Sql code</description>
      <pubDate>Thu, 25 Aug 2016 19:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Group-by-and-Sum-only-if-value-greater-than-a-specific-value/m-p/294167#M61343</guid>
      <dc:creator>ankush23</dc:creator>
      <dc:date>2016-08-25T19:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Group by and Sum only if value greater than a specific value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Group-by-and-Sum-only-if-value-greater-than-a-specific-value/m-p/294170#M61344</link>
      <description>&lt;P&gt;Then add the line after your FROM statement.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 19:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Group-by-and-Sum-only-if-value-greater-than-a-specific-value/m-p/294170#M61344</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-25T19:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Group by and Sum only if value greater than a specific value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Group-by-and-Sum-only-if-value-greater-than-a-specific-value/m-p/294190#M61351</link>
      <description>&lt;P&gt;Thank you Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its working, I got the mistake I was doing. Was adding where statement after Group By.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankush&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 20:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Group-by-and-Sum-only-if-value-greater-than-a-specific-value/m-p/294190#M61351</guid>
      <dc:creator>ankush23</dc:creator>
      <dc:date>2016-08-25T20:42:01Z</dc:date>
    </item>
  </channel>
</rss>

