<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/553046#M1145076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help me with this script? I can't work out why amount is copying down only once, but not to any subsequent rows. If amount is null at all I would like to have the previous non null amount for an id copied down, but with my script it's only copying down to the first null line. Here is the script. many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;id, amount&lt;/P&gt;&lt;P&gt;1, 100&lt;/P&gt;&lt;P&gt;1,&lt;/P&gt;&lt;P&gt;1,&lt;/P&gt;&lt;P&gt;1, 400&lt;/P&gt;&lt;P&gt;2, 500&lt;/P&gt;&lt;P&gt;2, ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;NoConcatenate LOAD &lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;if(previous(id)=id, peek('amount'), amount) as amount2,&lt;/P&gt;&lt;P&gt;amount&lt;/P&gt;&lt;P&gt;Resident t1 order by id asc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table t1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Aug 2013 11:02:26 GMT</pubDate>
    <dc:creator>charlotte_qvw</dc:creator>
    <dc:date>2013-08-02T11:02:26Z</dc:date>
    <item>
      <title>Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/553046#M1145076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help me with this script? I can't work out why amount is copying down only once, but not to any subsequent rows. If amount is null at all I would like to have the previous non null amount for an id copied down, but with my script it's only copying down to the first null line. Here is the script. many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;id, amount&lt;/P&gt;&lt;P&gt;1, 100&lt;/P&gt;&lt;P&gt;1,&lt;/P&gt;&lt;P&gt;1,&lt;/P&gt;&lt;P&gt;1, 400&lt;/P&gt;&lt;P&gt;2, 500&lt;/P&gt;&lt;P&gt;2, ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;NoConcatenate LOAD &lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;if(previous(id)=id, peek('amount'), amount) as amount2,&lt;/P&gt;&lt;P&gt;amount&lt;/P&gt;&lt;P&gt;Resident t1 order by id asc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table t1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 11:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/553046#M1145076</guid>
      <dc:creator>charlotte_qvw</dc:creator>
      <dc:date>2013-08-02T11:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/553047#M1145077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(previous(id)=id, peek&lt;STRONG&gt;('amount2'&lt;/STRONG&gt;), amount) as amount2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 11:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/553047#M1145077</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-02T11:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/553048#M1145078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks v much! after i wrote the question i just worked that out!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 11:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/553048#M1145078</guid>
      <dc:creator>charlotte_qvw</dc:creator>
      <dc:date>2013-08-02T11:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/553049#M1145079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/tresesco" id="jive-2641828821476662462723"&gt;tres qv&lt;/A&gt; try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(previous(id)=id, peek('amount2'), amount) as amount2&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 11:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/553049#M1145079</guid>
      <dc:creator />
      <dc:date>2013-08-02T11:09:12Z</dc:date>
    </item>
  </channel>
</rss>

