<?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 function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/peek-function/m-p/400554#M1155765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks !!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Mar 2013 22:50:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-02T22:50:01Z</dc:date>
    <item>
      <title>peek function</title>
      <link>https://community.qlik.com/t5/QlikView/peek-function/m-p/400551#M1155762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;see the example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load AAA from MYTABLE where MYFIELD = '1'&lt;/P&gt;&lt;P&gt;let MYVAR = peek('AAA')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load AAA from MYTABLE where MYFIELD = '2'&lt;/P&gt;&lt;P&gt;let MYVAR2 = peek('AAA')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is rising when I don't find any records in the second loading. In this case MYVAR2 has the same value of MYVAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I avoid it ? Is there a way to insert a condition ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help please &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 23:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-function/m-p/400551#M1155762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-01T23:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: peek function</title>
      <link>https://community.qlik.com/t5/QlikView/peek-function/m-p/400552#M1155763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could examine the number of records after the first load, then again after the second load to determine whether new records were concatenated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vRecCount = NoOfRows('TableName');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could load the AAA field to a temp field which is unique for both loads... so in the first load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AAA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AAA as Tmp_AAA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the second load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AAA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AAA as Tmp2_AAA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can peek at Tmp_AAA and Tmp2_AAA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then just Drop Fields to get rid of the fields after.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 01:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-function/m-p/400552#M1155763</guid>
      <dc:creator />
      <dc:date>2013-03-02T01:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: peek function</title>
      <link>https://community.qlik.com/t5/QlikView/peek-function/m-p/400553#M1155764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The peek function without the row parameter will give the last value of the field. If no rows were concatenated, then the value would remain the same. If you need to know the last values of both loads independently, then load the values into separate fields or tables. The tables can be concatenated together after running the peek function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 01:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-function/m-p/400553#M1155764</guid>
      <dc:creator />
      <dc:date>2013-03-02T01:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: peek function</title>
      <link>https://community.qlik.com/t5/QlikView/peek-function/m-p/400554#M1155765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks !!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 22:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-function/m-p/400554#M1155765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-02T22:50:01Z</dc:date>
    </item>
  </channel>
</rss>

