<?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 peek function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/peek-function/m-p/353454#M131144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Celambarasan: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply so fast. And I have another question. When I create a QV "What if" Analysis, user want to save his results as version1,version2...., and can compare these versions,&amp;nbsp; also want to write back the data to DB.&lt;/P&gt;&lt;P&gt;can Qlikview do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks/peach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2012 05:47:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-15T05:47:11Z</dc:date>
    <item>
      <title>peek function</title>
      <link>https://community.qlik.com/t5/QlikView/peek-function/m-p/353450#M131140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;peek function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 02:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-function/m-p/353450#M131140</guid>
      <dc:creator>piyush01</dc:creator>
      <dc:date>2012-03-15T02:56:50Z</dc:date>
    </item>
    <item>
      <title>peek function</title>
      <link>https://community.qlik.com/t5/QlikView/peek-function/m-p/353451#M131141</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;Sorry if I miss understanding your question. Actually I don't know what you want yet. By the way you read through in help. Somthing like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor47"&gt;&lt;/A&gt;&lt;A name="peek"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;peek(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;fieldname [ , row [ , tablename ] ] &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the contents of the &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; in the record specified by &lt;SPAN class="Italic"&gt;row&lt;/SPAN&gt; in the internal table &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt;. Data are fetched from the associative QlikView database. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Fieldname&lt;/SPAN&gt; must be given as a string (e.g. a quoted literal). &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Row&lt;/SPAN&gt; must be an integer. 0 denotes the first record, 1 the second and so on. Negative numbers indicate order from the end of the table. -1 denotes the last record read. &lt;/P&gt;&lt;P&gt;If no &lt;SPAN class="Italic"&gt;row&lt;/SPAN&gt; is stated, -1 is assumed. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Tablename&lt;/SPAN&gt; is a table label, see &lt;A _jive_internal="true" class="MCXref_0" href="https://community.qlik.com/Table_labels.htm"&gt;&lt;EM&gt;Table Labels&lt;/EM&gt;&lt;/A&gt;, without the ending colon. If no &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt; is stated, the current table is assumed. If used outside the load statement or referring to another table, the tablename must be included. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales' )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; in the previous record read ( equivalent to &lt;SPAN class="Bold"&gt;previous(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;) &lt;/SPAN&gt;). &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales', 2 )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; from the third record read from the current internal table. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales', -2 )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; from the second last record read into the current internal table. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales', 0, 'Tab1' )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; from the first record read into the input table labeled Tab1. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Load A, B, numsum( B, peek( 'Bsum' ) ) as Bsum...;&lt;/SPAN&gt; &lt;BR /&gt;creates an accumulation of B in Bsum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 03:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-function/m-p/353451#M131141</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2012-03-15T03:37:07Z</dc:date>
    </item>
    <item>
      <title>peek function</title>
      <link>https://community.qlik.com/t5/QlikView/peek-function/m-p/353452#M131142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; HI sokkorn:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I can use peek funtion to do this question:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 350px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="18" width="120"&gt;Material_Code&lt;/TD&gt;&lt;TD width="230"&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; Vendor_Code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="18"&gt;111.03.104&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;611808&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="18"&gt;111.03.104&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;611809&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="18"&gt;111.03.105&lt;/TD&gt;&lt;TD align="right"&gt;611801&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User Only want the first row group by Material Code&lt;/P&gt;&lt;P&gt;For example, when Material code = 111.03.104 then Vendor code = 611808, and when Material code = 111.03.105 then vendor code = 611801....&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 350px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="18" width="120"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 03:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-function/m-p/353452#M131142</guid>
      <dc:creator />
      <dc:date>2012-03-15T03:56:18Z</dc:date>
    </item>
    <item>
      <title>peek function</title>
      <link>https://community.qlik.com/t5/QlikView/peek-function/m-p/353453#M131143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Peek function is to pick the value from the table that we specified in that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Peek('FieldName') picks the last value from the field that have loaded so for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Peek('FieldName',0,'TableName') picks the first value from the specified field in the table(which is optional) given.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0-First value,1-second value and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here we cann't do group by.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For your case use &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Material_Code,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstValue(Vendor_Code) as FirstVendor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableName Group by Material_Code;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 04:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-function/m-p/353453#M131143</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-15T04:31:51Z</dc:date>
    </item>
    <item>
      <title>peek function</title>
      <link>https://community.qlik.com/t5/QlikView/peek-function/m-p/353454#M131144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Celambarasan: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply so fast. And I have another question. When I create a QV "What if" Analysis, user want to save his results as version1,version2...., and can compare these versions,&amp;nbsp; also want to write back the data to DB.&lt;/P&gt;&lt;P&gt;can Qlikview do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks/peach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 05:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-function/m-p/353454#M131144</guid>
      <dc:creator />
      <dc:date>2012-03-15T05:47:11Z</dc:date>
    </item>
  </channel>
</rss>

