<?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 Capture previous iteration result and compare the data? in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/Capture-previous-iteration-result-and-compare-the-data/m-p/2205312#M807</link>
    <description>&lt;P&gt;In my talend program ,we use a java code block to store context variables(global variables) like&amp;nbsp;&lt;/P&gt;&lt;P&gt;context.header='ABCDEF';&lt;/P&gt;&amp;nbsp;(using the program logic) and it has a corresponding value as&amp;nbsp;&lt;P&gt;context.data=100;&lt;/P&gt;&amp;nbsp;Header-&amp;gt;Subheader-&amp;gt;data (Each header may contain 10 or just 1 subheader) ,i want to sum the total data value for a specific header(totalling all subheader data integer values) 2nd iteration would&amp;nbsp;&lt;P&gt;context.header='ABCDEF';context.data=400;&lt;/P&gt;&lt;P&gt;So each iteration would generate new values like (&lt;/P&gt;&lt;P&gt;context.header='XYZEAF'&lt;/P&gt;) and&amp;nbsp;&lt;P&gt;context.data=150;&lt;/P&gt;&amp;nbsp;or it would retain the same value as such for the context.header&lt;P&gt;Essentially i would want to sum up the total of data integer value if it has the same header from the previous iteration or if it is a new header ,i would want to create a separate total for it like:&lt;/P&gt;&lt;P&gt;OUTPUT: Total data count: ABCDEF=500(100+400)............... XYZEAF=150..................and so on&lt;/P&gt;&lt;P&gt;Is there a way to capture the output from the previous iteration after each file processing in talend and compare against the latest iteration and perform the summation?&lt;/P&gt;&lt;P&gt;I was thinking possibly creating an arraylist which can dynamically grow in size and storing the header values in that for each iteration/run and then cross-check with the previous iteration if it had same header -&amp;gt;Just total it up else create a new counter for the new header for the total data.Please suggest some easier way of doing it&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:04:35 GMT</pubDate>
    <dc:creator>Haresh</dc:creator>
    <dc:date>2024-11-16T00:04:35Z</dc:date>
    <item>
      <title>Capture previous iteration result and compare the data?</title>
      <link>https://community.qlik.com/t5/Data-Quality/Capture-previous-iteration-result-and-compare-the-data/m-p/2205312#M807</link>
      <description>&lt;P&gt;In my talend program ,we use a java code block to store context variables(global variables) like&amp;nbsp;&lt;/P&gt;&lt;P&gt;context.header='ABCDEF';&lt;/P&gt;&amp;nbsp;(using the program logic) and it has a corresponding value as&amp;nbsp;&lt;P&gt;context.data=100;&lt;/P&gt;&amp;nbsp;Header-&amp;gt;Subheader-&amp;gt;data (Each header may contain 10 or just 1 subheader) ,i want to sum the total data value for a specific header(totalling all subheader data integer values) 2nd iteration would&amp;nbsp;&lt;P&gt;context.header='ABCDEF';context.data=400;&lt;/P&gt;&lt;P&gt;So each iteration would generate new values like (&lt;/P&gt;&lt;P&gt;context.header='XYZEAF'&lt;/P&gt;) and&amp;nbsp;&lt;P&gt;context.data=150;&lt;/P&gt;&amp;nbsp;or it would retain the same value as such for the context.header&lt;P&gt;Essentially i would want to sum up the total of data integer value if it has the same header from the previous iteration or if it is a new header ,i would want to create a separate total for it like:&lt;/P&gt;&lt;P&gt;OUTPUT: Total data count: ABCDEF=500(100+400)............... XYZEAF=150..................and so on&lt;/P&gt;&lt;P&gt;Is there a way to capture the output from the previous iteration after each file processing in talend and compare against the latest iteration and perform the summation?&lt;/P&gt;&lt;P&gt;I was thinking possibly creating an arraylist which can dynamically grow in size and storing the header values in that for each iteration/run and then cross-check with the previous iteration if it had same header -&amp;gt;Just total it up else create a new counter for the new header for the total data.Please suggest some easier way of doing it&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Capture-previous-iteration-result-and-compare-the-data/m-p/2205312#M807</guid>
      <dc:creator>Haresh</dc:creator>
      <dc:date>2024-11-16T00:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Capture previous iteration result and compare the data?</title>
      <link>https://community.qlik.com/t5/Data-Quality/Capture-previous-iteration-result-and-compare-the-data/m-p/2205313#M808</link>
      <description>&lt;P&gt;HI @Haresh, take a look a tFlowToIterate component :&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.talend.com/r/vn0o8XYVXXNgJkRtWjet9A/gQW7IzhQK0pr5oLxZWT_NQ" alt="https://help.talend.com/r/vn0o8XYVXXNgJkRtWjet9A/gQW7IzhQK0pr5oLxZWT_NQ" target="_blank"&gt;https://help.talend.com/r/vn0o8XYVXXNgJkRtWjet9A/gQW7IzhQK0pr5oLxZWT_NQ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;with it you can iterate your flow and it stock the values of each rows in globlaMap.&lt;/P&gt;&lt;P&gt;so at each iteration you can manipulate the values of the field of the row with values of the previous row you stocked before in other globalMap.&lt;/P&gt;&lt;P&gt;Send me Love and Kudos&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 09:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Capture-previous-iteration-result-and-compare-the-data/m-p/2205313#M808</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-16T09:18:48Z</dc:date>
    </item>
  </channel>
</rss>

