<?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 use Peek function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701654#M541134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2014 06:11:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-03T06:11:08Z</dc:date>
    <item>
      <title>How to use Peek function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701647#M541124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I do not know peek function ,how to use&amp;nbsp; that function please explain me with example.about peek function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thankyou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards:&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 05:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701647#M541124</guid>
      <dc:creator />
      <dc:date>2014-07-03T05:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Peek function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701648#M541125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H4&gt;&lt;SPAN class="Bold"&gt;peek&lt;A name="kanchor48"&gt;&lt;/A&gt;&lt;A name="peek"&gt;&lt;/A&gt;(&lt;/SPAN&gt; &lt;SPAN style="font-style: italic;"&gt;fieldname [ , row [ , tablename ] ] &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;Returns the contents of the &lt;SPAN style="font-style: italic;"&gt;fieldname&lt;/SPAN&gt; in the record specified by &lt;SPAN style="font-style: italic;"&gt;row&lt;/SPAN&gt; in the input table &lt;SPAN style="font-style: italic;"&gt;tablename&lt;/SPAN&gt;. Data are fetched from the associative QlikView database.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: 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 style="font-style: 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 style="font-style: italic;"&gt;row&lt;/SPAN&gt; is stated, -1 is assumed.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: italic;"&gt;Tablename&lt;/SPAN&gt; is a &lt;A&gt;table label&lt;/A&gt; without the ending colon. &lt;SPAN style="background-color: #ffffff;"&gt;If no &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-style: italic;"&gt;tablename&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&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;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;Examples:&lt;/H2&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;peek( 'Sales' )&lt;/SPAN&gt;&lt;SPAN style="margin-left: 40px;"&gt;&lt;BR /&gt;returns the value of &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; margin-left: 40px;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="margin-left: 40px;"&gt; in the previous record read ( equivalent to &lt;/SPAN&gt;&lt;SPAN style="margin-left: 40px; font-weight: bold;"&gt;previous(&lt;/SPAN&gt;&lt;SPAN style="font-style: italic; margin-left: 40px;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="margin-left: 40px; font-weight: bold;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="margin-left: 40px;"&gt;).&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;peek( 'Sales', 2 )&lt;/SPAN&gt;&lt;SPAN style="margin-left: 40px;"&gt;&lt;BR /&gt;returns the value of &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; margin-left: 40px;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="margin-left: 40px;"&gt; from the third record read from the current input table.&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;peek( 'Sales', -2 )&lt;/SPAN&gt;&lt;SPAN style="margin-left: 40px;"&gt;&lt;BR /&gt;returns the value of &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; margin-left: 40px;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="margin-left: 40px;"&gt; from the second last record read into the current input table.&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;peek( 'Sales', 0, Tab1 )&lt;/SPAN&gt;&lt;SPAN style="margin-left: 40px;"&gt;&lt;BR /&gt;returns the value of &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; margin-left: 40px;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="margin-left: 40px;"&gt; from the first record read into the input table labeled Tab1.&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Load A, B, numsum( B, peek( 'Bsum' ) ) as Bsum...;&lt;/SPAN&gt;&lt;SPAN style="margin-left: 40px;"&gt;&lt;BR /&gt;creates an accumulation of B in Bsum.&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 05:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701648#M541125</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-07-03T05:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Peek function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701649#M541126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" 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;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 05:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701649#M541126</guid>
      <dc:creator />
      <dc:date>2014-07-03T05:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Peek function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701650#M541127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use like this&amp;nbsp;&amp;nbsp; LOAD&amp;nbsp;&amp;nbsp; Peek(Product,-1)Resident Product; but it does not work. i attached snipping files below this box.&lt;IMG alt="peek1.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61641_peek1.PNG.png" /&gt;&lt;IMG alt="peek2.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61642_peek2.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 05:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701650#M541127</guid>
      <dc:creator />
      <dc:date>2014-07-03T05:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Peek function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701651#M541128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add on extra field and cchange syntax in resident&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Peek('Product','-1',Product) as fieldname,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 as J&lt;/P&gt;&lt;P&gt;resident&amp;nbsp; Product;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop field J;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Peek('Product','-1') as fieldname,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 as J&lt;/P&gt;&lt;P&gt;resident&amp;nbsp; Product;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop field J;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701651#M541128</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-07-03T06:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Peek function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701652#M541130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check out this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701652#M541130</guid>
      <dc:creator />
      <dc:date>2014-07-03T06:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Peek function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701653#M541132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="1" class="jiveBorder" height="150" style="border: 1px solid rgb(0, 0, 0); width: 277px; height: 138px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;DepositBalnc&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;15/06/2005&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;18/06/2005&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;20/06/2005&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;21/06/2005&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;25/06/2005&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let suppose you have a table with a field name as DepositBalnc,and Your requirement is to create a new field with available balance by formula available=DepositBalnc+available and initially available is 0,output table is&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="150" style="border: 1px solid rgb(0, 0, 0); width: 343px; height: 79px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Available&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;DepositBalnc&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;15/06/2005&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;18/06/2005&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;20/06/2005&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;21/06/2005&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;25/06/2005&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2800&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now peek() loads the already loaded field value in the table. now the Available field can be created by following Script&lt;/P&gt;&lt;P&gt;If(RowNo() = 1, 0, Peek(Available)+DepositBalnc) as Available,&lt;/P&gt;&lt;P&gt;Hope now you will understand peek() use..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701653#M541132</guid>
      <dc:creator />
      <dc:date>2014-07-03T06:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Peek function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701654#M541134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701654#M541134</guid>
      <dc:creator />
      <dc:date>2014-07-03T06:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Peek function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701655#M541136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;peek() function works within the load block if you dont mention the table name.&lt;/P&gt;&lt;P&gt;but out of the load block you have to use table name like&lt;/P&gt;&lt;P&gt;peek(Product,-1,'Product') try this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701655#M541136</guid>
      <dc:creator />
      <dc:date>2014-07-03T06:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Peek function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701656#M541138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please mark it as helpful correct if you got solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701656#M541138</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-07-03T06:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Peek function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701657#M541139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peek function returns the value of the previous record read. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;For eg; In the output below, &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;Name and Value are my source columns &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Expression for the other two:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;('Value') &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Peek_Value&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; text-indent: 0.5in; line-height: 1.5em;"&gt;– Stores the previous record value (this is same as Previous function)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: 0.5in; line-height: 1.5em; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="text-indent: 0.5in; line-height: 1.5em; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="text-indent: 0.5in; line-height: 1.5em; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;('Value',1) &lt;/SPAN&gt;&lt;SPAN style="text-indent: 0.5in; line-height: 1.5em; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="text-indent: 0.5in; font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="text-indent: 0.5in; line-height: 1.5em; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Peek_Value_1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; – Qlikview internally assigns values starting from ‘0’ ( ‘0’for the first row/record, ‘1’ for&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the second row and so on).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;So, if we set the value as ‘1’. It reads the value at 2&lt;/SPAN&gt;&lt;SUP style="color: black; font-family: 'Courier New'; line-height: 1.5em;"&gt;nd&lt;/SUP&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt; row and starts assigning the same&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value from 3rd row&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="325"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl85" height="17" width="63"&gt;Name&lt;/TD&gt;&lt;TD class="xl85" style="border-left: none;" width="38"&gt;Value&lt;/TD&gt;&lt;TD class="xl85" style="border-left: none;" width="114"&gt;Peek_Value&lt;/TD&gt;&lt;TD class="xl85" style="border-left: none;" width="110"&gt;Peek_Value_1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl86" height="17" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl87" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl88" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl88" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl86" height="17" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl87" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl89" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl88" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl86" height="17" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD align="right" class="xl87" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl89" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl89" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl86" height="17" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl87" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl89" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl89" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl86" height="17" style="border-top: none;"&gt;E&lt;/TD&gt;&lt;TD align="right" class="xl87" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl89" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl89" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl86" height="17" style="border-top: none;"&gt;F&lt;/TD&gt;&lt;TD align="right" class="xl87" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl89" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl89" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For More clarity &amp;amp; real time example, Please take a look at the document on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4073"&gt;Peek() vs Previous() – When to Use Each&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701657#M541139</guid>
      <dc:creator>sureshbaabu</dc:creator>
      <dc:date>2014-07-03T06:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Peek function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701658#M541140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read some of the best documents with examples also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1304"&gt;Using Peek and Previous Functions Recursively to Help Transform Data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4073"&gt;Peek() vs Previous() – When to Use Each&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 06:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Peek-function/m-p/701658#M541140</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-07-03T06:40:06Z</dc:date>
    </item>
  </channel>
</rss>

