<?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 How Peek() function works - detailed explanation in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-Peek-function-works-detailed-explanation/ta-p/1801695</link>
    <description>&lt;P&gt;The peek function uses the following syntax :&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;Peek( field_name [, row_no[, table_name ] ])&lt;/PRE&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;Only the field_name is mandatory.&lt;/LI&gt;
&lt;LI&gt;row_no and table_name are optional parameters.&lt;/LI&gt;
&lt;LI&gt;Table_name has a dependency with row_no, which means that&amp;nbsp;table_name cannot be used without row_no.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Source:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Peek.htm" target="_blank" rel="noopener" data-cke-saved-href="https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Peek.htm"&gt;Peek - script function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Business" id="qlikSenseBusiness"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise SaaS" id="qlikSenseEnterpriseSaaS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Resolution&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;EmployeeDates:
Load * Inline [
EmployeeCode|StartDate|EndDate
101|02/11/2010|23/06/2012
102|01/11/2011|30/11/2013
103|02/01/2012|
104|02/01/2012|31/03/2012
105|01/04/2012|31/01/2013
106|02/11/2013|
] (delimiter is '|');&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;let test = Peek('EmployeeCode',-2,'EmployeeDates') ; -&amp;gt; &lt;STRONG&gt;Correct, both row_no and table_name are being used at the same time&lt;/STRONG&gt;
trace $(test); &lt;STRONG&gt;result = 105&lt;/STRONG&gt;
let test1 = Peek('EmployeeCode') ; &lt;STRONG&gt;-&amp;gt; Correct, if no row is stated, -1 is assumed and if no&amp;nbsp;table_name&amp;nbsp;is stated, the current table is assumed.&lt;/STRONG&gt;
trace $(test1); &lt;STRONG&gt;result = 106&lt;/STRONG&gt;
let test2 = Peek('EmployeeCode',0) ; -&amp;gt; &lt;STRONG&gt;Correct, if no&amp;nbsp;table_name&amp;nbsp;is stated, the current table is assumed.&lt;/STRONG&gt;
trace $(test2);  &lt;STRONG&gt;result = 101&lt;/STRONG&gt;
let test3 = Peek('EmployeeCode','EmployeeDates') ; -&amp;gt; &lt;STRONG&gt;Incorrect, row_no is not being specified in this case.&lt;/STRONG&gt;
trace $(test3);  &lt;SPAN&gt;&lt;STRONG&gt;result = NULL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2022 19:15:54 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2022-05-10T19:15:54Z</dc:date>
    <item>
      <title>How Peek() function works - detailed explanation</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-Peek-function-works-detailed-explanation/ta-p/1801695</link>
      <description>&lt;P&gt;The peek function uses the following syntax :&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;Peek( field_name [, row_no[, table_name ] ])&lt;/PRE&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;Only the field_name is mandatory.&lt;/LI&gt;
&lt;LI&gt;row_no and table_name are optional parameters.&lt;/LI&gt;
&lt;LI&gt;Table_name has a dependency with row_no, which means that&amp;nbsp;table_name cannot be used without row_no.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Source:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Peek.htm" target="_blank" rel="noopener" data-cke-saved-href="https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Peek.htm"&gt;Peek - script function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Business" id="qlikSenseBusiness"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise SaaS" id="qlikSenseEnterpriseSaaS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Resolution&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;EmployeeDates:
Load * Inline [
EmployeeCode|StartDate|EndDate
101|02/11/2010|23/06/2012
102|01/11/2011|30/11/2013
103|02/01/2012|
104|02/01/2012|31/03/2012
105|01/04/2012|31/01/2013
106|02/11/2013|
] (delimiter is '|');&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;let test = Peek('EmployeeCode',-2,'EmployeeDates') ; -&amp;gt; &lt;STRONG&gt;Correct, both row_no and table_name are being used at the same time&lt;/STRONG&gt;
trace $(test); &lt;STRONG&gt;result = 105&lt;/STRONG&gt;
let test1 = Peek('EmployeeCode') ; &lt;STRONG&gt;-&amp;gt; Correct, if no row is stated, -1 is assumed and if no&amp;nbsp;table_name&amp;nbsp;is stated, the current table is assumed.&lt;/STRONG&gt;
trace $(test1); &lt;STRONG&gt;result = 106&lt;/STRONG&gt;
let test2 = Peek('EmployeeCode',0) ; -&amp;gt; &lt;STRONG&gt;Correct, if no&amp;nbsp;table_name&amp;nbsp;is stated, the current table is assumed.&lt;/STRONG&gt;
trace $(test2);  &lt;STRONG&gt;result = 101&lt;/STRONG&gt;
let test3 = Peek('EmployeeCode','EmployeeDates') ; -&amp;gt; &lt;STRONG&gt;Incorrect, row_no is not being specified in this case.&lt;/STRONG&gt;
trace $(test3);  &lt;SPAN&gt;&lt;STRONG&gt;result = NULL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 19:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-Peek-function-works-detailed-explanation/ta-p/1801695</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2022-05-10T19:15:54Z</dc:date>
    </item>
  </channel>
</rss>

