<?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 operation on SAS VA in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/operation-on-SAS-VA/m-p/676425#M14101</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;ON SAS VA I have to perform a subtraction among two variable, representing two years, types are character. But SAS VA give me mistake. Have you advice?&lt;/P&gt;&lt;P&gt;Thanks to everyone &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;</description>
    <pubDate>Thu, 13 Aug 2020 08:29:37 GMT</pubDate>
    <dc:creator>pablo29</dc:creator>
    <dc:date>2020-08-13T08:29:37Z</dc:date>
    <item>
      <title>operation on SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/operation-on-SAS-VA/m-p/676425#M14101</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;ON SAS VA I have to perform a subtraction among two variable, representing two years, types are character. But SAS VA give me mistake. Have you advice?&lt;/P&gt;&lt;P&gt;Thanks to everyone &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;</description>
      <pubDate>Thu, 13 Aug 2020 08:29:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/operation-on-SAS-VA/m-p/676425#M14101</guid>
      <dc:creator>pablo29</dc:creator>
      <dc:date>2020-08-13T08:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: operation on SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/operation-on-SAS-VA/m-p/676542#M14104</link>
      <description>Hi Pablo,&lt;BR /&gt;&lt;BR /&gt;Can you please post a screen shot of what you are trying to do?</description>
      <pubDate>Thu, 13 Aug 2020 16:40:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/operation-on-SAS-VA/m-p/676542#M14104</guid>
      <dc:creator>mohd-danshaik</dc:creator>
      <dc:date>2020-08-13T16:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: operation on SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/operation-on-SAS-VA/m-p/676584#M14105</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dates in Visual Analytics are &lt;A href="https://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;SAS dates&lt;/A&gt;&amp;nbsp;and can be tricky to perform basic math on. The best approach to handling them will depend on what exactly you are trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 19:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/operation-on-SAS-VA/m-p/676584#M14105</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2020-08-13T19:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: operation on SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/operation-on-SAS-VA/m-p/677141#M14110</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/341480"&gt;@pablo29&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did I understand correctly that your year variable is actually a character string, not actual numbers/date?&amp;nbsp;If this is the case then you first need to create a new date type variable from the character string. You can do this f.ex. by using &lt;EM&gt;Substring&lt;/EM&gt;, &lt;EM&gt;Parse&lt;/EM&gt; and &lt;EM&gt;DateFromMDY&lt;/EM&gt; functions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your year variable just four digits (2020) or more like a date (2020-08-17)? You could create a numeric variable just for year, but I personally prefer to create date variables with year format as it enables use of VA's periodic operators.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can calculate differences between date variables by utilizing&amp;nbsp;&lt;EM&gt;TreatAs&lt;/EM&gt; (_number_) function.&amp;nbsp;First you convert your date type variable to numbers, then calculate the difference, and finally convert number type variable back to date type variable by using &lt;EM&gt;TreatAs&lt;/EM&gt; second time. It's actually very easy and straightforward even though it might not sound like it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Btw. which version of VA you have?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Petri&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 13:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/operation-on-SAS-VA/m-p/677141#M14110</guid>
      <dc:creator>PetriRoine</dc:creator>
      <dc:date>2020-08-17T13:02:06Z</dc:date>
    </item>
  </channel>
</rss>

