<?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: rolling or cumulative sum in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/rolling-or-cumulative-sum/m-p/2295180#M67991</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need talned job for below Source .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Input Source:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quater |&amp;nbsp; PPID | Values&lt;/P&gt;&lt;P&gt;14-Q1&amp;nbsp; | 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;14-Q2&amp;nbsp; |&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | null&lt;/P&gt;&lt;P&gt;14-Q3&amp;nbsp; | 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| null&lt;/P&gt;&lt;P&gt;14-Q4&amp;nbsp; |&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quater |&amp;nbsp; PPID | Values&lt;/P&gt;&lt;P&gt;14-Q1&amp;nbsp; | 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;14-Q2&amp;nbsp; |&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;14-Q3&amp;nbsp; | 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 10&lt;/P&gt;&lt;P&gt;14-Q4&amp;nbsp; |&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for missing Quaters need to populate previous value .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give me solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2020 06:52:51 GMT</pubDate>
    <dc:creator>lokeshbabu</dc:creator>
    <dc:date>2020-01-24T06:52:51Z</dc:date>
    <item>
      <title>rolling or cumulative sum</title>
      <link>https://community.qlik.com/t5/Talend-Studio/rolling-or-cumulative-sum/m-p/2295178#M67989</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm relatively new to Talend and looking for an way to create a rolling or cumulative sum over different groups. For example:&lt;/P&gt;
&lt;P&gt;Input:&lt;/P&gt;
&lt;P&gt;Groups|Value&lt;/P&gt;
&lt;P&gt;A| 1&lt;/P&gt;
&lt;P&gt;A| 0&lt;/P&gt;
&lt;P&gt;A|1&lt;/P&gt;
&lt;P&gt;B|2&lt;/P&gt;
&lt;P&gt;B|0&lt;/P&gt;
&lt;P&gt;C|3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;Groups|Value|C_Sum&lt;/P&gt;
&lt;P&gt;A| 1|1&lt;/P&gt;
&lt;P&gt;A| 0|1&lt;/P&gt;
&lt;P&gt;A|1|2&lt;/P&gt;
&lt;P&gt;B|2|2&lt;/P&gt;
&lt;P&gt;B|0|2&lt;/P&gt;
&lt;P&gt;C|3|3&lt;/P&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 15:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/rolling-or-cumulative-sum/m-p/2295178#M67989</guid>
      <dc:creator>diogenes</dc:creator>
      <dc:date>2017-10-16T15:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: rolling or cumulative sum</title>
      <link>https://community.qlik.com/t5/Talend-Studio/rolling-or-cumulative-sum/m-p/2295179#M67990</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can do this&amp;nbsp;using a tJavaFlex component:&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="RunningGroupTotals.png" style="width: 554px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrRA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136612i673E15320E742A8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrRA.png" alt="0683p000009LrRA.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm using a tFixedFlowInput to simulate&amp;nbsp;the data, as per your example:&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="tFixedFlowInput.png" style="width: 931px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrNU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151079iEBEEB80DA4B84DC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrNU.png" alt="0683p000009LrNU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Add the C_Sum column to the schema of your tJavaFlex component:&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="tJavaFlex_Schema.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrRF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150712iCCD52B4CF3771F76/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrRF.png" alt="0683p000009LrRF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Then add the code:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJavaFlex2.png" style="width: 534px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrRK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141719i73751A4F9567A8EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrRK.png" alt="0683p000009LrRK.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've included&amp;nbsp;the code here,&amp;nbsp;so you can just copy and paste it into your job:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;String  lastGroup = "!";
Integer total = 0;&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;if (!lastGroup.equals(row1.Groups)) {&lt;BR /&gt; total = 0;&lt;BR /&gt; lastGroup = row1.Groups;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;total += row1.Value;&lt;BR /&gt;&lt;BR /&gt;row2.C_Sum = total;&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It's essential that the data is sorted by Groups, but&amp;nbsp;from what you're looking to achieve,&amp;nbsp;I'd expect this to be the case anyway.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 13:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/rolling-or-cumulative-sum/m-p/2295179#M67990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-17T13:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: rolling or cumulative sum</title>
      <link>https://community.qlik.com/t5/Talend-Studio/rolling-or-cumulative-sum/m-p/2295180#M67991</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need talned job for below Source .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Input Source:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quater |&amp;nbsp; PPID | Values&lt;/P&gt;&lt;P&gt;14-Q1&amp;nbsp; | 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;14-Q2&amp;nbsp; |&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | null&lt;/P&gt;&lt;P&gt;14-Q3&amp;nbsp; | 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| null&lt;/P&gt;&lt;P&gt;14-Q4&amp;nbsp; |&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quater |&amp;nbsp; PPID | Values&lt;/P&gt;&lt;P&gt;14-Q1&amp;nbsp; | 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;14-Q2&amp;nbsp; |&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;14-Q3&amp;nbsp; | 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 10&lt;/P&gt;&lt;P&gt;14-Q4&amp;nbsp; |&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for missing Quaters need to populate previous value .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give me solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 06:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/rolling-or-cumulative-sum/m-p/2295180#M67991</guid>
      <dc:creator>lokeshbabu</dc:creator>
      <dc:date>2020-01-24T06:52:51Z</dc:date>
    </item>
  </channel>
</rss>

