<?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 not filling in missing values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-not-filling-in-missing-values/m-p/500409#M186973</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;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Nov 2013 17:43:24 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2013-11-08T17:43:24Z</dc:date>
    <item>
      <title>Peek not filling in missing values</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-not-filling-in-missing-values/m-p/500406#M186970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to fill in missing values using the Peek function.&amp;nbsp; I am using the same logic as found here: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-3786"&gt;http://community.qlik.com/docs/DOC-3786&lt;/A&gt; but the Peek function doesn't seem to be working right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here my script, and attached is the data. I've also attached a screenshot of the results I am getting. It works to fill in one '0' value, but if there are multiple '0' values in a row then it doesn't work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Monthly Survey]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;CustID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ProductID&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\Peek test 3.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PeekTEST:&lt;/P&gt;&lt;P&gt;NoConcatenate LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; CustID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ProductID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; rowno() as RowNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If((ProductID=0 or isnull(ProductID)) &lt;/P&gt;&lt;P&gt;&amp;nbsp; and CustID = peek(CustID),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Peek(ProductID), ProductID) &lt;/P&gt;&lt;P&gt;&amp;nbsp; as ProductIDTEST&lt;/P&gt;&lt;P&gt;Resident [Monthly Survey]&lt;/P&gt;&lt;P&gt;order by 1,2;&lt;/P&gt;&lt;P&gt;drop table [Monthly Survey];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 17:22:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-not-filling-in-missing-values/m-p/500406#M186970</guid>
      <dc:creator />
      <dc:date>2013-11-08T17:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Peek not filling in missing values</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-not-filling-in-missing-values/m-p/500407#M186971</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 &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;peek('productID', -1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 17:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-not-filling-in-missing-values/m-p/500407#M186971</guid>
      <dc:creator />
      <dc:date>2013-11-08T17:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Peek not filling in missing values</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-not-filling-in-missing-values/m-p/500408#M186972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's because you peek in ProductID, not in ProductIDTEST where you store the result. Try &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt; If((ProductID=0 or isnull(ProductID))&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp; and CustID = peek(CustID),&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Peek(ProductIDTEST), ProductID) &lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;as ProductIDTEST&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 17:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-not-filling-in-missing-values/m-p/500408#M186972</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-08T17:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Peek not filling in missing values</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-not-filling-in-missing-values/m-p/500409#M186973</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;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 17:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-not-filling-in-missing-values/m-p/500409#M186973</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-11-08T17:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Peek not filling in missing values</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-not-filling-in-missing-values/m-p/500410#M186974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does the trick! Is this because Peek works on the output of the load? Thanks very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 19:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-not-filling-in-missing-values/m-p/500410#M186974</guid>
      <dc:creator />
      <dc:date>2013-11-08T19:14:57Z</dc:date>
    </item>
  </channel>
</rss>

