<?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 next value in the row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631603#M1092923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have data like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I-Code,S-Value,B-Value&lt;/P&gt;&lt;P&gt;1,45,14&lt;/P&gt;&lt;P&gt;2,41,13&lt;/P&gt;&lt;P&gt;3,26,26&lt;/P&gt;&lt;P&gt;4,27,17&lt;/P&gt;&lt;P&gt;5,18,25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output i want to get&lt;/P&gt;&lt;P&gt;I-Code,S-Value,B-Value&lt;/P&gt;&lt;P&gt;1,45,13&lt;/P&gt;&lt;P&gt;2,41,26&lt;/P&gt;&lt;P&gt;3,26,17&lt;/P&gt;&lt;P&gt;4,27,25&lt;/P&gt;&lt;P&gt;5,18,0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 13:22:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-13T13:22:35Z</dc:date>
    <item>
      <title>Peek next value in the row</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631603#M1092923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have data like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I-Code,S-Value,B-Value&lt;/P&gt;&lt;P&gt;1,45,14&lt;/P&gt;&lt;P&gt;2,41,13&lt;/P&gt;&lt;P&gt;3,26,26&lt;/P&gt;&lt;P&gt;4,27,17&lt;/P&gt;&lt;P&gt;5,18,25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output i want to get&lt;/P&gt;&lt;P&gt;I-Code,S-Value,B-Value&lt;/P&gt;&lt;P&gt;1,45,13&lt;/P&gt;&lt;P&gt;2,41,26&lt;/P&gt;&lt;P&gt;3,26,17&lt;/P&gt;&lt;P&gt;4,27,25&lt;/P&gt;&lt;P&gt;5,18,0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 13:22:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631603#M1092923</guid>
      <dc:creator />
      <dc:date>2014-05-13T13:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Peek next value in the row</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631604#M1092924</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;You can't look ahead, so reverse the order and look behind. Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD [I-Code], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [S-Value],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alt(Previous([B-Value]), 0) As B-Value&lt;/P&gt;&lt;P&gt;Resident Input&lt;/P&gt;&lt;P&gt;ORDER BY [I-Code] DESC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Input;&amp;nbsp; // avoid unneeded synthetic key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 13:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631604#M1092924</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-05-13T13:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Peek next value in the row</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631605#M1092925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but It did'nt working i want to subtract values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(S-Value - B-Value) but in load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the script i get&lt;/P&gt;&lt;P&gt;1,45,0&lt;/P&gt;&lt;P&gt;2,41,13&lt;/P&gt;&lt;P&gt;3,26,26&lt;/P&gt;&lt;P&gt;4,27,17&lt;/P&gt;&lt;P&gt;5,18,25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please help!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 14:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631605#M1092925</guid>
      <dc:creator />
      <dc:date>2014-05-13T14:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Peek next value in the row</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631606#M1092926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan's script gives your expected result in your first post. Now do you want to do subtract values? How?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 14:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631606#M1092926</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-05-13T14:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Peek next value in the row</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631607#M1092927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks jonathan it worked can you explain the script and why you use Alt and the DESC commands.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 14:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631607#M1092927</guid>
      <dc:creator />
      <dc:date>2014-05-13T14:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Peek next value in the row</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631608#M1092928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I-Code,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S-Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(RowNo() &amp;gt; 1,Previous( B-Value)) as&amp;nbsp; B-Value&lt;/P&gt;&lt;P&gt;Resident Input&lt;/P&gt;&lt;P&gt;ORDER BY I-Code DESC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Input;&amp;nbsp; //If not required do not drop table or rename the fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 14:23:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631608#M1092928</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-05-13T14:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Peek next value in the row</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631609#M1092929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After Desc&lt;/P&gt;&lt;P&gt;5,18,25&amp;nbsp; // Previous of [B-Value] is Null. Alt is used here to check [B-Value] is valid number else return 0&lt;/P&gt;&lt;P&gt;4,27,17&amp;nbsp; // Previous of [B-Value] is 25&lt;/P&gt;&lt;P&gt;3,26,26&amp;nbsp; // Previous of [B-Value] is 17&lt;/P&gt;&lt;P&gt;2,41,13&amp;nbsp; // Previous of [B-Value] is 26&lt;/P&gt;&lt;P&gt;1,45,14&amp;nbsp; // Previous of [B-Value] is 13&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 14:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631609#M1092929</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-05-13T14:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Peek next value in the row</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631610#M1092930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks All you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 13:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631610#M1092930</guid>
      <dc:creator />
      <dc:date>2014-05-14T13:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Peek next value in the row</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631611#M1092931</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;The manual should fully explain the Alt function. It returns the first valid number from its parameter list. Here it returns 0 in the place of the null in the first Previous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESC means sort in descending order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 14:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631611#M1092931</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-05-14T14:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Peek next value in the row</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631612#M1092932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using peek function to look at the previous row but at the same time I would also like to see the nex row value. Is there any opposite to peek function available to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Parth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 16:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-next-value-in-the-row/m-p/631612#M1092932</guid>
      <dc:creator />
      <dc:date>2016-05-11T16:24:42Z</dc:date>
    </item>
  </channel>
</rss>

