<?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 the script - how flexible is it? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-function-in-the-script-how-flexible-is-it/m-p/1066609#M642246</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;Can anybody tell me how flexible is the script function in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to behave differently compared to some QlikView rules for fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if I create a calculated field, I can refer that field back into the same calculated field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Product,&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;If(RecNo()=1, Amount,If(Product=Peek(Product), Value + Peek(AboveTotal),Value)) as AboveTotal&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never knew this was possible with peek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jan 2016 21:53:53 GMT</pubDate>
    <dc:creator>jblomqvist</dc:creator>
    <dc:date>2016-01-25T21:53:53Z</dc:date>
    <item>
      <title>Peek function in the script - how flexible is it?</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-in-the-script-how-flexible-is-it/m-p/1066609#M642246</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;Can anybody tell me how flexible is the script function in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to behave differently compared to some QlikView rules for fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if I create a calculated field, I can refer that field back into the same calculated field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Product,&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;If(RecNo()=1, Amount,If(Product=Peek(Product), Value + Peek(AboveTotal),Value)) as AboveTotal&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never knew this was possible with peek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 21:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-in-the-script-how-flexible-is-it/m-p/1066609#M642246</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-01-25T21:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function in the script - how flexible is it?</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-in-the-script-how-flexible-is-it/m-p/1066610#M642247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Essentially, Peek() is addressing fields in the &lt;EM&gt;ouput&lt;/EM&gt; table records (vs. &lt;EM&gt;input&lt;/EM&gt; table records that can be adressed by Previous() ), hence all fields that are the result of your table load can be used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 22:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-in-the-script-how-flexible-is-it/m-p/1066610#M642247</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-25T22:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function in the script - how flexible is it?</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-in-the-script-how-flexible-is-it/m-p/1066611#M642248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8781"&gt;Missing Manual - Peek()&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14012"&gt;Peek till not null&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 22:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-in-the-script-how-flexible-is-it/m-p/1066611#M642248</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2016-01-25T22:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function in the script - how flexible is it?</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-in-the-script-how-flexible-is-it/m-p/1066612#M642249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A very good description could you find here: &lt;A href="https://community.qlik.com/docs/DOC-9314"&gt;Peek() or Previous() ?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 06:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-in-the-script-how-flexible-is-it/m-p/1066612#M642249</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-01-26T06:48:59Z</dc:date>
    </item>
  </channel>
</rss>

