<?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: Misbehaving Peek() Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Misbehaving-Peek-Function/m-p/825764#M1045016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Let vPeek = Peek('ID',7,'TABL1')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&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;"&gt;QlikView documentation claims the syntax is as you have written, but in fact you have to use quotes around the table name. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;The default behavior of Peek is to read from the last loaded table. When you do not use quotes around the table name it will try to evaluate the field TABL1 and that will return Null(). It will then try to read the field ID from the last loaded table, namely TABL2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Hope that clears it up for you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SKG&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2014 23:33:36 GMT</pubDate>
    <dc:creator>simenkg</dc:creator>
    <dc:date>2014-11-26T23:33:36Z</dc:date>
    <item>
      <title>Misbehaving Peek() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Misbehaving-Peek-Function/m-p/825763#M1045014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;I found an oddity with the Peek function and hope there is a solution to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 Load statements for TABL1 and TABL2, preceded by a Qualify *; and Unqualify ID;&lt;/P&gt;&lt;P&gt;At the end of the data load I have a statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vPeek = Peek('ID',7,TABL1) so that I can see what is in the 8th record&lt;/P&gt;&lt;P&gt;(At this stage I know what will be there because the data I load is an INLINE load of sample data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When viewing the value in variable vPeek it contains the data from TABL2 (second table to be loaded)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove the Qualify and Unqualify statements the variable value is as I expect it to be from TABL1&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 23:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Misbehaving-Peek-Function/m-p/825763#M1045014</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2014-11-26T23:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Misbehaving Peek() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Misbehaving-Peek-Function/m-p/825764#M1045016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Let vPeek = Peek('ID',7,'TABL1')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&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;"&gt;QlikView documentation claims the syntax is as you have written, but in fact you have to use quotes around the table name. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;The default behavior of Peek is to read from the last loaded table. When you do not use quotes around the table name it will try to evaluate the field TABL1 and that will return Null(). It will then try to read the field ID from the last loaded table, namely TABL2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Hope that clears it up for you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SKG&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 23:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Misbehaving-Peek-Function/m-p/825764#M1045016</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-11-26T23:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Misbehaving Peek() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Misbehaving-Peek-Function/m-p/825765#M1045018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;That indeed corrected the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 23:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Misbehaving-Peek-Function/m-p/825765#M1045018</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2014-11-26T23:38:34Z</dc:date>
    </item>
  </channel>
</rss>

