<?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: Peek &amp; Previous in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-Previous/m-p/552361#M206332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for more clear, see link&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/08/peek-vs-previous-when-to-use-each" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/08/peek-vs-previous-when-to-use-each"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/08/peek-vs-previous-when-to-use-each&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/11135" title="http://community.qlik.com/thread/11135"&gt;http://community.qlik.com/thread/11135&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Aug 2013 07:18:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-02T07:18:43Z</dc:date>
    <item>
      <title>Peek &amp; Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Previous/m-p/552356#M206327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give me some examples&lt;/P&gt;&lt;P&gt;peek and previous with inline load simple under standing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank in advance&lt;/P&gt;&lt;P&gt;rohith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 06:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Previous/m-p/552356#M206327</guid>
      <dc:creator>NavinReddy</dc:creator>
      <dc:date>2013-08-02T06:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Peek &amp; Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Previous/m-p/552357#M206328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look &lt;A _jive_internal="true" href="https://community.qlik.com/message/121574#121574"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, Peek() works on OUTPUT of load and the Previous() works on INPUT of load. The difference can be seen if you load a table with and without some WHERE condition for filtereing data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 07:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Previous/m-p/552357#M206328</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-02T07:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Peek &amp; Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Previous/m-p/552358#M206329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor46"&gt;&lt;/A&gt;&lt;A name="previous"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;previous(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;expression &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the value of &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; using data from the previous input record that was not discarded due to a &lt;SPAN class="Bold"&gt;where&lt;/SPAN&gt; clause. In the first record of an internal table the function will return NULL. The &lt;SPAN class="Bold"&gt;previous&lt;/SPAN&gt; function may be nested in order to access records further back. Data are fetched directly from the input source, making it possible to refer also to fields which have not been loaded into QlikView, i.e. even if they have not been stored in its associative database. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="Code"&gt;Load *, Sales / previous(Sales) as Increase from ...;&lt;/P&gt;&lt;P class="Code"&gt;Load A, previous(previous( A )) as B from ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor47"&gt;&lt;/A&gt;&lt;A name="peek"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;peek(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;fieldname [ , row [ , tablename ] ] &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the contents of the &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; in the record specified by &lt;SPAN class="Italic"&gt;row&lt;/SPAN&gt; in the internal table &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt;. Data are fetched from the associative QlikView database. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Fieldname&lt;/SPAN&gt; must be given as a string (e.g. a quoted literal). &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Row&lt;/SPAN&gt; must be an integer. 0 denotes the first record, 1 the second and so on. Negative numbers indicate order from the end of the table. -1 denotes the last record read. &lt;/P&gt;&lt;P&gt;If no &lt;SPAN class="Italic"&gt;row&lt;/SPAN&gt; is stated, -1 is assumed. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Tablename&lt;/SPAN&gt; is a table label, see &lt;A _jive_internal="true" class="MCXref_0" href="https://community.qlik.com/message/Table_labels.htm"&gt;&lt;EM&gt;Table Labels&lt;/EM&gt;&lt;/A&gt;, without the ending colon. If no &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt; is stated, the current table is assumed. If used outside the load statement or referring to another table, the tablename must be included. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales' )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; in the previous record read ( equivalent to &lt;SPAN class="Bold"&gt;previous(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;) &lt;/SPAN&gt;). &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales', 2 )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; from the third record read from the current internal table. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales', -2 )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; from the second last record read into the current internal table. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales', 0, 'Tab1' )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; from the first record read into the input table labeled Tab1. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Load A, B, numsum( B, peek( 'Bsum' ) ) as Bsum...;&lt;/SPAN&gt; &lt;BR /&gt;creates an accumulation of B in Bsum. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 07:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Previous/m-p/552358#M206329</guid>
      <dc:creator />
      <dc:date>2013-08-02T07:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Peek &amp; Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Previous/m-p/552359#M206330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to this link&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/08/peek-vs-previous-when-to-use-each"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/08/peek-vs-previous-when-to-use-each&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading active_link" href="http://qlikshare.com/172"&gt;http://qlikshare.com/172&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;The main difference is that Previous() fetches data from previous &lt;STRONG&gt;&lt;EM&gt;input &lt;/EM&gt;&lt;/STRONG&gt;record, whereas Peek() fetches data from previous &lt;STRONG&gt;&lt;EM&gt;output &lt;/EM&gt;&lt;/STRONG&gt;record. (Input to the Load statement and output of the Load statement.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;In addition, Peek() can be used to fetch data from other records than the previous and from other tables than the current, if the second and third parameters are used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 07:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Previous/m-p/552359#M206330</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-08-02T07:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Peek &amp; Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Previous/m-p/552360#M206331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Check out this document. &lt;/SPAN&gt;&lt;A class="jive-link-wiki-small" href="http://community.qlik.com/docs/DOC-4073"&gt;http://community.qlik.com/docs/DOC-4073&lt;/A&gt;&lt;SPAN&gt; Regards. siva&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 07:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Previous/m-p/552360#M206331</guid>
      <dc:creator>Siva_Sankar</dc:creator>
      <dc:date>2013-08-02T07:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Peek &amp; Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Previous/m-p/552361#M206332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for more clear, see link&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/08/peek-vs-previous-when-to-use-each" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/08/peek-vs-previous-when-to-use-each"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/08/peek-vs-previous-when-to-use-each&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/11135" title="http://community.qlik.com/thread/11135"&gt;http://community.qlik.com/thread/11135&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 07:18:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Previous/m-p/552361#M206332</guid>
      <dc:creator />
      <dc:date>2013-08-02T07:18:43Z</dc:date>
    </item>
  </channel>
</rss>

