<?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 limit number of Months in SAS VA 7.4? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-limit-number-of-Months-in-SAS-VA-7-4/m-p/459264#M10067</link>
    <description>&lt;P&gt;No requirement is little different.&lt;/P&gt;&lt;P&gt;I am using cross Tab and I want to filter it there and it should change automatically for every current month.&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;if May is (Current month)&lt;/P&gt;&lt;P&gt;then it should show Feb-mar-apr(3 previous months)&lt;/P&gt;&lt;P&gt;and Jun-July(2 future months)&lt;/P&gt;&lt;P&gt;So in addition likewise it should change automatically for every current month without doing any changes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Right now.&lt;/P&gt;&lt;P&gt;I created two fields min date and max date&lt;BR /&gt;with code&lt;BR /&gt;intnx('month',input(metric_month,anydtdte20.),-3) as min_date format=date9.,&lt;BR /&gt;intnx('month',input(metric_month,anydtdte20.),+2) as max_date format=date9.,&lt;/P&gt;&lt;P&gt;and when i am filtering it in cross tab using "month between incl max &amp;amp; min" its not filtering the months&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vish&lt;/P&gt;</description>
    <pubDate>Wed, 02 May 2018 11:42:18 GMT</pubDate>
    <dc:creator>vishu2</dc:creator>
    <dc:date>2018-05-02T11:42:18Z</dc:date>
    <item>
      <title>How to limit number of Months in SAS VA 7.4?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-limit-number-of-Months-in-SAS-VA-7-4/m-p/451861#M9842</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one column name "month" which has 31 months&lt;/P&gt;&lt;P&gt;what i want to do is i want to limit number of months&lt;/P&gt;&lt;P&gt;for example :- Current Month followed by two future months and two previous month followed by current month&lt;/P&gt;&lt;P&gt;Like if current month is April then it has to show something like&lt;/P&gt;&lt;P&gt;FEb-MAR-APR(Current month)-MAY- JUN&lt;/P&gt;&lt;P&gt;Any one know, How we can do it in SAS VA 7.4?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 13:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-limit-number-of-Months-in-SAS-VA-7-4/m-p/451861#M9842</guid>
      <dc:creator>vishu2</dc:creator>
      <dc:date>2018-04-06T13:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit number of Months in SAS VA 7.4?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-limit-number-of-Months-in-SAS-VA-7-4/m-p/452130#M9852</link>
      <description>&lt;P&gt;One easy way to deal with this is to add a numeric month identifier variable to your data prior to loading into VA. Set current month data to 0, last month data to -1 and so on. Set next month +1 and so on. If you have a reporting date in your data it is easy to create this variable:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Month_Counter = intck('MONTH', today(), reporting_date);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can then use the Month_Counter as a filter in all of your reports. For example where Month_Counter between -2 and +2 will select the months you want.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 22:37:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-limit-number-of-Months-in-SAS-VA-7-4/m-p/452130#M9852</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-04-06T22:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit number of Months in SAS VA 7.4?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-limit-number-of-Months-in-SAS-VA-7-4/m-p/458925#M10052</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried but not getting it, how to do it as I don't have any reporting date and&amp;nbsp;my month is in char format to convert it to date, I am using following&amp;nbsp;code&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input(month, dtdtm.) as new_month format=dtdate9.,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and how I will create the month identifier&amp;nbsp;for it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;vish&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 08:20:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-limit-number-of-Months-in-SAS-VA-7-4/m-p/458925#M10052</guid>
      <dc:creator>vishu2</dc:creator>
      <dc:date>2018-05-01T08:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit number of Months in SAS VA 7.4?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-limit-number-of-Months-in-SAS-VA-7-4/m-p/459199#M10060</link>
      <description>&lt;P&gt;HI!&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;- Convert the character date to sas date using your input function. Lets say you call it date_num&lt;/P&gt;
&lt;P&gt;- create a new date variabel which is 2 months greater than the new date variable using intnx('month',date_num,2). Lets say you call it date_num_plus2&lt;/P&gt;
&lt;P&gt;- in VA create a prompt on date_num_plus2. Add a date parameter and assign it to the prompt.&lt;/P&gt;
&lt;P&gt;- Create a data filter that selects month &amp;lt;= the parameter.&lt;/P&gt;
&lt;P&gt;- In your visualizations use rank and pick the highest 6 on date_num.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some work, but I think it would work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 06:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-limit-number-of-Months-in-SAS-VA-7-4/m-p/459199#M10060</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2018-05-02T06:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit number of Months in SAS VA 7.4?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-limit-number-of-Months-in-SAS-VA-7-4/m-p/459264#M10067</link>
      <description>&lt;P&gt;No requirement is little different.&lt;/P&gt;&lt;P&gt;I am using cross Tab and I want to filter it there and it should change automatically for every current month.&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;if May is (Current month)&lt;/P&gt;&lt;P&gt;then it should show Feb-mar-apr(3 previous months)&lt;/P&gt;&lt;P&gt;and Jun-July(2 future months)&lt;/P&gt;&lt;P&gt;So in addition likewise it should change automatically for every current month without doing any changes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Right now.&lt;/P&gt;&lt;P&gt;I created two fields min date and max date&lt;BR /&gt;with code&lt;BR /&gt;intnx('month',input(metric_month,anydtdte20.),-3) as min_date format=date9.,&lt;BR /&gt;intnx('month',input(metric_month,anydtdte20.),+2) as max_date format=date9.,&lt;/P&gt;&lt;P&gt;and when i am filtering it in cross tab using "month between incl max &amp;amp; min" its not filtering the months&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vish&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 11:42:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-limit-number-of-Months-in-SAS-VA-7-4/m-p/459264#M10067</guid>
      <dc:creator>vishu2</dc:creator>
      <dc:date>2018-05-02T11:42:18Z</dc:date>
    </item>
  </channel>
</rss>

