<?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 get value from previous date? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-get-value-from-previous-date/m-p/283936#M4784</link>
    <description>&lt;P&gt;Is it possible to use Periodic Operators in SAS VA?&lt;/P&gt;
&lt;P&gt;I haven't tried it yet.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2016 01:08:19 GMT</pubDate>
    <dc:creator>ksulistyo</dc:creator>
    <dc:date>2016-07-13T01:08:19Z</dc:date>
    <item>
      <title>How to get value from previous date?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-get-value-from-previous-date/m-p/281414#M4706</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way in SAS VA to get&amp;nbsp;value from the previous date (one day before), for example from this table:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;--------------------------------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| &amp;nbsp; &amp;nbsp;Date &amp;nbsp; | Company Name | Trx Value | Trx Value D-1 |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--------------------------------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| 01Jun2016 | ABC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;10,000 | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| 01Jun2016 | DEF &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;11,000 | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| 01Jun2016 | XYZ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;12,000 | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| 02Jun2016 | ABC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;33,000 | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10,000 |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| 02Jun2016 | DEF &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;44,000 | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11,000 |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| 02Jun2016 | XYZ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;55,000 | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12,000 |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| 03Jun2016 | ABC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;60,000 | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33,000 |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| 03Jun2016 | DEF &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;70,000 | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;44,000 |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| 03Jun2016 | XYZ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;80,000 | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;55,000 |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--------------------------------------------------------&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;The &lt;STRONG&gt;Trx Value D-1&amp;nbsp;&lt;/STRONG&gt;is&amp;nbsp;New Calculated Item that I would like to get.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Karina&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 12:51:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-get-value-from-previous-date/m-p/281414#M4706</guid>
      <dc:creator>ksulistyo</dc:creator>
      <dc:date>2016-06-30T12:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get value from previous date?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-get-value-from-previous-date/m-p/281420#M4707</link>
      <description>&lt;P&gt;Assuming that you mean by VA already loaded data to LASR.&lt;/P&gt;
&lt;P&gt;I haven't worked in depth within VA, but since VA is a kind of standardized&amp;nbsp;reporting tool, it works best with normalized/de-normalized&amp;nbsp;data structures.&lt;/P&gt;
&lt;P&gt;My guess&amp;nbsp;is you need to fix calculations&amp;nbsp;like this in the data preparation.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 13:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-get-value-from-previous-date/m-p/281420#M4707</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-30T13:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get value from previous date?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-get-value-from-previous-date/m-p/281425#M4708</link>
      <description>&lt;P&gt;Hi Linus,&lt;/P&gt;
&lt;P&gt;Thanks for your response.&lt;/P&gt;
&lt;P&gt;Ok, the calculation is done&amp;nbsp;in Data Preparation/Data Builder by adding new column, how does the SQL expression or the logic should look like (I attach the form)?&amp;nbsp;I'm bit frustrated here &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly enlighten.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12713i952EAA903A3CEFCA/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="DataPrep.png" title="DataPrep.png" /&gt;</description>
      <pubDate>Thu, 30 Jun 2016 13:25:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-get-value-from-previous-date/m-p/281425#M4708</guid>
      <dc:creator>ksulistyo</dc:creator>
      <dc:date>2016-06-30T13:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get value from previous date?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-get-value-from-previous-date/m-p/281427#M4709</link>
      <description>&lt;P&gt;Like &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH﻿&lt;/a&gt; said, put that into the date before loading into VA.&lt;/P&gt;
&lt;P&gt;Sort by company and date and use the lag() function.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 13:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-get-value-from-previous-date/m-p/281427#M4709</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-30T13:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get value from previous date?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-get-value-from-previous-date/m-p/281444#M4710</link>
      <description>SQL is not aware of row ordering, so any lag() or RETAIN operations isn't available here.&lt;BR /&gt;If you are limited to Data Builder you should be able to pull this off by doing a self join with a date = date -1 criteria.</description>
      <pubDate>Thu, 30 Jun 2016 14:14:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-get-value-from-previous-date/m-p/281444#M4710</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-30T14:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get value from previous date?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-get-value-from-previous-date/m-p/283936#M4784</link>
      <description>&lt;P&gt;Is it possible to use Periodic Operators in SAS VA?&lt;/P&gt;
&lt;P&gt;I haven't tried it yet.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 01:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-get-value-from-previous-date/m-p/283936#M4784</guid>
      <dc:creator>ksulistyo</dc:creator>
      <dc:date>2016-07-13T01:08:19Z</dc:date>
    </item>
  </channel>
</rss>

