<?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 function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169128#M914031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Rate field as dimension (or better a primary key of your input table?), then create an expression labelled "XP"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(rowno() =1, 1- Rate, 1- Above("XP")*(1-Rate) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 May 2016 11:39:28 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-05-30T11:39:28Z</dc:date>
    <item>
      <title>Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169122#M914025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use peek in stright table expression with if condition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169122#M914025</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169123#M914026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peek() is a inter record function for use in the script only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look into chart inter record functions like Above() / Below():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;STRONG&gt;Above&lt;/STRONG&gt;(Sum(Value))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 09:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169123#M914026</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-30T09:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169124#M914027</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;Like swuehl already mentioned, you can use Peek() only in the script.&lt;/P&gt;&lt;P&gt;Refer to this help page for inter-record functions, where you can read which functions work only oin charts, script ofr both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/InterRecordFunctions/inter-record-functions-charts.htm?q=peek" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/InterRecordFunctions/inter-record-functions-charts.htm?q=peek"&gt;Inter-record functions ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 09:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169124#M914027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-30T09:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169125#M914028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your exact requirement? May be if you provide a sample to look at with your expected output, we may be able to offer you better help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to add to the responses of above two, there is also Before/After which are used for pivoted dimensions in a pivot table. But once again it would be better if you can share a sample &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 11:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169125#M914028</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-30T11:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169126#M914029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to implement below one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rate XP&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1- Rate&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1-(prev XP)*(1-Rate),&lt;/P&gt;&lt;P&gt; :&lt;/P&gt;&lt;P&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;; and so on&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 11:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169126#M914029</guid>
      <dc:creator />
      <dc:date>2016-05-30T11:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169127#M914030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is still an incomplete sample. Would it be possibe to provide few rows of data (may be in an excel file) with the expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 11:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169127#M914030</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-30T11:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169128#M914031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Rate field as dimension (or better a primary key of your input table?), then create an expression labelled "XP"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(rowno() =1, 1- Rate, 1- Above("XP")*(1-Rate) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 11:39:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169128#M914031</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-30T11:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169129#M914032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have fields like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Id&amp;nbsp; rate&amp;nbsp; &lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;:: &lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And so on&lt;/P&gt;&lt;P&gt;I need to calculate XP field using below logic&lt;/P&gt;&lt;P&gt;For first record XP is Rate value&lt;/P&gt;&lt;P&gt;For 2nd record XP is 1-(1- previous XP)*(1- current record Rate value)&lt;/P&gt;&lt;P&gt;And so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Id Rate XP&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 12:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1169129#M914032</guid>
      <dc:creator />
      <dc:date>2016-05-30T12:07:02Z</dc:date>
    </item>
  </channel>
</rss>

