<?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: Difference between a column of Two Consecutive Rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Difference-between-a-column-of-Two-Consecutive-Rows/m-p/2197994#M1503</link>
    <description>Hi,
&lt;BR /&gt;I don't have experience with this, but I think it can be done like this:
&lt;BR /&gt;Make sure you have rownumber in your Excel file
&lt;BR /&gt;
&lt;BR /&gt;tExcelInput1 --&amp;gt;
&lt;BR /&gt; \
&lt;BR /&gt; tMap --&amp;gt; someOutput 
&lt;BR /&gt; /
&lt;BR /&gt;tExcelInput2 --&amp;gt; 
&lt;BR /&gt;
&lt;BR /&gt;The tExcelInput1 &amp;amp; tExcelInput2 should contain you Excel file
&lt;BR /&gt;In the tMap create an "inner join" on the (rownumber -1)
&lt;BR /&gt;If there is no rowNumber, I would consider loading the data to a databaseTable first.</description>
    <pubDate>Fri, 31 Aug 2012 12:23:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-31T12:23:54Z</dc:date>
    <item>
      <title>Difference between a column of Two Consecutive Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Difference-between-a-column-of-Two-Consecutive-Rows/m-p/2197993#M1502</link>
      <description>Hi ALL
&lt;BR /&gt;I have an excel file in this format
&lt;BR /&gt;NAme , Salary
&lt;BR /&gt;asd , 122
&lt;BR /&gt;sda, 124
&lt;BR /&gt;
&lt;BR /&gt;I want to output an xml file where i have a node " difference" 
&lt;BR /&gt;this node has the value of salary of current row - salary of previous row
&lt;BR /&gt;
&lt;BR /&gt;can some one guide me how i can take this difference between same column of two consecutive rows?
&lt;BR /&gt;can i use some global variable? like i have idea that i can store the value of first salary in the global variable and then in coming nodes it will be just like Row1.Salary-variable and then i will update the variable= row1.salary so that i can use it for next node " Difference"
&lt;BR /&gt;
&lt;BR /&gt;please guide
&lt;BR /&gt;
&lt;BR /&gt;Steven</description>
      <pubDate>Fri, 31 Aug 2012 11:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Difference-between-a-column-of-Two-Consecutive-Rows/m-p/2197993#M1502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-31T11:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a column of Two Consecutive Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Difference-between-a-column-of-Two-Consecutive-Rows/m-p/2197994#M1503</link>
      <description>Hi,
&lt;BR /&gt;I don't have experience with this, but I think it can be done like this:
&lt;BR /&gt;Make sure you have rownumber in your Excel file
&lt;BR /&gt;
&lt;BR /&gt;tExcelInput1 --&amp;gt;
&lt;BR /&gt; \
&lt;BR /&gt; tMap --&amp;gt; someOutput 
&lt;BR /&gt; /
&lt;BR /&gt;tExcelInput2 --&amp;gt; 
&lt;BR /&gt;
&lt;BR /&gt;The tExcelInput1 &amp;amp; tExcelInput2 should contain you Excel file
&lt;BR /&gt;In the tMap create an "inner join" on the (rownumber -1)
&lt;BR /&gt;If there is no rowNumber, I would consider loading the data to a databaseTable first.</description>
      <pubDate>Fri, 31 Aug 2012 12:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Difference-between-a-column-of-Two-Consecutive-Rows/m-p/2197994#M1503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-31T12:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a column of Two Consecutive Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Difference-between-a-column-of-Two-Consecutive-Rows/m-p/2197995#M1504</link>
      <description>Use tMemorizeRows to capture previous rows' values. You can then calculate the difference in tMap or tJavaRow. (Or you can do it all yourself in tJavaRow.)
&lt;BR /&gt;That will be more efficient than reading the file twice and joining it.</description>
      <pubDate>Mon, 03 Sep 2012 02:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Difference-between-a-column-of-Two-Consecutive-Rows/m-p/2197995#M1504</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2012-09-03T02:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a column of Two Consecutive Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Difference-between-a-column-of-Two-Consecutive-Rows/m-p/2197996#M1505</link>
      <description>you can see the Official documentation on the use of tMemorizeRows, maybe it can help you</description>
      <pubDate>Mon, 03 Sep 2012 13:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Difference-between-a-column-of-Two-Consecutive-Rows/m-p/2197996#M1505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-03T13:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a column of Two Consecutive Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Difference-between-a-column-of-Two-Consecutive-Rows/m-p/2197997#M1506</link>
      <description>Hi, i have scenario in which i want to check if the row is 1st row of excel then it will output same column value else it will 
&lt;BR /&gt;do calculation like current_col - previous_col and column contain only time!!! 
&lt;BR /&gt;i try to use tMemorize_Row and tExcel_Row_NB_Line (show number of lines after full file read rather than 1 by 1)both gives error !!!</description>
      <pubDate>Wed, 05 Sep 2012 15:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Difference-between-a-column-of-Two-Consecutive-Rows/m-p/2197997#M1506</guid>
      <dc:creator>Abdus_Saboor</dc:creator>
      <dc:date>2012-09-05T15:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a column of Two Consecutive Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Difference-between-a-column-of-Two-Consecutive-Rows/m-p/2197998#M1507</link>
      <description>asa436, you should create a new topic and give details of the errors you get and the configuration that's causing them.</description>
      <pubDate>Mon, 10 Sep 2012 01:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Difference-between-a-column-of-Two-Consecutive-Rows/m-p/2197998#M1507</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2012-09-10T01:31:09Z</dc:date>
    </item>
  </channel>
</rss>

