<?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 AW:Problem with Peek() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Peek/m-p/230418#M82247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Eva,&lt;/P&gt;&lt;P&gt;couldn't believe that your posted script code doesn't work as expected. For that reason I tried it for my own. And it works fine. Take a look at my little exam app. So what are the differences to your app?&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Feb 2011 11:44:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-25T11:44:47Z</dc:date>
    <item>
      <title>Problem with Peek()</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Peek/m-p/230415#M82244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For comparison I need the previous values from 2 fields, but for some reason, peek() and previous() always take the values from the current row, not the previous row:&lt;/P&gt;&lt;P&gt;[Verfahren/Teilverfahren]:&lt;BR /&gt;load&lt;BR /&gt; Object_ID,&lt;BR /&gt; Verfahren,&lt;BR /&gt; peek('Verfahren') as Verfahren_Previous,&lt;BR /&gt; peek('Object_ID') as ID_Previous&lt;BR /&gt;resident Teilverfahren;&lt;/P&gt;&lt;P&gt;Results in:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3662_sourceID:3662" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 10:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Peek/m-p/230415#M82244</guid>
      <dc:creator />
      <dc:date>2011-02-25T10:49:06Z</dc:date>
    </item>
    <item>
      <title>Problem with Peek()</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Peek/m-p/230416#M82245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;peek(recno()&amp;lt;=2,'',peek(ID_Previous,recno()-2)) as FieldName&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 10:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Peek/m-p/230416#M82245</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-02-25T10:59:02Z</dc:date>
    </item>
    <item>
      <title>Problem with Peek()</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Peek/m-p/230417#M82246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manesh,&lt;/P&gt;&lt;P&gt;thanks for your reply, unfortunately this is not working, because recno() counts records for each object_id (I don't know why this happens):&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3463.recno.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/3463.recno.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think that may be the reason why peek() and previous() fails...&lt;/P&gt;&lt;P&gt;Do you know any solution for this?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 11:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Peek/m-p/230417#M82246</guid>
      <dc:creator />
      <dc:date>2011-02-25T11:35:16Z</dc:date>
    </item>
    <item>
      <title>AW:Problem with Peek()</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Peek/m-p/230418#M82247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Eva,&lt;/P&gt;&lt;P&gt;couldn't believe that your posted script code doesn't work as expected. For that reason I tried it for my own. And it works fine. Take a look at my little exam app. So what are the differences to your app?&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 11:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Peek/m-p/230418#M82247</guid>
      <dc:creator />
      <dc:date>2011-02-25T11:44:47Z</dc:date>
    </item>
    <item>
      <title>Problem with Peek()</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Peek/m-p/230419#M82248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;try rowno() instead of recno()....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 11:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Peek/m-p/230419#M82248</guid>
      <dc:creator />
      <dc:date>2011-02-25T11:45:27Z</dc:date>
    </item>
    <item>
      <title>AW:Problem with Peek()</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Peek/m-p/230420#M82249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland,&lt;/P&gt;&lt;P&gt;the reason must be something with my data-model... I am reading the data from an xml-files and there could be multiple values for one attribute. So QlikView groups the data after the attribute "object_id", so I can only adress the previous rows within that group, that's what I found out so far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 14:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Peek/m-p/230420#M82249</guid>
      <dc:creator />
      <dc:date>2011-02-25T14:10:10Z</dc:date>
    </item>
  </channel>
</rss>

