<?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>article Missing Manual - Peek() in Member Articles</title>
    <link>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/ta-p/1487713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG __jive_id="82248" alt="1f4fe19.jpg" class="jive-image image-12" height="37" src="https://community.qlik.com/legacyfs/online/89541_1f4fe19.jpg" style="height: 37px; float: left; width: 37px;" width="37" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: center;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have you ever wondered how the examples from the Qlikview help may look like?&lt;/P&gt;&lt;P style="text-align: center;"&gt;Please see below and enjoy responsibly...&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: center;"&gt;&lt;SPAN style="font-size: 18pt; text-decoration: underline; font-family: 'book antiqua', palatino;"&gt;&lt;STRONG&gt;&lt;EM&gt;Peek()&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: center;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri, verdana, arial, sans-serif;"&gt;not a boo...&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: center;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: center;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: center;"&gt;This function belongs to to &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: center;"&gt;&lt;EM&gt;&lt;STRONG&gt;Inter-Record &lt;/STRONG&gt;&lt;/EM&gt;functions and can &lt;STRONG&gt;only&lt;/STRONG&gt; be used in the script (back-end).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: center;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;IMG __jive_id="89545" alt="l-Peek-a-Boo.jpg" class="image-23 jive-image" height="192" src="https://community.qlik.com/legacyfs/online/89545_l-Peek-a-Boo.jpg" style="height: 192px; width: 150.990291262136px; float: right;" width="151" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;Description&lt;SPAN style="color: #999999; font-size: 8pt;"&gt;(Qlikview Help)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&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&amp;nbsp; 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 style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="font-size: 16px; font-family: arial, helvetica, sans-serif; text-decoration: underline;"&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;IMG __jive_id="89533" alt="2015-06-15_235908.png" class="jive-image image-21" src="https://community.qlik.com/legacyfs/online/89533_2015-06-15_235908.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;STRONG&gt;Field_name&lt;/STRONG&gt; -&amp;nbsp; is a name of of your field(column)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;STRONG&gt;row_no&lt;/STRONG&gt; - the row from which the data is returned&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #808080; font-size: 8pt; font-family: 'comic sans ms', sans-serif;"&gt;&lt;EM&gt;(0 is first row&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #808080; font-size: 8pt; font-family: 'comic sans ms', sans-serif;"&gt;&lt;EM&gt;1 is second row&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #808080; font-size: 8pt; font-family: 'comic sans ms', sans-serif;"&gt;&lt;EM&gt;and so on..&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #808080; font-size: 8pt; font-family: 'comic sans ms', sans-serif;"&gt;&lt;EM&gt;-1 is the last row)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;STRONG&gt;table_name&lt;/STRONG&gt; - a name of table from where the data are fetched&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;IMG __jive_id="81776" class="jive-image image-4" height="34" src="https://community.qlik.com/legacyfs/online/89543_pastedImage_0.png" style="font-size: 13.3333330154419px;" width="96" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="text-align: left; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Returns values from previous row or row specified by the&lt;EM&gt; row-no&lt;/EM&gt; argument.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If no &lt;SPAN class="Italic"&gt;row&lt;/SPAN&gt; is stated, -1 is assumed.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;you can reference field that was &lt;STRONG&gt;not&lt;/STRONG&gt; &lt;STRONG&gt;been&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;STRONG&gt;previously&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt; loaded (created on the with &lt;SPAN style="color: #3366ff;"&gt;AS&lt;/SPAN&gt; alias)&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;(See "Bonus 2" example)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;From the Help description &lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;EM&gt;"&lt;SPAN class="Italic" style="font-size: 13.3333330154419px;"&gt;Fieldname&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'andale mono', times;"&gt;&lt;EM&gt; must be given as a string (e.g. a quoted literal)."&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'andale mono', times;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;SPAN style="; font-size: 8pt; font-family: 'arial black', 'avant garde';"&gt;&lt;STRONG&gt;&amp;nbsp; This is true only if we use this function to create variable (please see below examples)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'andale mono', times;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="; text-align: left; font-size: 12pt; text-decoration: underline; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;Data Model&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="text-align: left; font-size: 18pt; font-family: 'book antiqua', palatino; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;(Copy and Pasted below code into Edit Script window and reload)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;peek(Sales) as S1,&lt;/P&gt;&lt;P&gt;peek( Sales,2 ) as S2,&lt;/P&gt;&lt;P&gt;peek( Sales,-2 ) as S3,&lt;/P&gt;&lt;P&gt;if(rowno()=1,Sales,Peek(RunnigTotal,-1)+Sales) as RunnigTotal,&lt;/P&gt;&lt;P&gt;Previous(Sales) as PSales,&lt;/P&gt;&lt;P&gt;numsum( Sales, peek( 'Sales' ) ) as Bsum,&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;inline [&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;100&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;300&lt;/P&gt;&lt;P&gt;400&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;peek( Sales, 0, 'Tab1' )as S4&lt;/P&gt;&lt;P&gt;resident Tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vpeek= peek( 'Sales', -1, 'Tab1' ) ;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: blue; font-size: 12pt; text-decoration: underline; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;IMG __jive_id="89560" alt="ligtbulb.jpg" class="jive-image" height="20" src="https://community.qlik.com/legacyfs/online/89560_ligtbulb.jpg" style="width: 17px; height: 19.55px;" width="17" /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;Please see below &lt;A href="https://community.qlik.com/people/swuehl" target="_blank"&gt;swuehl&lt;/A&gt; comments about difference when you use negative or positive numbers as second argument.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;Is worth to mention that&lt;SPAN style="color: #3366ff;"&gt; &lt;SPAN style="color: #0000ff;"&gt;Peek&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;()&lt;/SPAN&gt; is reading from &lt;STRONG&gt;Output&lt;/STRONG&gt; table(opposite to &lt;SPAN style="color: #3366ff;"&gt;Previous()&lt;/SPAN&gt; function which reads from &lt;STRONG&gt;Input&lt;/STRONG&gt; Table.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;OutputTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LOAD field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RESIDENT InputTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;source:&lt;A href="https://community.qlik.com/thread/11135" target="_blank"&gt;Difference between peek() and previous() funcation&lt;/A&gt;‌‌‌&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;Example 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;In this example as &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;we did not&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;specify&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;row_no&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt; argument, &lt;SPAN style="text-decoration: underline;"&gt;all but last&lt;/SPAN&gt; rows are returned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier;"&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;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; peek&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;( 'Sales' )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;IMG __jive_id="89553" alt="peek1.png" class="jive-image image-24" height="175" src="https://community.qlik.com/legacyfs/online/89553_peek1.png" style="height: 174.590163934426px; width: 355px; display: block; margin-left: auto; margin-right: auto;" width="355" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&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;&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; &lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier; text-decoration: underline;"&gt;&lt;IMG __jive_id="89560" alt="ligtbulb.jpg" class="jive-image" height="20" src="https://community.qlik.com/legacyfs/online/89560_ligtbulb.jpg" style="width: 17px; height: 19.55px;" width="17" /&gt;peek&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier; text-decoration: underline;"&gt;( 'Sales' ) &lt;SPAN style="font-size: 14pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier; text-decoration: underline;"&gt; peek&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier; text-decoration: underline;"&gt;( 'Sales',-1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;Example 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;IF the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;row_no&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt; argument&amp;nbsp; is added only &lt;STRONG&gt;ONE&lt;/STRONG&gt; value is returned&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff9900; font-size: 14pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff9900; font-size: 16px; font-family: arial, helvetica, sans-serif;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier;"&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; peek&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier;"&gt;( 'Sales',2 )&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #0000ff; font-family: 'courier new', courier; font-size: 16px;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG __jive_id="89591" alt="ligtbulb.jpg" class="jive-image" height="29" src="https://community.qlik.com/legacyfs/online/89591_ligtbulb.jpg" style="width: 25px; height: 28.75px;" width="25" /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;Remember 2 = third row&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: black; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;IMG __jive_id="89558" alt="peek2.png" class="jive-image image-25" height="160" src="https://community.qlik.com/legacyfs/online/89558_peek2.png" style="height: 160px; width: 343.891402714932px; display: block; margin-left: auto; margin-right: auto;" width="344" /&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&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; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;Example 3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;If we use negatives numbers as &lt;EM&gt;row_no&lt;/EM&gt;&amp;nbsp; the return value is our initial table minus number of rows specified by the second argument.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="line-height: 1.5em; text-align: center; color: blue; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff9900; font-size: 16px; text-align: center; line-height: 1.5em;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier;"&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; peek&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier;"&gt;( 'Sales',-2 )&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;IMG __jive_id="89668" alt="2015-06-17_000648.png" class="image-27 jive-image" height="126" src="https://community.qlik.com/legacyfs/online/89668_2015-06-17_000648.png" style="height: 126px; width: 379.223300970874px; display: block; margin-left: auto; margin-right: auto;" width="380" /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="color: #ff9900; font-size: 18.6666660308838px; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;As you see the &lt;SPAN style="text-decoration: underline;"&gt;last 2&lt;/SPAN&gt; rows have been removed from the table.&lt;/SPAN&gt;&lt;SPAN style="; color: black; font-size: 12pt;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'andale mono', times;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: arial, helvetica, sans-serif; text-decoration: underline;"&gt;&lt;STRONG&gt;Example 4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 16px; font-family: 'andale mono', times;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;The below syntax is used when we want to return value from external table&lt;SPAN style="color: #999999; font-size: 8pt;"&gt;&lt;EM&gt;(see data model)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="color: #000000; font-size: 16px; font-family: 'andale mono', times;"&gt;&lt;EM&gt;&lt;SPAN style="color: #3366ff; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;peek&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;( 'Sales', 0, 'Tab1' ) as S4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;IMG __jive_id="89690" alt="2015-06-17_004944.png" class="jive-image image-29" height="154" src="https://community.qlik.com/legacyfs/online/89690_2015-06-17_004944.png" style="height: 154px; width: 513.333333333333px;" width="514" /&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 16px; font-family: arial, helvetica, sans-serif;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;Example 5&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 16px; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Each row is a SUM of current row + one row above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #3366ff; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;numsum&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;( &lt;SPAN style="color: #993300;"&gt;Sales&lt;/SPAN&gt;, &lt;SPAN style="color: #3366ff;"&gt;peek&lt;/SPAN&gt;( 'Sales' ) ) as &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #993300; font-size: 12pt;"&gt;&lt;STRONG&gt;Bsum&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 16px; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;IMG __jive_id="89666" alt="2015-06-16_213048.png" class="image-26 jive-image" height="143" src="https://community.qlik.com/legacyfs/online/89666_2015-06-16_213048.png" style="height: 143px; width: 423.428571428571px; display: block; margin-left: auto; margin-right: auto;" width="424" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 16px; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 16px; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff9900; font-size: 12pt; text-decoration: underline; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;Bonus&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;How to store value into variable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;With below example&lt;/SPAN&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 13.3333330154419px; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3366ff;"&gt;LET&lt;/SPAN&gt; &lt;SPAN style="color: #999999;"&gt;&lt;EM&gt;vpeek&lt;/EM&gt;&lt;/SPAN&gt;= &lt;SPAN style="color: #3366ff;"&gt;peek&lt;/SPAN&gt;( 'Sales', -1, 'Tab1' ) ;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;we will store value of 400&amp;nbsp; in variable &lt;SPAN style="color: #808080; font-family: 'courier new', courier;"&gt;&lt;EM&gt;vpeek&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;and then use in front end development.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;IMG __jive_id="89684" alt="2015-06-17_001509.png" class="jive-image image-28" src="https://community.qlik.com/legacyfs/online/89684_2015-06-17_001509.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff9900; font-size: 12pt; text-decoration: underline; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;Bonus 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff9900; font-size: 12pt; text-decoration: underline; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;As previously stated we can use Peek to return values from field that was&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt; not been yet created&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;How does it wok?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff9900; font-size: 10pt; text-decoration: underline; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;In our data model we have this line:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #575757; font-size: 10pt; text-decoration: underline; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;(&lt;SPAN style="color: #3366ff;"&gt;rowno&lt;/SPAN&gt;()=1,&lt;SPAN style="color: #993300;"&gt;Sales&lt;/SPAN&gt;,&lt;SPAN style="color: #3366ff;"&gt;Peek&lt;/SPAN&gt;(&lt;SPAN style="color: #993300;"&gt;RunnigTotal&lt;/SPAN&gt;,&lt;SPAN style="color: #3366ff;"&gt;-1&lt;/SPAN&gt;)+&lt;SPAN style="color: #993300;"&gt;Sales&lt;/SPAN&gt;) as RunnigTotal,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN&gt;Although&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt; RuningTotal has not yet been loaded we can return the values from that line:&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 24pt; font-family: 'comic sans ms', sans-serif;"&gt;&lt;IMG __jive_id="90088" alt="2015-06-19_145812.png" class="image-30 jive-image" height="143" src="https://community.qlik.com/legacyfs/online/90088_2015-06-19_145812.png" style="height: 142.558303886926px; width: 246px;" width="246" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 24pt; font-family: 'comic sans ms', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 24pt; font-family: 'comic sans ms', sans-serif;"&gt;Still feeling Qlikngry?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 24pt; font-family: 'comic sans ms', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/docs/DOC-8342" target="_blank"&gt;How To /Missing Manual(17 articles)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2022 17:53:53 GMT</pubDate>
    <dc:creator>robert_mika</dc:creator>
    <dc:date>2022-09-20T17:53:53Z</dc:date>
    <item>
      <title>Missing Manual - Peek()</title>
      <link>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/ta-p/1487713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG __jive_id="82248" alt="1f4fe19.jpg" class="jive-image image-12" height="37" src="https://community.qlik.com/legacyfs/online/89541_1f4fe19.jpg" style="height: 37px; float: left; width: 37px;" width="37" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: center;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have you ever wondered how the examples from the Qlikview help may look like?&lt;/P&gt;&lt;P style="text-align: center;"&gt;Please see below and enjoy responsibly...&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: center;"&gt;&lt;SPAN style="font-size: 18pt; text-decoration: underline; font-family: 'book antiqua', palatino;"&gt;&lt;STRONG&gt;&lt;EM&gt;Peek()&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: center;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt; font-family: calibri, verdana, arial, sans-serif;"&gt;not a boo...&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: center;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: center;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: center;"&gt;This function belongs to to &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: center;"&gt;&lt;EM&gt;&lt;STRONG&gt;Inter-Record &lt;/STRONG&gt;&lt;/EM&gt;functions and can &lt;STRONG&gt;only&lt;/STRONG&gt; be used in the script (back-end).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: center;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;IMG __jive_id="89545" alt="l-Peek-a-Boo.jpg" class="image-23 jive-image" height="192" src="https://community.qlik.com/legacyfs/online/89545_l-Peek-a-Boo.jpg" style="height: 192px; width: 150.990291262136px; float: right;" width="151" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;Description&lt;SPAN style="color: #999999; font-size: 8pt;"&gt;(Qlikview Help)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&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&amp;nbsp; 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 style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="font-size: 16px; font-family: arial, helvetica, sans-serif; text-decoration: underline;"&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;IMG __jive_id="89533" alt="2015-06-15_235908.png" class="jive-image image-21" src="https://community.qlik.com/legacyfs/online/89533_2015-06-15_235908.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;STRONG&gt;Field_name&lt;/STRONG&gt; -&amp;nbsp; is a name of of your field(column)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;STRONG&gt;row_no&lt;/STRONG&gt; - the row from which the data is returned&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #808080; font-size: 8pt; font-family: 'comic sans ms', sans-serif;"&gt;&lt;EM&gt;(0 is first row&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #808080; font-size: 8pt; font-family: 'comic sans ms', sans-serif;"&gt;&lt;EM&gt;1 is second row&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #808080; font-size: 8pt; font-family: 'comic sans ms', sans-serif;"&gt;&lt;EM&gt;and so on..&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #808080; font-size: 8pt; font-family: 'comic sans ms', sans-serif;"&gt;&lt;EM&gt;-1 is the last row)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;STRONG&gt;table_name&lt;/STRONG&gt; - a name of table from where the data are fetched&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;IMG __jive_id="81776" class="jive-image image-4" height="34" src="https://community.qlik.com/legacyfs/online/89543_pastedImage_0.png" style="font-size: 13.3333330154419px;" width="96" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="text-align: left; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Returns values from previous row or row specified by the&lt;EM&gt; row-no&lt;/EM&gt; argument.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If no &lt;SPAN class="Italic"&gt;row&lt;/SPAN&gt; is stated, -1 is assumed.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;you can reference field that was &lt;STRONG&gt;not&lt;/STRONG&gt; &lt;STRONG&gt;been&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;STRONG&gt;previously&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt; loaded (created on the with &lt;SPAN style="color: #3366ff;"&gt;AS&lt;/SPAN&gt; alias)&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;(See "Bonus 2" example)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;From the Help description &lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;EM&gt;"&lt;SPAN class="Italic" style="font-size: 13.3333330154419px;"&gt;Fieldname&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'andale mono', times;"&gt;&lt;EM&gt; must be given as a string (e.g. a quoted literal)."&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'andale mono', times;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;SPAN style="; font-size: 8pt; font-family: 'arial black', 'avant garde';"&gt;&lt;STRONG&gt;&amp;nbsp; This is true only if we use this function to create variable (please see below examples)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'andale mono', times;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="; text-align: left; font-size: 12pt; text-decoration: underline; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;Data Model&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="text-align: left; font-size: 18pt; font-family: 'book antiqua', palatino; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;(Copy and Pasted below code into Edit Script window and reload)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;peek(Sales) as S1,&lt;/P&gt;&lt;P&gt;peek( Sales,2 ) as S2,&lt;/P&gt;&lt;P&gt;peek( Sales,-2 ) as S3,&lt;/P&gt;&lt;P&gt;if(rowno()=1,Sales,Peek(RunnigTotal,-1)+Sales) as RunnigTotal,&lt;/P&gt;&lt;P&gt;Previous(Sales) as PSales,&lt;/P&gt;&lt;P&gt;numsum( Sales, peek( 'Sales' ) ) as Bsum,&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;inline [&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;100&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;300&lt;/P&gt;&lt;P&gt;400&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;peek( Sales, 0, 'Tab1' )as S4&lt;/P&gt;&lt;P&gt;resident Tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vpeek= peek( 'Sales', -1, 'Tab1' ) ;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: blue; font-size: 12pt; text-decoration: underline; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;IMG __jive_id="89560" alt="ligtbulb.jpg" class="jive-image" height="20" src="https://community.qlik.com/legacyfs/online/89560_ligtbulb.jpg" style="width: 17px; height: 19.55px;" width="17" /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;Please see below &lt;A href="https://community.qlik.com/people/swuehl" target="_blank"&gt;swuehl&lt;/A&gt; comments about difference when you use negative or positive numbers as second argument.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;Is worth to mention that&lt;SPAN style="color: #3366ff;"&gt; &lt;SPAN style="color: #0000ff;"&gt;Peek&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;()&lt;/SPAN&gt; is reading from &lt;STRONG&gt;Output&lt;/STRONG&gt; table(opposite to &lt;SPAN style="color: #3366ff;"&gt;Previous()&lt;/SPAN&gt; function which reads from &lt;STRONG&gt;Input&lt;/STRONG&gt; Table.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;OutputTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LOAD field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RESIDENT InputTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;source:&lt;A href="https://community.qlik.com/thread/11135" target="_blank"&gt;Difference between peek() and previous() funcation&lt;/A&gt;‌‌‌&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;Example 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;In this example as &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;we did not&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;specify&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;row_no&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt; argument, &lt;SPAN style="text-decoration: underline;"&gt;all but last&lt;/SPAN&gt; rows are returned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier;"&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;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; peek&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;( 'Sales' )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;IMG __jive_id="89553" alt="peek1.png" class="jive-image image-24" height="175" src="https://community.qlik.com/legacyfs/online/89553_peek1.png" style="height: 174.590163934426px; width: 355px; display: block; margin-left: auto; margin-right: auto;" width="355" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&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;&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; &lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier; text-decoration: underline;"&gt;&lt;IMG __jive_id="89560" alt="ligtbulb.jpg" class="jive-image" height="20" src="https://community.qlik.com/legacyfs/online/89560_ligtbulb.jpg" style="width: 17px; height: 19.55px;" width="17" /&gt;peek&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier; text-decoration: underline;"&gt;( 'Sales' ) &lt;SPAN style="font-size: 14pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier; text-decoration: underline;"&gt; peek&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier; text-decoration: underline;"&gt;( 'Sales',-1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;Example 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;IF the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;row_no&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt; argument&amp;nbsp; is added only &lt;STRONG&gt;ONE&lt;/STRONG&gt; value is returned&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff9900; font-size: 14pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff9900; font-size: 16px; font-family: arial, helvetica, sans-serif;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier;"&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; peek&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier;"&gt;( 'Sales',2 )&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #0000ff; font-family: 'courier new', courier; font-size: 16px;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG __jive_id="89591" alt="ligtbulb.jpg" class="jive-image" height="29" src="https://community.qlik.com/legacyfs/online/89591_ligtbulb.jpg" style="width: 25px; height: 28.75px;" width="25" /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;Remember 2 = third row&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: black; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;IMG __jive_id="89558" alt="peek2.png" class="jive-image image-25" height="160" src="https://community.qlik.com/legacyfs/online/89558_peek2.png" style="height: 160px; width: 343.891402714932px; display: block; margin-left: auto; margin-right: auto;" width="344" /&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&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; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;Example 3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="; color: #575757; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;If we use negatives numbers as &lt;EM&gt;row_no&lt;/EM&gt;&amp;nbsp; the return value is our initial table minus number of rows specified by the second argument.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="line-height: 1.5em; text-align: center; color: blue; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff9900; font-size: 16px; text-align: center; line-height: 1.5em;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 12pt; font-family: 'courier new', courier;"&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; peek&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier;"&gt;( 'Sales',-2 )&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;IMG __jive_id="89668" alt="2015-06-17_000648.png" class="image-27 jive-image" height="126" src="https://community.qlik.com/legacyfs/online/89668_2015-06-17_000648.png" style="height: 126px; width: 379.223300970874px; display: block; margin-left: auto; margin-right: auto;" width="380" /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="color: #ff9900; font-size: 18.6666660308838px; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;As you see the &lt;SPAN style="text-decoration: underline;"&gt;last 2&lt;/SPAN&gt; rows have been removed from the table.&lt;/SPAN&gt;&lt;SPAN style="; color: black; font-size: 12pt;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'andale mono', times;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: arial, helvetica, sans-serif; text-decoration: underline;"&gt;&lt;STRONG&gt;Example 4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 16px; font-family: 'andale mono', times;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;The below syntax is used when we want to return value from external table&lt;SPAN style="color: #999999; font-size: 8pt;"&gt;&lt;EM&gt;(see data model)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="color: #000000; font-size: 16px; font-family: 'andale mono', times;"&gt;&lt;EM&gt;&lt;SPAN style="color: #3366ff; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;peek&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;( 'Sales', 0, 'Tab1' ) as S4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;IMG __jive_id="89690" alt="2015-06-17_004944.png" class="jive-image image-29" height="154" src="https://community.qlik.com/legacyfs/online/89690_2015-06-17_004944.png" style="height: 154px; width: 513.333333333333px;" width="514" /&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 16px; font-family: arial, helvetica, sans-serif;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;Example 5&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 16px; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Each row is a SUM of current row + one row above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #3366ff; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;numsum&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;( &lt;SPAN style="color: #993300;"&gt;Sales&lt;/SPAN&gt;, &lt;SPAN style="color: #3366ff;"&gt;peek&lt;/SPAN&gt;( 'Sales' ) ) as &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #993300; font-size: 12pt;"&gt;&lt;STRONG&gt;Bsum&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 16px; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;IMG __jive_id="89666" alt="2015-06-16_213048.png" class="image-26 jive-image" height="143" src="https://community.qlik.com/legacyfs/online/89666_2015-06-16_213048.png" style="height: 143px; width: 423.428571428571px; display: block; margin-left: auto; margin-right: auto;" width="424" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 16px; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 16px; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff9900; font-size: 12pt; text-decoration: underline; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;Bonus&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;How to store value into variable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;With below example&lt;/SPAN&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 13.3333330154419px; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3366ff;"&gt;LET&lt;/SPAN&gt; &lt;SPAN style="color: #999999;"&gt;&lt;EM&gt;vpeek&lt;/EM&gt;&lt;/SPAN&gt;= &lt;SPAN style="color: #3366ff;"&gt;peek&lt;/SPAN&gt;( 'Sales', -1, 'Tab1' ) ;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;we will store value of 400&amp;nbsp; in variable &lt;SPAN style="color: #808080; font-family: 'courier new', courier;"&gt;&lt;EM&gt;vpeek&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;and then use in front end development.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;IMG __jive_id="89684" alt="2015-06-17_001509.png" class="jive-image image-28" src="https://community.qlik.com/legacyfs/online/89684_2015-06-17_001509.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff9900; font-size: 12pt; text-decoration: underline; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;Bonus 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff9900; font-size: 12pt; text-decoration: underline; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;As previously stated we can use Peek to return values from field that was&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt; not been yet created&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;How does it wok?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #ff9900; font-size: 10pt; text-decoration: underline; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;In our data model we have this line:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #575757; font-size: 10pt; text-decoration: underline; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;(&lt;SPAN style="color: #3366ff;"&gt;rowno&lt;/SPAN&gt;()=1,&lt;SPAN style="color: #993300;"&gt;Sales&lt;/SPAN&gt;,&lt;SPAN style="color: #3366ff;"&gt;Peek&lt;/SPAN&gt;(&lt;SPAN style="color: #993300;"&gt;RunnigTotal&lt;/SPAN&gt;,&lt;SPAN style="color: #3366ff;"&gt;-1&lt;/SPAN&gt;)+&lt;SPAN style="color: #993300;"&gt;Sales&lt;/SPAN&gt;) as RunnigTotal,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN&gt;Although&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt; RuningTotal has not yet been loaded we can return the values from that line:&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 24pt; font-family: 'comic sans ms', sans-serif;"&gt;&lt;IMG __jive_id="90088" alt="2015-06-19_145812.png" class="image-30 jive-image" height="143" src="https://community.qlik.com/legacyfs/online/90088_2015-06-19_145812.png" style="height: 142.558303886926px; width: 246px;" width="246" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 24pt; font-family: 'comic sans ms', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 24pt; font-family: 'comic sans ms', sans-serif;"&gt;Still feeling Qlikngry?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 24pt; font-family: 'comic sans ms', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/docs/DOC-8342" target="_blank"&gt;How To /Missing Manual(17 articles)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2022 17:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/ta-p/1487713</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2022-09-20T17:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Manual - Peek()</title>
      <link>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487714#M1679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, I like your series, but this time I think we need to clarify at least one misleading point here (especially since you set the statement in bold letters):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) I believe PEEK() is always returning a value of a single record, never a table&lt;/P&gt;&lt;P&gt;If you use a positive number N as second argument, it will return the the Nth row of the addressed table,&lt;/P&gt;&lt;P&gt;it's an absolute coordinate, counted from the start of your table.&lt;/P&gt;&lt;P&gt;Of course it can only return that row's value when it's existing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use a negative number, it will use the Nth row counted from the end of your adressed table, but if you use peek to address a field within the same table you are loading and using PEEK, the table will grow while loading, thus returning each time a different row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that's what you are seeing in your example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;But PEEK() will always return a single row value, not a table.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 14:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487714#M1679</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-19T14:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Manual - Peek()</title>
      <link>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487715#M1680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;Appreciate you comments and correction.&lt;/P&gt;&lt;P&gt;My aim was to give some layman's term for new users but&amp;nbsp; think I have gone too far.&lt;/P&gt;&lt;P&gt;Your explanation is very right and this is what I was going to say.&lt;/P&gt;&lt;P&gt;I have removed the statement in bold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything else you would change?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 18:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487715#M1680</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-06-19T18:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Manual - Peek()</title>
      <link>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487716#M1681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great resource and really like your open collaboration. Bravo. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 18:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487716#M1681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-19T18:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Manual - Peek()</title>
      <link>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487717#M1682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sara.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 19:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487717#M1682</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-06-19T19:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Manual - Peek()</title>
      <link>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487718#M1683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now since you've linked to my comment in your blog, I should have taken more time in phrasing &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your example 3 should be reviewed, too, demonstrating Peek() with a negative row indicator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Bonus2 could be simplified to:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #3366ff;"&gt;Rangesum( &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #3366ff;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #993300;"&gt;RunnigTotal&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #3366ff;"&gt;-1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #993300;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) as RunnigTotal,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;When talking about Peek(), I think a small introduction to the concept of input / output tables would be beneficial (not only for beginners), this still leads to confusion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Keep on going with your series, I think it's a nice idea / concept!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about Previous() function next?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 21:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487718#M1683</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-19T21:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Manual - Peek()</title>
      <link>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487719#M1684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;I think your example 3 should be reviewed, too, demonstrating Peek() with a negative row indicator.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;What would you like to add/change?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;There is already negative row indicator.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;And Bonus2 could be simplified to:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #3366ff;"&gt;Rangesum( &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #3366ff;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #993300;"&gt;RunnigTotal&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #3366ff;"&gt;-1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #993300;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) as RunnigTotal,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Much more simpler.Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;When talking about Peek(), I think a small introduction to the concept of input / output tables would be beneficial (not only for beginners), this still leads to confusion.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I could not get better that John did (see above)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;Keep on going with your series, I think it's a nice idea / concept!&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Thanks.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;What about Previous() function next?&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;On its way &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 10:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487719#M1684</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-06-20T10:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Manual - Peek()</title>
      <link>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487720#M1685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In example 3, you are still mentioning that the return &lt;EM&gt;value &lt;/EM&gt;is the initial table minus some rows.&lt;/P&gt;&lt;P&gt;I think that's still misleading.&lt;/P&gt;&lt;P&gt;If you use Peek() in a load script, each execution of Peek() will return a single row value of a specific field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at your table, the numbers of rows in the table has not changed. It's just that the first two calls of Peek('Field', -2) have returned NULL, because there weren't any rows that could be accessed at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think there is (at least for me) some mixup between the function call Peek() and the output table that is resulting from the LOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of list boxes, I would prefer to show the resident tables here either as screenshot from the table view, or just manually created. Or create a record number field using recno() and create table boxes using record number and the fields you want to demonstrate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 11:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487720#M1685</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-20T11:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Manual - Peek()</title>
      <link>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487721#M1686</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;Thanks a lot to Robert and Stefan helping me to uncover these basic concepts as I am still a newcomer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I could understand all values loaded and showing up in preview of table viewer. I was scratching my head why few columns are loaded from 3rd row or 4th row or why they don't start from top. So the key point I could make out is against each 'Sales' value loaded, the rest of the columns are filled up based on how Peek expression is being used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I couldn't understand is Peek(Sales,2) i.e. Example 2. Why it is not loaded in 3rd row against sales value of '300'. I could get why nothing will be filled in S2 column&amp;nbsp; in 1st and 2nd row as by that time (Sales,2) is not loaded but once '300' loaded it should show in 3rd row. Currently it appears on 4th row. Appreciate your help in understanding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 08:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487721#M1686</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-06-21T08:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Manual - Peek()</title>
      <link>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487722#M1687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I believe that's caused by the subtle difference between the input and output table. PEEK() is addressing the output table, so while the 3rd input record is being processed in the LOAD statement, there actually is no row #3 in the output table.&lt;/P&gt;&lt;P&gt;Only the 4th input record can start addressing the third output table row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 10:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487722#M1687</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-21T10:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Manual - Peek()</title>
      <link>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487723#M1688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;If i want to see char values like a, a+b, a+b+c like that how can i show that.&lt;IMG alt="a+b.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146986_a+b.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 12:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Missing-Manual-Peek/tac-p/1487723#M1688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-19T12:17:24Z</dc:date>
    </item>
  </channel>
</rss>

