<?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: previous command question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/previous-command-question/m-p/521547#M689538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous refers to the data coming from your DB, data source. Peek refers to the values you already have stored in QlikView data model, with the transformations that you have made.&lt;/P&gt;&lt;P&gt;Peek can be used from any table, any record being -1 the last one, (default), 0 the first record of the table, 1 the second, -2 the before last, -3 the before, before last, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Oct 2013 13:52:08 GMT</pubDate>
    <dc:creator>christian77</dc:creator>
    <dc:date>2013-10-24T13:52:08Z</dc:date>
    <item>
      <title>previous command question</title>
      <link>https://community.qlik.com/t5/QlikView/previous-command-question/m-p/521545#M689536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My script looks as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;InvoiceLine:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; previous([Shipment No_]) as PS,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; peek([Shipment No_])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as PS2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Shipment No_]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;InvoiceLine.QVD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;where (Type &amp;lt;&amp;gt; 0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the manual I find the following lines:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pprevious command.jpg" class="jive-image jiveImage" src="/legacyfs/online/48095_pprevious command.jpg" /&gt;&lt;/P&gt;&lt;P&gt;The return value of PS2 (the peek statement in my script) is the value from the previous line&amp;nbsp; and therefore correct.&lt;/P&gt;&lt;P&gt;The return value of PS (the previous statement in my script) is the value from the current line and therefore not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to figure out why the result in my script of the peek command differs from the previous command, but until know I have no idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any explanation is welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerrit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 13:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-command-question/m-p/521545#M689536</guid>
      <dc:creator />
      <dc:date>2013-10-24T13:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: previous command question</title>
      <link>https://community.qlik.com/t5/QlikView/previous-command-question/m-p/521546#M689537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peek() and Previous() have a basic difference when you use a FILTER (where clause) in load. Peek() operates on OUTPUT of source and Previous() operates on INPUT of source. For better understanding please refer &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/08/peek-vs-previous-when-to-use-each"&gt;this&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 13:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-command-question/m-p/521546#M689537</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-24T13:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: previous command question</title>
      <link>https://community.qlik.com/t5/QlikView/previous-command-question/m-p/521547#M689538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous refers to the data coming from your DB, data source. Peek refers to the values you already have stored in QlikView data model, with the transformations that you have made.&lt;/P&gt;&lt;P&gt;Peek can be used from any table, any record being -1 the last one, (default), 0 the first record of the table, 1 the second, -2 the before last, -3 the before, before last, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 13:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-command-question/m-p/521547#M689538</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2013-10-24T13:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: previous command question</title>
      <link>https://community.qlik.com/t5/QlikView/previous-command-question/m-p/521548#M689539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks that makes it clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 13:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-command-question/m-p/521548#M689539</guid>
      <dc:creator />
      <dc:date>2013-10-24T13:55:40Z</dc:date>
    </item>
  </channel>
</rss>

