<?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 average rate growth of sales for each branch by year wise. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/average-rate-growth-of-sales-for-each-branch-by-year-wise/m-p/149651#M29564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data like this&lt;/P&gt;&lt;P&gt;Branch year sales &lt;/P&gt;&lt;P&gt;india 2009 1mn&lt;/P&gt;&lt;P&gt;india 2010 1.2mn&lt;/P&gt;&lt;P&gt;nepal 2008 0.5mn&lt;/P&gt;&lt;P&gt;nepal 2009 1mn&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;like that i have many countries&lt;/P&gt;&lt;P&gt;i want , average rate of growth of sales for each branch by year wise. Please suggest some logics.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Dec 2014 11:17:31 GMT</pubDate>
    <dc:creator>kumarK</dc:creator>
    <dc:date>2014-12-14T11:17:31Z</dc:date>
    <item>
      <title>average rate growth of sales for each branch by year wise.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/average-rate-growth-of-sales-for-each-branch-by-year-wise/m-p/149651#M29564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data like this&lt;/P&gt;&lt;P&gt;Branch year sales &lt;/P&gt;&lt;P&gt;india 2009 1mn&lt;/P&gt;&lt;P&gt;india 2010 1.2mn&lt;/P&gt;&lt;P&gt;nepal 2008 0.5mn&lt;/P&gt;&lt;P&gt;nepal 2009 1mn&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;like that i have many countries&lt;/P&gt;&lt;P&gt;i want , average rate of growth of sales for each branch by year wise. Please suggest some logics.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Dec 2014 11:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/average-rate-growth-of-sales-for-each-branch-by-year-wise/m-p/149651#M29564</guid>
      <dc:creator>kumarK</dc:creator>
      <dc:date>2014-12-14T11:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: average rate growth of sales for each branch by year wise.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/average-rate-growth-of-sales-for-each-branch-by-year-wise/m-p/149652#M29565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my understanding this forum provides quality support to people who get stuck with a problem and need help. What this forum is not about is doing the work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you first give it a go and then come back if you can't solve the problem by yourself. You then give us sample data (a data step generating this data so we don't have to do the work), and explanation what you have and what you want, and a sample of how the "what you want" looks like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you already developed some code (may be not working) then post this code as well. This will help us to better understand where you are at and where you might need some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Dec 2014 13:07:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/average-rate-growth-of-sales-for-each-branch-by-year-wise/m-p/149652#M29565</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-12-14T13:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: average rate growth of sales for each branch by year wise.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/average-rate-growth-of-sales-for-each-branch-by-year-wise/m-p/149653#M29566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What should the output look like for input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;Branch year salesMn&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;india 2009 1&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;india 2010 1.2&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 12.8000001907349px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;india 2011 1.1&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;nepal 2008 0.5&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;nepal 2009 1&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 03:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/average-rate-growth-of-sales-for-each-branch-by-year-wise/m-p/149653#M29566</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-12-15T03:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: average rate growth of sales for each branch by year wise.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/average-rate-growth-of-sales-for-each-branch-by-year-wise/m-p/149654#M29567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the answer.&lt;/P&gt;&lt;P&gt;First convert into numeric variable sales using input function and use compress function to replace alphabets from value and then use proc sql.&lt;/P&gt;&lt;P&gt;Here is the code.&lt;/P&gt;&lt;P&gt;Correct me if I am wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ds1;&lt;/P&gt;&lt;P&gt;infile cards;&lt;/P&gt;&lt;P&gt;input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Branch $ year sales $;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;india 2009 1mn&lt;/P&gt;&lt;P&gt;india 2009 2mn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;india 2010 1.2mn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nepal 2008 0.5mn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nepal 2009 1mn&lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ds2;&lt;/P&gt;&lt;P&gt;set ds1;&lt;/P&gt;&lt;P&gt;sales1=compress(sales,'','a');&lt;/P&gt;&lt;P&gt;numeric=input(sales1,8.);&lt;/P&gt;&lt;P&gt;drop sales;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table demo as&lt;/P&gt;&lt;P&gt;select Branch,year,avg(numeric)as sales from ds2 group by Branch,year ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 19:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/average-rate-growth-of-sales-for-each-branch-by-year-wise/m-p/149654#M29567</guid>
      <dc:creator>venkatnaveen</dc:creator>
      <dc:date>2014-12-16T19:33:43Z</dc:date>
    </item>
  </channel>
</rss>

