<?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 create sum of column without losing all the rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/create-sum-of-column-without-losing-all-the-rows/m-p/2228735#M19902</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need per row a sum of the entire collection.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only thing I find to create a sum is with the aggregateRow. But this removes my rows. And just gives me the total.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I per row convert column B from single row value to the total of all rows. I need this in every row of my selected data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:05:57 GMT</pubDate>
    <dc:creator>simonius</dc:creator>
    <dc:date>2024-11-16T02:05:57Z</dc:date>
    <item>
      <title>create sum of column without losing all the rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/create-sum-of-column-without-losing-all-the-rows/m-p/2228735#M19902</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need per row a sum of the entire collection.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only thing I find to create a sum is with the aggregateRow. But this removes my rows. And just gives me the total.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I per row convert column B from single row value to the total of all rows. I need this in every row of my selected data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/create-sum-of-column-without-losing-all-the-rows/m-p/2228735#M19902</guid>
      <dc:creator>simonius</dc:creator>
      <dc:date>2024-11-16T02:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: create sum of column without losing all the rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/create-sum-of-column-without-losing-all-the-rows/m-p/2228736#M19903</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can use tJavaFlex( or tJavaRow) between source and destination, here you just store to a variable&amp;nbsp;&lt;/P&gt;&lt;P&gt;as an example with tJavaFlex:&lt;/P&gt;&lt;P&gt;in the top section:&lt;/P&gt;&lt;PRE&gt;globalMap.put("SumTotal",0);&lt;/PRE&gt;&lt;P&gt;in the middle section:&lt;/P&gt;&lt;PRE&gt;globalMap.put("SumTotal", globalMap.get("SumTotal")+row1.ColumnB);&lt;/PRE&gt;&lt;P&gt;of course, you need to control null values&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>Mon, 22 Jun 2020 12:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/create-sum-of-column-without-losing-all-the-rows/m-p/2228736#M19903</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2020-06-22T12:15:53Z</dc:date>
    </item>
  </channel>
</rss>

