<?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 Compare values in current row to the values in previous row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-in-current-row-to-the-values-in-previous-row/m-p/2354977#M120830</link>
    <description>hi,&lt;BR /&gt;how do i Compare values in current row to the values in previous row?&lt;BR /&gt;Please walk me through the steps.&lt;BR /&gt;Thanks</description>
    <pubDate>Wed, 02 May 2012 15:55:23 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2012-05-02T15:55:23Z</dc:date>
    <item>
      <title>Compare values in current row to the values in previous row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-in-current-row-to-the-values-in-previous-row/m-p/2354977#M120830</link>
      <description>hi,&lt;BR /&gt;how do i Compare values in current row to the values in previous row?&lt;BR /&gt;Please walk me through the steps.&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 02 May 2012 15:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-in-current-row-to-the-values-in-previous-row/m-p/2354977#M120830</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-05-02T15:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in current row to the values in previous row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-in-current-row-to-the-values-in-previous-row/m-p/2354978#M120831</link>
      <description>Hi&lt;BR /&gt;Use tJavaRow to store the previous row into several context variables.&lt;BR /&gt;When it comes to next row, compare the next row with these context variables.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 03 May 2012 03:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-in-current-row-to-the-values-in-previous-row/m-p/2354978#M120831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-03T03:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in current row to the values in previous row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-in-current-row-to-the-values-in-previous-row/m-p/2354979#M120832</link>
      <description>Hi,
&lt;BR /&gt;You could also use the tMemorizeRows component and configure it to memorize just 1 row. This saves you from writing java code.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Arno</description>
      <pubDate>Thu, 03 May 2012 06:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-in-current-row-to-the-values-in-previous-row/m-p/2354979#M120832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-03T06:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in current row to the values in previous row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-in-current-row-to-the-values-in-previous-row/m-p/2354980#M120833</link>
      <description>David,
&lt;BR /&gt;I had a similar requirement in which I was required to add previous row value to consecutive row...
&lt;BR /&gt;Sr. No | B | C
&lt;BR /&gt;1 | 1 | 1
&lt;BR /&gt;2 | 2 | 3
&lt;BR /&gt;3 | 3 | 5
&lt;BR /&gt;4 | 4 | 7
&lt;BR /&gt;See the summation which is performed in C column.
&lt;BR /&gt;This could be achieved using tJavaRow and one variable
&lt;BR /&gt;output_row.C = (Integer)globalMap.get("prevRowVal")+input_row.B;
&lt;BR /&gt;globalMap.put("prevRowVal",output_row.C);
&lt;BR /&gt;Hope this would help you to implement yours requirement.
&lt;BR /&gt;Thanks
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Mon, 30 Jul 2012 08:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-in-current-row-to-the-values-in-previous-row/m-p/2354980#M120833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-30T08:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in current row to the values in previous row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-in-current-row-to-the-values-in-previous-row/m-p/2354981#M120834</link>
      <description>Hi Vaibhav&lt;BR /&gt;Thanks for your scenario.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Mon, 30 Jul 2012 08:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-in-current-row-to-the-values-in-previous-row/m-p/2354981#M120834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-30T08:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in current row to the values in previous row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-in-current-row-to-the-values-in-previous-row/m-p/2354982#M120835</link>
      <description>Hi ,
&lt;BR /&gt;I am not able to fetch the previous record from tmemorizerow say for example there is two records in mysql table
&lt;BR /&gt;on_off | &amp;nbsp;real_time_clock
&lt;BR /&gt;0| 2017-01-01 13:00:00
&lt;BR /&gt;1|2017-01-01 13:15:00
&lt;BR /&gt;
&lt;BR /&gt;i need to find the difference between the real time clock when on_off changes from 0 to 1 ie 15 minutes ,I dont know how to fetch the previous record from tMemorizeRow and compare it with the current value of on_off .It will be helpful if you say me how to do it.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;kasthuri rengan</description>
      <pubDate>Mon, 13 Mar 2017 15:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-in-current-row-to-the-values-in-previous-row/m-p/2354982#M120835</guid>
      <dc:creator>krengan21</dc:creator>
      <dc:date>2017-03-13T15:01:31Z</dc:date>
    </item>
  </channel>
</rss>

