<?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: How to fix problems with Peek in the script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718141#M674685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't the price wrong for Supplier A?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2014 15:19:55 GMT</pubDate>
    <dc:creator>DavidFoster1</dc:creator>
    <dc:date>2014-08-05T15:19:55Z</dc:date>
    <item>
      <title>How to fix problems with Peek in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718136#M674680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to use the peek function in the script. Basically I have one value in the first month and I want to populate this down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue peek function is having some aleatory issue and I cannot have this visible down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is the following = &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;if(isnull(DataPrice),&amp;nbsp; Peek (DataPrice), DataPrice) as PricePeek,&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ordered by Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see below the expected results:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="5-08-2014 11-48-05 AM.png" class="jive-image" src="/legacyfs/online/63750_5-08-2014 11-48-05 AM.png" style="width: 620px; height: 300px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The files with the script are enclosed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, Leadro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 14:53:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718136#M674680</guid>
      <dc:creator />
      <dc:date>2014-08-05T14:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix problems with Peek in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718137#M674681</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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(isnull(DataPrice),&amp;nbsp; Peek (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PricePeek&lt;/SPAN&gt;), DataPrice) as PricePeek,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 14:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718137#M674681</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-08-05T14:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix problems with Peek in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718138#M674682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peek does not work that way. You might look at Previous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My suggestion is that what you do is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Read the month start records from the file into a mapping table.&lt;/LI&gt;&lt;LI&gt;Load the full table using APPLYMAP to return the matching monthstart values.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718138#M674682</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2014-08-05T15:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix problems with Peek in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718139#M674683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As suggested by Ioannis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718139#M674683</guid>
      <dc:creator />
      <dc:date>2014-08-05T15:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix problems with Peek in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718140#M674684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;peek expects the field name&amp;nbsp; to be a string.&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DataPrice&lt;/SPAN&gt;')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also peek will return null on the first record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718140#M674684</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2014-08-05T15:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix problems with Peek in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718141#M674685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't the price wrong for Supplier A?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718141#M674685</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2014-08-05T15:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix problems with Peek in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718142#M674686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For supplier A per logic 2000 gets applied where ever there is a null. not sure what the desired output should be though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 15:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fix-problems-with-Peek-in-the-script/m-p/718142#M674686</guid>
      <dc:creator />
      <dc:date>2014-08-05T15:30:53Z</dc:date>
    </item>
  </channel>
</rss>

