<?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 &amp; Resident Loads - Need help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-Function-Resident-Loads-Need-help/m-p/660621#M1060167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shoubhik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should place the name of the table between ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinSessionDt = Peek('Expression1',0,'Peek_Audit_Master');&lt;/P&gt;&lt;P&gt;LET vMaxSessionDt = Peek('Expression1',-1,'Peek_Audit_Master');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Werner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Oct 2014 19:51:24 GMT</pubDate>
    <dc:creator>wernerprovelu</dc:creator>
    <dc:date>2014-10-05T19:51:24Z</dc:date>
    <item>
      <title>Peek Function &amp; Resident Loads - Need help</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Function-Resident-Loads-Need-help/m-p/660620#M1060166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am faily new to Qlikview and here is the code extract, I have already loaded data and placed it into a qvd. Now I am read from this qvd.&lt;/P&gt;&lt;P&gt;Peek_Audit_Master:&lt;/P&gt;&lt;P&gt;LOAD Run_Id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repository_Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Server_Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Informatica_Folder_Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Workflow_Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mapping_Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session_Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session_Start_Time, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session_End_Time, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ts_Etl_Created,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ts_Etl_Updated&lt;/P&gt;&lt;P&gt;FROM Peek_Audit_Master.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// The below two peek functions correctly give me the values of the min and max dates.&lt;/P&gt;&lt;P&gt;LET vMinSessionDate = Peek('Session_Start_Time',0,Peek_Audit_Master);&lt;/P&gt;&lt;P&gt;LET vMaxSessionDate = Peek('Session_Start_Time',-1,Peek_Audit_Master);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am adding a temp table to do something but I dont't drop this table.&lt;/P&gt;&lt;P&gt;TempTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Session_Start_Time AS Format_Session_Start_Time&lt;/P&gt;&lt;P&gt;RESIDENT Peek_Audit_Master;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;// Problem is with the below two statements, the peek function returns me NULL values when I use these values in a textbox //to display the values.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LET vMinSessionDt = Peek('Session_Start_Time',0,Peek_Audit_Master);&lt;/P&gt;&lt;P&gt;LET vMaxSessionDt = Peek('Session_Start_Time',-1,Peek_Audit_Master);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas why is it not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shoubhik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Oct 2014 18:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Function-Resident-Loads-Need-help/m-p/660620#M1060166</guid>
      <dc:creator />
      <dc:date>2014-10-05T18:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Peek Function &amp; Resident Loads - Need help</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Function-Resident-Loads-Need-help/m-p/660621#M1060167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shoubhik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should place the name of the table between ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinSessionDt = Peek('Expression1',0,'Peek_Audit_Master');&lt;/P&gt;&lt;P&gt;LET vMaxSessionDt = Peek('Expression1',-1,'Peek_Audit_Master');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Werner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Oct 2014 19:51:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Function-Resident-Loads-Need-help/m-p/660621#M1060167</guid>
      <dc:creator>wernerprovelu</dc:creator>
      <dc:date>2014-10-05T19:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Peek Function &amp; Resident Loads - Need help</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Function-Resident-Loads-Need-help/m-p/660622#M1060168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your help Werner! This totally works now. So the reason why the variables - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vMinSessionDate and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vMaxSessionDate where still getting evaluated correctly though the table name was not in '' was due to qlikview taking the table loaded in preceding statement by default.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the QVW for reference for other folks who may find it useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 05:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Function-Resident-Loads-Need-help/m-p/660622#M1060168</guid>
      <dc:creator />
      <dc:date>2014-10-06T05:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Peek Function &amp; Resident Loads - Need help</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Function-Resident-Loads-Need-help/m-p/660623#M1060169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct.&lt;/P&gt;&lt;P&gt;The TempTable doesn't contain the field &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Session_Start_Time&lt;/SPAN&gt;, so the variable couldn't get evaluated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 06:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Function-Resident-Loads-Need-help/m-p/660623#M1060169</guid>
      <dc:creator>wernerprovelu</dc:creator>
      <dc:date>2014-10-06T06:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Peek Function &amp; Resident Loads - Need help</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Function-Resident-Loads-Need-help/m-p/660624#M1060170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you getting correct Min and Max date? Check attached qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 06:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Function-Resident-Loads-Need-help/m-p/660624#M1060170</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-06T06:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Peek Function &amp; Resident Loads - Need help</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Function-Resident-Loads-Need-help/m-p/660625#M1060171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works as well. Thanks so much Anbu. The thing is '' being used for the table name for Qlikview to evaluate the reference correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 03:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Function-Resident-Loads-Need-help/m-p/660625#M1060171</guid>
      <dc:creator />
      <dc:date>2014-10-08T03:28:29Z</dc:date>
    </item>
  </channel>
</rss>

