<?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: Talend Data integration Uniting 2 rows into one in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-Data-integration-Uniting-2-rows-into-one/m-p/2257095#M39281</link>
    <description>&lt;P&gt;Separate M from F using tFilterRow then compute (sum) total per genre with tAggregateRow giving 2 linked tHashOutput.&lt;/P&gt; 
&lt;P&gt;Join both tHash rows using a tMap with appropriate filter on genre for each and sum gendered total giving gran total.&lt;/P&gt; 
&lt;P&gt;Looks like this:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job.png" style="width: 708px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8aY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149435i8DC0C6934D231911/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8aY.png" alt="0683p000009M8aY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;tAggregate are identicals:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job.png" style="width: 729px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8ad.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149199i065D3D8CC20D7FBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8ad.png" alt="0683p000009M8ad.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;And tMap is like this:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8KW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150936i86100278DC4F763A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8KW.png" alt="0683p000009M8KW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Here is the final result:&lt;/P&gt; 
&lt;PRE&gt;[statistics] connecting to socket on port 3832
[statistics] connected
.--------+--------+----------+---------+-----------+-----.
|                       tLogRow_14                       |
|=-------+--------+----------+---------+-----------+----=|
|schoolId|courseId|locationId|totalMale|totalFemale|total|
|=-------+--------+----------+---------+-----------+----=|
|1       |2       |3         |40       |30         |70   |
'--------+--------+----------+---------+-----------+-----'

[statistics] disconnected&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Nov 2019 21:49:55 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2019-11-15T21:49:55Z</dc:date>
    <item>
      <title>Talend Data integration Uniting 2 rows into one</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Data-integration-Uniting-2-rows-into-one/m-p/2257094#M39280</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;I'm currently in the process of doing an ETL process and during it i've encountered an obstacle that i can't quite find a solution for it. So basically my datasets are from a .csv file and im loading them into my datawarehouse, my fact table has as its composite primary key "schoolID" "courseID" "locationID" and as facts "totalMale" "totalFemale" and "total". However on the .csv file i have 2 rows that have the same primary key but different values for "genre" and "totalRegistered", I would like to unite those 2 rows into a single one that has both totalMale and totalFemale as shown in the picture bellow. I have no idea how to do it right now as I'm quite new to the software, any suggestions?&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_1.png" style="width: 887px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8aO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143356iD9BE5FCFF5817BA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8aO.png" alt="0683p000009M8aO.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Data-integration-Uniting-2-rows-into-one/m-p/2257094#M39280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Data integration Uniting 2 rows into one</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Data-integration-Uniting-2-rows-into-one/m-p/2257095#M39281</link>
      <description>&lt;P&gt;Separate M from F using tFilterRow then compute (sum) total per genre with tAggregateRow giving 2 linked tHashOutput.&lt;/P&gt; 
&lt;P&gt;Join both tHash rows using a tMap with appropriate filter on genre for each and sum gendered total giving gran total.&lt;/P&gt; 
&lt;P&gt;Looks like this:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job.png" style="width: 708px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8aY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149435i8DC0C6934D231911/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8aY.png" alt="0683p000009M8aY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;tAggregate are identicals:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job.png" style="width: 729px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8ad.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149199i065D3D8CC20D7FBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8ad.png" alt="0683p000009M8ad.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;And tMap is like this:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8KW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150936i86100278DC4F763A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8KW.png" alt="0683p000009M8KW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Here is the final result:&lt;/P&gt; 
&lt;PRE&gt;[statistics] connecting to socket on port 3832
[statistics] connected
.--------+--------+----------+---------+-----------+-----.
|                       tLogRow_14                       |
|=-------+--------+----------+---------+-----------+----=|
|schoolId|courseId|locationId|totalMale|totalFemale|total|
|=-------+--------+----------+---------+-----------+----=|
|1       |2       |3         |40       |30         |70   |
'--------+--------+----------+---------+-----------+-----'

[statistics] disconnected&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2019 21:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Data-integration-Uniting-2-rows-into-one/m-p/2257095#M39281</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-11-15T21:49:55Z</dc:date>
    </item>
  </channel>
</rss>

