<?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 current row with previous row based on some condition in excel file in talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Compare-current-row-with-previous-row-based-on-some-condition-in/m-p/2251857#M35677</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am creating a job which take input from db and insert in excel file sheet. I want to compare current row with the previous row in excel and get unmatched row copied in to another file. Is that comparing possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If yes, Please help me in doing that.&lt;/P&gt;&lt;P&gt;If no, How can I achieve this in alternate way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Meghana.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 07:44:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T07:44:26Z</dc:date>
    <item>
      <title>Compare current row with previous row based on some condition in excel file in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-current-row-with-previous-row-based-on-some-condition-in/m-p/2251857#M35677</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am creating a job which take input from db and insert in excel file sheet. I want to compare current row with the previous row in excel and get unmatched row copied in to another file. Is that comparing possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If yes, Please help me in doing that.&lt;/P&gt;&lt;P&gt;If no, How can I achieve this in alternate way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Meghana.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-current-row-with-previous-row-based-on-some-condition-in/m-p/2251857#M35677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Compare current row with previous row based on some condition in excel file in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-current-row-with-previous-row-based-on-some-condition-in/m-p/2251858#M35678</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOjJAAW"&gt;@MeghanaKottala&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Yes, it can be done using tMap, by keeping previous row column values in variable.&lt;/P&gt; 
&lt;P&gt;if you want to compare multiple columns with previous rows, you need to add more variables.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I my example i have just compared ID column, you can take more columns if needed.&lt;/P&gt; 
&lt;P&gt;and add some more logic as per your requirement.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.JPG" style="width: 452px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzg0.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144675iD1EB9565E5B74724/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzg0.jpg" alt="0683p000009Lzg0.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.JPG" style="width: 659px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzk6.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147090i2990AFBC97516E2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzk6.jpg" alt="0683p000009Lzk6.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzkB.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146726iC6E2BD1D31E30BC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzkB.jpg" alt="0683p000009LzkB.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;click Accept the solution if it helps,&amp;nbsp;&lt;BR /&gt;Also kudos are welcome &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Sachin.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 08:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-current-row-with-previous-row-based-on-some-condition-in/m-p/2251858#M35678</guid>
      <dc:creator>SachinD</dc:creator>
      <dc:date>2018-08-31T08:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Compare current row with previous row based on some condition in excel file in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-current-row-with-previous-row-based-on-some-condition-in/m-p/2251859#M35679</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOjJAAW"&gt;@MeghanaKottala&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Appreciate your efforts&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLomAAG"&gt;@SachinD&lt;/A&gt;&amp;nbsp;but tMemorizeRow is the component to compare data with previous row.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 12:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-current-row-with-previous-row-based-on-some-condition-in/m-p/2251859#M35679</guid>
      <dc:creator>aashish_21nov</dc:creator>
      <dc:date>2018-08-31T12:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare current row with previous row based on some condition in excel file in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-current-row-with-previous-row-based-on-some-condition-in/m-p/2251860#M35680</link>
      <description>&lt;P&gt;Yes&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOUUAA4"&gt;@aashish&lt;/A&gt;&amp;nbsp;you are correct,&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;we can achive it using tMemorizeRow , but one need to write custom Java code in tJava components.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tMap can keep values between rows and its process from top to bottom order. we can configure to hold the last value of particular columns and compare them with the current row column.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;yes you are right if we want to keep more than 2 rows in memory we can use tMemorizeRow, as it can be configured to keep n number of rows in memory.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;its also possible with tMap, by increasing no of variables.&lt;/P&gt; 
&lt;P&gt;we can pick any logic as per our complexity.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Sachin D&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Sep 2018 06:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-current-row-with-previous-row-based-on-some-condition-in/m-p/2251860#M35680</guid>
      <dc:creator>SachinD</dc:creator>
      <dc:date>2018-09-01T06:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compare current row with previous row based on some condition in excel file in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-current-row-with-previous-row-based-on-some-condition-in/m-p/2251861#M35681</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used tJava component and stored previous value as context variabe as I need only one value to remember. It's working fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Meghana.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 06:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-current-row-with-previous-row-based-on-some-condition-in/m-p/2251861#M35681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-03T06:14:23Z</dc:date>
    </item>
  </channel>
</rss>

