<?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: Group data by a column and then sum multiple columns for each group in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Group-data-by-a-column-and-then-sum-multiple-columns-for-each/m-p/2314223#M85014</link>
    <description>i have a mysql table with the columns 
&lt;BR /&gt;date|customer_name|purchase_amount| 
&lt;BR /&gt;i want to group the data based on the customer name and date. 
&lt;BR /&gt;and i want to load this data to another table of the same database with the grouped result and it should be update on the basis of current date. 
&lt;BR /&gt;so,please help me i am new in this technology... 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Chandan kumar</description>
    <pubDate>Fri, 03 Jan 2014 07:36:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-03T07:36:07Z</dc:date>
    <item>
      <title>Group data by a column and then sum multiple columns for each group</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Group-data-by-a-column-and-then-sum-multiple-columns-for-each/m-p/2314221#M85012</link>
      <description>I've got a CSV with the following headers 
&lt;BR /&gt;Date|Name|Type|Status|Gross|Fee|Net|Shipping|Balance 
&lt;BR /&gt;What I'm trying to do is group the data by the Type column (Payment, Refund, Declined) and then sum the Gross, Fee, Net, &amp;amp; Shipping columns for each group. Currently my work flow is as follows 
&lt;BR /&gt;tFileInputDelimited-&amp;gt;tSortRow(sort by column Type)-&amp;gt;tMap(removing unnecessary columns)-&amp;gt;tFileOutputDelimited 
&lt;BR /&gt;I see that the tAggregateSortedRow function provides the ability to group by and sort but it looks like it's only for databases. Is there a way to preform this operation on a CSV file? 
&lt;BR /&gt;Cheers, 
&lt;BR /&gt;AJ</description>
      <pubDate>Sat, 16 Nov 2024 13:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Group-data-by-a-column-and-then-sum-multiple-columns-for-each/m-p/2314221#M85012</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Group data by a column and then sum multiple columns for each group</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Group-data-by-a-column-and-then-sum-multiple-columns-for-each/m-p/2314222#M85013</link>
      <description>tAggregateRow (and tAggregateSortedRow ) work on Talend rows-- the data can come from any input type. Are you having trouble getting these components to work for your need?</description>
      <pubDate>Fri, 22 May 2009 23:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Group-data-by-a-column-and-then-sum-multiple-columns-for-each/m-p/2314222#M85013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-22T23:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Group data by a column and then sum multiple columns for each group</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Group-data-by-a-column-and-then-sum-multiple-columns-for-each/m-p/2314223#M85014</link>
      <description>i have a mysql table with the columns 
&lt;BR /&gt;date|customer_name|purchase_amount| 
&lt;BR /&gt;i want to group the data based on the customer name and date. 
&lt;BR /&gt;and i want to load this data to another table of the same database with the grouped result and it should be update on the basis of current date. 
&lt;BR /&gt;so,please help me i am new in this technology... 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Chandan kumar</description>
      <pubDate>Fri, 03 Jan 2014 07:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Group-data-by-a-column-and-then-sum-multiple-columns-for-each/m-p/2314223#M85014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-03T07:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Group data by a column and then sum multiple columns for each group</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Group-data-by-a-column-and-then-sum-multiple-columns-for-each/m-p/2314224#M85015</link>
      <description>hi, 
&lt;BR /&gt; 
&lt;BR /&gt;as JohnGarrettMartin said use tAggregateRow : 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/search/all?query=tAggregateRow&amp;amp;content-lang=en" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=tAggregateRow&amp;amp;content-lang=en&lt;/A&gt; 
&lt;BR /&gt;A better practice to use Talend component dedicated to an action, but you could let the Server (DB) engine do the job and aggregate &amp;amp; group by in your sql statement 
&lt;BR /&gt; 
&lt;PRE&gt;/** something like **/&lt;BR /&gt;select ...... , sum(..)&lt;BR /&gt;from .....&lt;BR /&gt;group by .....&lt;/PRE&gt; 
&lt;BR /&gt;As you have to load result in table in the same DB , you also can use ELT that have a graphic Talend way to design your job but do not extract data to manage it but let the DB engine do the request ans insert result into yout table. 
&lt;BR /&gt; 
&lt;BR /&gt;hope it helps you 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent</description>
      <pubDate>Fri, 03 Jan 2014 08:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Group-data-by-a-column-and-then-sum-multiple-columns-for-each/m-p/2314224#M85015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-03T08:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Group data by a column and then sum multiple columns for each group</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Group-data-by-a-column-and-then-sum-multiple-columns-for-each/m-p/2314225#M85016</link>
      <description>Hi ,
&lt;BR /&gt;Thanks for your quick response.
&lt;BR /&gt;but i want to extract data,grouping and sum through the Talend component not through the sql query.
&lt;BR /&gt;please assist me for the same.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Chandan Kumar</description>
      <pubDate>Fri, 03 Jan 2014 09:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Group-data-by-a-column-and-then-sum-multiple-columns-for-each/m-p/2314225#M85016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-03T09:19:35Z</dc:date>
    </item>
  </channel>
</rss>

