<?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 is not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-is-not-working/m-p/1884687#M1217012</link>
    <description>&lt;P&gt;what is your expected result?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 17:37:35 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2022-01-24T17:37:35Z</dc:date>
    <item>
      <title>Peek is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-is-not-working/m-p/1884552#M1217007</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to calculate balance_eop using Peek function but seems like it not fully working the way as I want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is out I got in the end&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GhazanfarAli_1-1643033992256.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/70833i7B4E6AA8FC94761B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GhazanfarAli_1-1643033992256.png" alt="GhazanfarAli_1-1643033992256.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and the way I am calculating is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if(%Key_LoanNumber=Peek(%Key_LoanNumber),Peek(Balance_eop)-(pmt((AnnualInterestRate_EOP/12),Duration_EOP,-Peek(balance_eop))-(Peek(balance_eop)*(AnnualInterestRate_EOP/12))),Balance_BOP) as balance_eop&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 14:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-is-not-working/m-p/1884552#M1217007</guid>
      <dc:creator>GhazanfarAli</dc:creator>
      <dc:date>2022-01-24T14:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Peek is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-is-not-working/m-p/1884687#M1217012</link>
      <description>&lt;P&gt;what is your expected result?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 17:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-is-not-working/m-p/1884687#M1217012</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-01-24T17:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Peek is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-is-not-working/m-p/1884856#M1217018</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HI Marco!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the expected result is when period is not 1 then it take balance from previous row and calculate balance based on the formula given in the script. basically it is loan amortization calculation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 07:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-is-not-working/m-p/1884856#M1217018</guid>
      <dc:creator>GhazanfarAli</dc:creator>
      <dc:date>2022-01-25T07:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Peek is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-is-not-working/m-p/1884890#M1217019</link>
      <description>&lt;P&gt;There are some important aspects by using peek():&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;field-names should be wrapped with single-quotes, like 'fieldX'&lt;/LI&gt;
&lt;LI&gt;peek() takes the fields/field-values from the specified table - if not any is specified what usually the aim is the current created table is used which means all peek-fields must be also loaded&lt;/LI&gt;
&lt;LI&gt;the load must be resident and you need appropriate order by statements&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;By new created fields you must use peek() but by others you may switch to previous(). Further I suggest to divide your calculation in smaller tasks to see which one work and which not.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 09:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-is-not-working/m-p/1884890#M1217019</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-01-25T09:00:21Z</dc:date>
    </item>
  </channel>
</rss>

