<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PEEK() Related Query ??? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824268#M1021266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your welcome Abhilash &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2015 10:56:17 GMT</pubDate>
    <dc:creator>jyothish8807</dc:creator>
    <dc:date>2015-03-18T10:56:17Z</dc:date>
    <item>
      <title>PEEK() Related Query ???</title>
      <link>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824262#M1021260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am new to Qlikview.I am trying to analyse Peek() functionality ,but i am unable to understand the exact functionality of this.It will be better if someone helps me to understand by giving some example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what are the difference outputs we get by using the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peek('Fieldname',1)&lt;/P&gt;&lt;P&gt;peek('Fieldname',2)&lt;/P&gt;&lt;P&gt;...................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peek('Fieldname',-1)&lt;/P&gt;&lt;P&gt;peek('Fieldname',-2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;......................................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 09:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824262#M1021260</guid>
      <dc:creator />
      <dc:date>2015-03-18T09:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: PEEK() Related Query ???</title>
      <link>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824263#M1021261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peek() is used in the script, pick()&amp;nbsp; - on the front end.&amp;nbsp; From Help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;peek(fieldname [ , row [ , tablename ] ] ) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Returns the contents of the fieldname in the record specified by row in the internal table tablename. Data are fetched from the associative QlikView database.&lt;/P&gt;&lt;P&gt;Fieldname must be given as a string (e.g. a quoted literal).&lt;/P&gt;&lt;P&gt;Row 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 row is stated, -1 is assumed.&lt;/P&gt;&lt;P&gt;Tablename is a table label, see Table Labels, without the ending colon. If no tablename 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&gt;&lt;STRONG&gt;Examples:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;peek( 'Sales' ) &lt;BR /&gt;returns the value of Sales in the previous record read ( equivalent to previous(Sales) ).&lt;/P&gt;&lt;P&gt;peek( 'Sales', 2 ) &lt;BR /&gt;returns the value of Sales from the third record read from the current internal table.&lt;/P&gt;&lt;P&gt;peek( 'Sales', -2 ) &lt;BR /&gt;returns the value of Sales from the second last record read into the current internal table.&lt;/P&gt;&lt;P&gt;peek( 'Sales', 0, 'Tab1' ) &lt;BR /&gt;returns the value of Sales from the first record read into the input table labeled Tab1.&lt;/P&gt;&lt;P&gt;Load A, B, numsum( B, peek( 'Bsum' ) ) as Bsum...; &lt;BR /&gt;creates an accumulation of B in Bsum.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;pick(n, expr1[ , expr2,...exprN]) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Returns the n:th expression in the list. n is an integer between 1 and N.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;pick( N'A''B'4, , , )&lt;/P&gt;&lt;P&gt;returns 'B' if N = 2&lt;/P&gt;&lt;P&gt;returns 4 if N = 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 10:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824263#M1021261</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2015-03-18T10:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: PEEK() Related Query ???</title>
      <link>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824264#M1021262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And peek function is only use in script part we cant use it on front-end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 10:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824264#M1021262</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2015-03-18T10:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: PEEK() Related Query ???</title>
      <link>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824265#M1021263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4073"&gt;http://community.qlik.com/docs/DOC-4073&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 10:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824265#M1021263</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2015-03-18T10:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: PEEK() Related Query ???</title>
      <link>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824266#M1021264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Kc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 10:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824266#M1021264</guid>
      <dc:creator />
      <dc:date>2015-03-18T10:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: PEEK() Related Query ???</title>
      <link>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824267#M1021265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhilash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peek() is very usefull in several scenarios where we need to selct top or bottom value in a field of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Peek('Field_Name',position,'Table_name');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here position will be represented with two values 0/-1.&lt;/P&gt;&lt;P&gt;Position 0=Return first Position values of that field in the specified table.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Position -1=Return Last position values of that field in the specified table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SNO COUNTRY&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; India&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; US&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peek('COUNTRY',0,'Table1') will return India.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Peek('COUNTRY',-1,'Table1') will return UK.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 10:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824267#M1021265</guid>
      <dc:creator>hariprasadqv</dc:creator>
      <dc:date>2015-03-18T10:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: PEEK() Related Query ???</title>
      <link>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824268#M1021266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your welcome Abhilash &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 10:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824268#M1021266</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2015-03-18T10:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: PEEK() Related Query ???</title>
      <link>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824269#M1021267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Abhilash,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; peek functon return the values from coresponding field based on the specified intiger value wise.&lt;/P&gt;&lt;P&gt;syntax : peek('FieldName',interger,'TableName')&lt;/P&gt;&lt;P&gt;ifwe mention Integer as 0 - it returns first record&lt;/P&gt;&lt;P&gt;if we mention interger as 1 - it returns second record&lt;/P&gt;&lt;P&gt;ifwe mention interger value as -1 - it returns last first record.&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;Ravindra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 11:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PEEK-Related-Query/m-p/824269#M1021267</guid>
      <dc:creator>ravindraa</dc:creator>
      <dc:date>2015-03-18T11:01:37Z</dc:date>
    </item>
  </channel>
</rss>

