<?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 Subtracting a value from a previous row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Subtracting-a-value-from-a-previous-row/m-p/2344966#M112557</link>
    <description>Good day all
&lt;BR /&gt;I have records in my database that are updated every 10 seconds, the values accordingly increase with time. I need to calculate the difference between the two values and then write the result to another table. Does anyone have any idea how this could be accomplished. Any thoughts in this regard would be sincerely appreciated.
&lt;BR /&gt;Regards
&lt;BR /&gt;Brian</description>
    <pubDate>Mon, 27 May 2013 14:12:25 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2013-05-27T14:12:25Z</dc:date>
    <item>
      <title>Subtracting a value from a previous row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Subtracting-a-value-from-a-previous-row/m-p/2344966#M112557</link>
      <description>Good day all
&lt;BR /&gt;I have records in my database that are updated every 10 seconds, the values accordingly increase with time. I need to calculate the difference between the two values and then write the result to another table. Does anyone have any idea how this could be accomplished. Any thoughts in this regard would be sincerely appreciated.
&lt;BR /&gt;Regards
&lt;BR /&gt;Brian</description>
      <pubDate>Mon, 27 May 2013 14:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Subtracting-a-value-from-a-previous-row/m-p/2344966#M112557</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-05-27T14:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting a value from a previous row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Subtracting-a-value-from-a-previous-row/m-p/2344967#M112558</link>
      <description>Hi, 
&lt;BR /&gt;I think you are looking for " 
&lt;A href="http://stackoverflow.com/questions/4471161/what-does-incremental-load-mean" target="_blank" rel="nofollow noopener noreferrer"&gt;incremental load&lt;/A&gt;"(capture the changed data and only load these changed data into target table).
&lt;BR /&gt;For community version, if there is not too much data, you might consider using a tMap which inner joins existing data with all data and then have an output which catches the reject of inner join.
&lt;BR /&gt;For enterprise subscription version, Talend provide CDC(Change Data Capture) function. Please see the related reference:
&lt;BR /&gt;
&lt;A href="https://help.talend.com/search/all?query=tMysqlCDC&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tMysqlCDC&lt;/A&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 28 May 2013 03:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Subtracting-a-value-from-a-previous-row/m-p/2344967#M112558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-28T03:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting a value from a previous row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Subtracting-a-value-from-a-previous-row/m-p/2344968#M112559</link>
      <description>tInfiniteLoop -iterate-&amp;gt; tInput --&amp;gt; tJavaRow --&amp;gt; tOutput
&lt;BR /&gt;In tJavaRow:
&lt;BR /&gt;1. subtract the latest value from the previous value (stored into a variable)
&lt;BR /&gt;2. store the new value for next time
&lt;BR /&gt;3. modify the SQL used in the input for next time
&lt;BR /&gt;4. send the new data for the other table</description>
      <pubDate>Thu, 30 May 2013 08:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Subtracting-a-value-from-a-previous-row/m-p/2344968#M112559</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-05-30T08:33:17Z</dc:date>
    </item>
  </channel>
</rss>

