<?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 a column with the difference between two rows - Above() not working in Data Movement &amp; Streaming</title>
    <link>https://community.qlik.com/t5/Data-Movement-Streaming/Get-a-column-with-the-difference-between-two-rows-Above-not/m-p/2461917#M2409</link>
    <description>&lt;P&gt;Thanks a lot!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 20:27:03 GMT</pubDate>
    <dc:creator>Paulo_IntelFab</dc:creator>
    <dc:date>2024-06-12T20:27:03Z</dc:date>
    <item>
      <title>Get a column with the difference between two rows - Above() not working</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/Get-a-column-with-the-difference-between-two-rows-Above-not/m-p/2461853#M2406</link>
      <description>&lt;P&gt;Hi, I need to get a column with the diffence between a row and the previous row. I`m using Qlik Cloud and the load script is quite simple.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;[Teste_NPTs]:&lt;BR /&gt;LOAD&lt;BR /&gt;[OrderingField],&lt;BR /&gt;[SubtractField],&lt;BR /&gt;[Flag]&lt;BR /&gt;FROM [lib://A - Rascunho:DataFiles/Teste_NPTs.qvd]&lt;BR /&gt;(qvd);&lt;BR /&gt;&lt;BR /&gt;The rows look like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Paulo_IntelFab_0-1718214644363.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167844i9F0AC37A9BCCC884/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Paulo_IntelFab_0-1718214644363.png" alt="Paulo_IntelFab_0-1718214644363.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I tried to use the function Above, but an error is thrown and I cannot solve it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;[Teste_NPTs]:&lt;BR /&gt;LOAD&lt;BR /&gt;[CampoOrdenar],&lt;BR /&gt;[CampoSubtrair],&lt;BR /&gt;[Flag], &lt;BR /&gt;[CampoSubtrair] - Above([CampoSubtrair]) As difference&lt;BR /&gt;&lt;BR /&gt;FROM [lib://A - Rascunho:DataFiles/Teste_NPTs.qvd]&lt;BR /&gt;(qvd);&lt;BR /&gt;&lt;BR /&gt;The error message is:&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;Unexpected token: '(', expected one of: ',', ':', 'OPERATOR_PLUS', 'OPERATOR_MINUS', 'OPERATOR_MULTIPLICATION', 'OPERATOR_DIVISION', 'OPERATOR_STRING_CONCAT', ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Teste_NPTs]: LOAD [CampoOrdenar], [CampoSubtrair], [Flag], [CampoSubtrair] - Above&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;(&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;[CampoSubtrair]) As difference FROM [lib://A - Rascunho:DataFiles/Teste_NPTs.qvd] (qvd)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I'm glad for any help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 21:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/Get-a-column-with-the-difference-between-two-rows-Above-not/m-p/2461853#M2406</guid>
      <dc:creator>Paulo_IntelFab</dc:creator>
      <dc:date>2025-03-19T21:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get a column with the difference between two rows - Above() not working</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/Get-a-column-with-the-difference-between-two-rows-Above-not/m-p/2461916#M2408</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/247794"&gt;@Paulo_IntelFab&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Above&lt;/STRONG&gt; is a chart function, it does not work in the Load Script.&lt;BR /&gt;Look for &lt;STRONG&gt;Previous&lt;/STRONG&gt; (&lt;STRONG&gt;&lt;A href="https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Previous.htm" target="_blank"&gt;Previous - script function | Qlik Sense on Windows Help&lt;/A&gt;)&lt;/STRONG&gt; or &lt;STRONG&gt;Peek &lt;/STRONG&gt;(&lt;STRONG&gt;&lt;A href="https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Peek.htm" target="_blank"&gt;Peek - script function | Qlik Sense on Windows Help&lt;/A&gt;)&amp;nbsp;&lt;/STRONG&gt;functions.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 20:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/Get-a-column-with-the-difference-between-two-rows-Above-not/m-p/2461916#M2408</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-06-12T20:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get a column with the difference between two rows - Above() not working</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/Get-a-column-with-the-difference-between-two-rows-Above-not/m-p/2461917#M2409</link>
      <description>&lt;P&gt;Thanks a lot!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 20:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/Get-a-column-with-the-difference-between-two-rows-Above-not/m-p/2461917#M2409</guid>
      <dc:creator>Paulo_IntelFab</dc:creator>
      <dc:date>2024-06-12T20:27:03Z</dc:date>
    </item>
  </channel>
</rss>

