<?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: Get the next field value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-the-next-field-value/m-p/456880#M702246</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 use the Column() function, where Column(1) refers to the first expression column, Column(2) to the second, and so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2012 12:43:16 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2012-10-01T12:43:16Z</dc:date>
    <item>
      <title>Get the next field value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-next-field-value/m-p/456879#M702245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to create a new column in my script where I use a value i the next row. My table is sorted the way I want it, so that's not an issue. I have created another column where I use a value on the previous row by using the Previous function. Is there a function in QlikView that allows me to compare a field value in the current row with a field value in the next row so that I can create my new column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, L. Sletten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 12:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-next-field-value/m-p/456879#M702245</guid>
      <dc:creator />
      <dc:date>2012-10-01T12:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get the next field value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-next-field-value/m-p/456880#M702246</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 use the Column() function, where Column(1) refers to the first expression column, Column(2) to the second, and so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 12:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-next-field-value/m-p/456880#M702246</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-10-01T12:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get the next field value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-next-field-value/m-p/456881#M702247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lindasletten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually you're looking for the next() function, right? Which functions exactly as the previous function, but instead returns the value of the &lt;STRONG&gt;next&lt;/STRONG&gt; record... Correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, then the answer is that the next() function does not exist, but there is a way to work around it: sort your data descending (perhaps in a resident table) and use the previous function. This gives the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;field1&lt;/TD&gt;&lt;TD&gt;field2&lt;/TD&gt;&lt;TD&gt;Next-fieldValue&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;NULL&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;When you load field 1 and 2 from the&amp;nbsp; the table above sorted desc on field 1, the 'next-fieldValue' column can be calculated using the previous(field2) expression. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 12:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-next-field-value/m-p/456881#M702247</guid>
      <dc:creator />
      <dc:date>2012-10-01T12:51:57Z</dc:date>
    </item>
  </channel>
</rss>

