<?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: SAS VA: How to subtract months from a date to calculate a new date in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-How-to-subtract-months-from-a-date-to-calculate-a-new/m-p/574477#M12795</link>
    <description>&lt;P&gt;Hello SurajSaini,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply. It is indeed the&amp;nbsp;challenge that the date is variable.&lt;BR /&gt;There fore i have implemented a simple solution.&lt;BR /&gt;With the&amp;nbsp;"treat as" function i have changed to date into a number.&lt;BR /&gt;Dan subtract 180 days from it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The goal to warn the user that a depreciation date was coming within 6 months.&lt;BR /&gt;This information can be used for business purposes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will close this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, Lucien&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 07:53:40 GMT</pubDate>
    <dc:creator>Lupo</dc:creator>
    <dc:date>2019-07-18T07:53:40Z</dc:date>
    <item>
      <title>SAS VA: How to subtract months from a date to calculate a new date</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-How-to-subtract-months-from-a-date-to-calculate-a-new/m-p/571980#M12731</link>
      <description>&lt;P&gt;Dear SAS Community member,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now dealing with a challenge that surprised me. Because i thought there was a simple solution for it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SAS VA i like to caculate a new date by subtracting 6 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date - 6months&amp;nbsp;= new date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps:&lt;BR /&gt;First i like to use treatas function to make the date numeric.&lt;/P&gt;&lt;P&gt;Then find a formula to subtract 6 months.&amp;nbsp;This formula must take the diffrent numbers of days in the months into account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;Is there a formula which i can use in SAS VA which can calculate 6 months?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remarks:&lt;/P&gt;&lt;P&gt;I do not use SAS Base.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lucien&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 12:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-How-to-subtract-months-from-a-date-to-calculate-a-new/m-p/571980#M12731</guid>
      <dc:creator>Lupo</dc:creator>
      <dc:date>2019-07-09T12:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA: How to subtract months from a date to calculate a new date</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-How-to-subtract-months-from-a-date-to-calculate-a-new/m-p/574426#M12789</link>
      <description>&lt;P&gt;Can you please explain what you want to achieve in your analysis&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not have a solution to directly subtract a month from the date, because it's a bit hard to as you Date variable is not constant(I&amp;nbsp; just supposed so even if we create a date parameter in the calculation item still as the month varies in the date variable that will change the calculation results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you do not mind can you please tell me what do you want to do in your reporting so that we can come_up with any other alternatives.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 02:29:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-How-to-subtract-months-from-a-date-to-calculate-a-new/m-p/574426#M12789</guid>
      <dc:creator>SurajSaini</dc:creator>
      <dc:date>2019-07-18T02:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA: How to subtract months from a date to calculate a new date</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-How-to-subtract-months-from-a-date-to-calculate-a-new/m-p/574477#M12795</link>
      <description>&lt;P&gt;Hello SurajSaini,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply. It is indeed the&amp;nbsp;challenge that the date is variable.&lt;BR /&gt;There fore i have implemented a simple solution.&lt;BR /&gt;With the&amp;nbsp;"treat as" function i have changed to date into a number.&lt;BR /&gt;Dan subtract 180 days from it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The goal to warn the user that a depreciation date was coming within 6 months.&lt;BR /&gt;This information can be used for business purposes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will close this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, Lucien&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 07:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-How-to-subtract-months-from-a-date-to-calculate-a-new/m-p/574477#M12795</guid>
      <dc:creator>Lupo</dc:creator>
      <dc:date>2019-07-18T07:53:40Z</dc:date>
    </item>
  </channel>
</rss>

