<?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 Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-Function-Issue/m-p/320145#M1188277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pooja x,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can indeed read the next record from an already read in input table, like in your sample. peek function takes up to three parameter, with second you can specify the record number and with third the input table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;logInOut:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Name,&lt;/P&gt;&lt;P&gt;loginDate as login,&lt;/P&gt;&lt;P&gt;peek('logoutDate',recno(),'Final') as logout&lt;/P&gt;&lt;P&gt;resident Final;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;recno() starts counting record with 1, but peek the field index with 0, so just a recno() will ask for the next record of the input table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Oct 2011 19:34:40 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-10-09T19:34:40Z</dc:date>
    <item>
      <title>Peek Function Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Function-Issue/m-p/320144#M1188276</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;I am having some issue with Peek function.Here I have attached the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short the issue is -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initial table looks like &lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 40%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;loginDate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;logoutDate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bob&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;P&gt;10/01/2011 10.15 AM &lt;/P&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bob&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;10/01/2011 10.30 AM &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bob&lt;/TD&gt;&lt;TD&gt;10/03/2011 10.45 AM&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bob&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;10/03/2011 11.00 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bob&lt;/TD&gt;&lt;TD&gt;10/06/2011 11.30 AM&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;then I used the peek function on loginDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;logoutdate as logout,&lt;/P&gt;&lt;P&gt;peek(loginDate) as login &lt;/P&gt;&lt;P&gt;resident table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after this the table looked like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 40%; border: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;login&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;logout&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bob&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;10/01/2011 10.15 AM &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;10/01/2011 10.30 AM &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bob&lt;/TD&gt;&lt;TD&gt;10/03/2011 10.45 AM&lt;/TD&gt;&lt;TD&gt;10/03/2011 11.00 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bob&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The peek function couldn't read the last login record.(as there is no logout for that last login)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help on this?Peek function reads the previous record.is there a way to read next record in qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 04:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Function-Issue/m-p/320144#M1188276</guid>
      <dc:creator />
      <dc:date>2011-10-07T04:25:21Z</dc:date>
    </item>
    <item>
      <title>Peek Function Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Function-Issue/m-p/320145#M1188277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pooja x,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can indeed read the next record from an already read in input table, like in your sample. peek function takes up to three parameter, with second you can specify the record number and with third the input table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;logInOut:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Name,&lt;/P&gt;&lt;P&gt;loginDate as login,&lt;/P&gt;&lt;P&gt;peek('logoutDate',recno(),'Final') as logout&lt;/P&gt;&lt;P&gt;resident Final;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;recno() starts counting record with 1, but peek the field index with 0, so just a recno() will ask for the next record of the input table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Oct 2011 19:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Function-Issue/m-p/320145#M1188277</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-09T19:34:40Z</dc:date>
    </item>
    <item>
      <title>Peek Function Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Function-Issue/m-p/320146#M1188278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; thank you so much for your time...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 02:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Function-Issue/m-p/320146#M1188278</guid>
      <dc:creator />
      <dc:date>2011-10-11T02:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Peek Function Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-Function-Issue/m-p/320147#M1188279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I hope the attached file will solve u r prupose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 05:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-Function-Issue/m-p/320147#M1188279</guid>
      <dc:creator />
      <dc:date>2011-10-11T05:32:16Z</dc:date>
    </item>
  </channel>
</rss>

