<?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 rows by key into one row with more columns in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Group-rows-by-key-into-one-row-with-more-columns/m-p/2248212#M33139</link>
    <description>&lt;P&gt;Thanks for the help, I think I've found a solution, because there are other case to care about, I'll post the solution later and explain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 12:56:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-17T12:56:58Z</dc:date>
    <item>
      <title>Group rows by key into one row with more columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Group-rows-by-key-into-one-row-with-more-columns/m-p/2248207#M33134</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to group 3 rows with the same key into 1 row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have in entry for example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;Key; Counter; Value&lt;/P&gt;&lt;P&gt;1;FH;100&lt;/P&gt;&lt;P&gt;1;CY;200&lt;/P&gt;&lt;P&gt;1;FC;600&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in my output&lt;/P&gt;&lt;P&gt;Key;Counter_FH;Counter_CY;Counter_FC&lt;/P&gt;&lt;P&gt;1;100;200;600&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we have in Talend a component to group multiple rows and then I could say in each colum "Counter.equals("FH") ? Value : null"&lt;/P&gt;&lt;P&gt;Or something like that ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks (I wanted to try with tAggregate but I don't want to use function so i can't ?)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 10:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Group-rows-by-key-into-one-row-with-more-columns/m-p/2248207#M33134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-17T10:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Group rows by key into one row with more columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Group-rows-by-key-into-one-row-with-more-columns/m-p/2248208#M33135</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPeUAAW"&gt;@samsamarzr&lt;/A&gt;&amp;nbsp;,this is the one way.&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="Untitled.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M76D.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147172i16689957FF05B8D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M76D.png" alt="0683p000009M76D.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;you can do with tmap with&amp;nbsp;&lt;SPAN&gt;"Counter.equals("FH") ? Value : null" .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 10:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Group-rows-by-key-into-one-row-with-more-columns/m-p/2248208#M33135</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-09-17T10:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Group rows by key into one row with more columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Group-rows-by-key-into-one-row-with-more-columns/m-p/2248209#M33136</link>
      <description>&lt;P&gt;Sorry but that's not what I wanted&lt;/P&gt;&lt;P&gt;Here you have 1 column value and I want 3 column value in my output&lt;/P&gt;&lt;P&gt;One for the FH counter, one for the FC counter and one for the CY counter&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I really need to group rows into one row and then I think I can handle the problem with some if condition&lt;/P&gt;&lt;P&gt;If I use only tMap I'll have 3 rows not one because I have 3 rows in my input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Group-rows-by-key-into-one-row-with-more-columns/m-p/2248209#M33136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-17T12:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Group rows by key into one row with more columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Group-rows-by-key-into-one-row-with-more-columns/m-p/2248210#M33137</link>
      <description>&lt;P&gt;Just do it with SQL.&lt;/P&gt;
&lt;PRE&gt;select 
    key,
    MAX(CASE Counter WHEN 'FH' THEN Value ELSE 0 END) AS Value1,
    MAX(CASE Counter WHEN 'CY' THEN Value ELSE 0 END) AS Value2,
    MAX(CASE Counter WHEN 'FC' THEN Value ELSE 0 END) AS Value3
from tablename
group by key
;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Group-rows-by-key-into-one-row-with-more-columns/m-p/2248210#M33137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-17T12:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Group rows by key into one row with more columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Group-rows-by-key-into-one-row-with-more-columns/m-p/2248211#M33138</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPeUAAW"&gt;@samsamarzr&lt;/A&gt;&amp;nbsp;,check this one.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7NN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156172iC4B981AE850E9551/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7NN.png" alt="0683p000009M7NN.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Group-rows-by-key-into-one-row-with-more-columns/m-p/2248211#M33138</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-09-17T12:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Group rows by key into one row with more columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Group-rows-by-key-into-one-row-with-more-columns/m-p/2248212#M33139</link>
      <description>&lt;P&gt;Thanks for the help, I think I've found a solution, because there are other case to care about, I'll post the solution later and explain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Group-rows-by-key-into-one-row-with-more-columns/m-p/2248212#M33139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-17T12:56:58Z</dc:date>
    </item>
  </channel>
</rss>

