<?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 command in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-command-in-the-script/m-p/277898#M1203781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for using peek with just one parameter, you have to usit inside a load statement&lt;/P&gt;&lt;P&gt;if you are going to use peek with a variable, you have to specify the source table e.g. :&lt;/P&gt;&lt;P&gt;Let vPreValue = peek( 'Value', 0, TableWithValues);&lt;/P&gt;&lt;P&gt;0 --&amp;gt; You have to specify the record you want, usually , using this kind of function envolve 'for' control statement .&lt;/P&gt;&lt;P&gt;atte&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Sep 2010 00:10:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-22T00:10:36Z</dc:date>
    <item>
      <title>Peek command in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-command-in-the-script/m-p/277897#M1203779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have input data with field name&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;Have statement in load script as&lt;/P&gt;&lt;P&gt;Let vPreValue = peek('Value');&lt;/P&gt;&lt;P&gt;With this statement I am trying to define a new variable&lt;/P&gt;&lt;P&gt;vPreValue&lt;/P&gt;&lt;P&gt;as the value read in for the field&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;in the previous record&lt;/P&gt;&lt;P&gt;After reload, when I create a new sheet object as a chart/straight table, for the straight tagble in the expression editor under variables I see a list of available variable names to use in the straight table but I don't see the new varible&lt;/P&gt;&lt;P&gt;vPreValue&lt;/P&gt;&lt;P&gt;that I thought I defined in the load script. I am new to this, so I probably don't have the correct concept or syntax here. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I am trying to accomplish: My data consists of a field "Date" which contains dates, and a field "Value" which contains the numeric value associated with each date. I want to define a new variable "vPreValue" for each value of "Date" that contains "Value" from the previous record.&lt;/P&gt;&lt;P&gt;Any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 23:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-command-in-the-script/m-p/277897#M1203779</guid>
      <dc:creator />
      <dc:date>2010-09-21T23:04:51Z</dc:date>
    </item>
    <item>
      <title>Peek command in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-command-in-the-script/m-p/277898#M1203781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for using peek with just one parameter, you have to usit inside a load statement&lt;/P&gt;&lt;P&gt;if you are going to use peek with a variable, you have to specify the source table e.g. :&lt;/P&gt;&lt;P&gt;Let vPreValue = peek( 'Value', 0, TableWithValues);&lt;/P&gt;&lt;P&gt;0 --&amp;gt; You have to specify the record you want, usually , using this kind of function envolve 'for' control statement .&lt;/P&gt;&lt;P&gt;atte&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 00:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-command-in-the-script/m-p/277898#M1203781</guid>
      <dc:creator />
      <dc:date>2010-09-22T00:10:36Z</dc:date>
    </item>
  </channel>
</rss>

