<?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: Creating numeric months for multiple years. in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Creating-numeric-months-for-multiple-years/m-p/556362#M12393</link>
    <description>&lt;P&gt;Thank you Jag ! I was looking for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2019 08:19:23 GMT</pubDate>
    <dc:creator>ASHISH2525</dc:creator>
    <dc:date>2019-05-06T08:19:23Z</dc:date>
    <item>
      <title>Creating numeric months for multiple years.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Creating-numeric-months-for-multiple-years/m-p/556351#M12390</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created numeric months for reporting so that using rank i will fixed desired output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But problem is that treat as function only create 12 months for two year 2018 &amp;amp; 2019. means Dec-18 is 12 and Dec-19 is also 12. i wanted to have it like Dec 18 should be&amp;nbsp; Jan 19 should be 13 and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know is there workaround for this.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Months.PNG" style="width: 205px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29221i6D6D2590F123C337/image-size/large?v=v2&amp;amp;px=999" role="button" title="Months.PNG" alt="Months.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 05:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Creating-numeric-months-for-multiple-years/m-p/556351#M12390</guid>
      <dc:creator>ASHISH2525</dc:creator>
      <dc:date>2019-05-06T05:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating numeric months for multiple years.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Creating-numeric-months-for-multiple-years/m-p/556358#M12392</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input years$;
date=input(cats('01-',years),anydtdte.);
yr=year(input(cats('01-',years),anydtdte.));
month=month(input(cats('01-',years),anydtdte.));
lagmonth=lag(month);
cards;
Aug-18
Sep-18
Oct-18
Nov-18
Dec-18
Jan-19
Feb-19
Mar-19
Apr-19
May-19
Jun-19
Jul-19
Aug-19
Sep-19
Oct-19
Nov-19
Dec-19
;

proc sort data=have;
by yr date ;
run;

data want;
set have;
by yr date;
retain count;
if first.yr then count=lagmonth;
month2=coalesce(count+month,month);
drop month yr count lagmonth date;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 May 2019 07:56:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Creating-numeric-months-for-multiple-years/m-p/556358#M12392</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-05-06T07:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating numeric months for multiple years.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Creating-numeric-months-for-multiple-years/m-p/556362#M12393</link>
      <description>&lt;P&gt;Thank you Jag ! I was looking for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 08:19:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Creating-numeric-months-for-multiple-years/m-p/556362#M12393</guid>
      <dc:creator>ASHISH2525</dc:creator>
      <dc:date>2019-05-06T08:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating numeric months for multiple years.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Creating-numeric-months-for-multiple-years/m-p/556372#M12395</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/151178"&gt;@ASHISH2525&lt;/a&gt;&amp;nbsp;Since you wrote that you have &lt;STRONG&gt;continuous&lt;/STRONG&gt; data and the &lt;STRONG&gt;starting month&lt;/STRONG&gt; value that you have already created.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if _n_=1 then continuous_month=month;
else continuous_month+1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is all you need.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 10:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Creating-numeric-months-for-multiple-years/m-p/556372#M12395</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-05-06T10:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating numeric months for multiple years.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Creating-numeric-months-for-multiple-years/m-p/556422#M12399</link>
      <description>&lt;P&gt;&lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt; _n_&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;then&lt;/SPAN&gt; continuous_month&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;month&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="token keyword"&gt;else&lt;/SPAN&gt; continuous_month&lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token number"&gt;Help! I'm being overtaken by hackers, copycat hacker no less -&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 21:22:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Creating-numeric-months-for-multiple-years/m-p/556422#M12399</guid>
      <dc:creator>ccaulkins9</dc:creator>
      <dc:date>2019-05-07T21:22:27Z</dc:date>
    </item>
  </channel>
</rss>

