<?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 change the date expression to numeric after creating 'New Calculated Item' in SAS VA in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-the-date-expression-to-numeric-after-creating-New/m-p/473428#M10542</link>
    <description>&lt;P&gt;I checked if a simpler calculation would work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DatePart( Now() ) - timestamp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it did not. &amp;nbsp;I think this is because the underlying SAS date value is not a supported format for VA content, but I can check on it with some folks I know in development.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jun 2018 15:16:13 GMT</pubDate>
    <dc:creator>MikeJenista</dc:creator>
    <dc:date>2018-06-26T15:16:13Z</dc:date>
    <item>
      <title>How to change the date expression to numeric after creating 'New Calculated Item' in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-the-date-expression-to-numeric-after-creating-New/m-p/471279#M10485</link>
      <description>&lt;P&gt;Hi, I am trying to do new calculated item in the Report Designer to calculate 'now() - timestamp' to give a total number of days. Can someone please advise how do I do the calculation. And how to show the result in numeric?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 01:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-the-date-expression-to-numeric-after-creating-New/m-p/471279#M10485</guid>
      <dc:creator>c4th1</dc:creator>
      <dc:date>2018-06-19T01:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the date expression to numeric after creating 'New Calculated Item' in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-the-date-expression-to-numeric-after-creating-New/m-p/473427#M10541</link>
      <description>&lt;P&gt;It is a little cumbersome, but you can use the DayOfYear and Year functions to return numeric values from the two dates ('now' and 'timestamp'). &amp;nbsp;Also you have to wrap 'Now()' in a DatePart() function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;365*( Year(DatePart( Now() )) - Year( timestamp ) + DayOfYear( DatePart( Now() )) - DayOfYear( timestamp&amp;nbsp;)&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 15:14:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-the-date-expression-to-numeric-after-creating-New/m-p/473427#M10541</guid>
      <dc:creator>MikeJenista</dc:creator>
      <dc:date>2018-06-26T15:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the date expression to numeric after creating 'New Calculated Item' in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-the-date-expression-to-numeric-after-creating-New/m-p/473428#M10542</link>
      <description>&lt;P&gt;I checked if a simpler calculation would work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DatePart( Now() ) - timestamp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it did not. &amp;nbsp;I think this is because the underlying SAS date value is not a supported format for VA content, but I can check on it with some folks I know in development.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 15:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-the-date-expression-to-numeric-after-creating-New/m-p/473428#M10542</guid>
      <dc:creator>MikeJenista</dc:creator>
      <dc:date>2018-06-26T15:16:13Z</dc:date>
    </item>
  </channel>
</rss>

