<?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: Grouping rows, create a group row, and modify values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Grouping-rows-create-a-group-row-and-modify-values/m-p/2230011#M20780</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the answer has helped you, could you please mark the topic as resolved?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
    <pubDate>Sun, 16 Dec 2018 16:11:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-16T16:11:39Z</dc:date>
    <item>
      <title>Grouping rows, create a group row, and modify values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Grouping-rows-create-a-group-row-and-modify-values/m-p/2230007#M20776</link>
      <description>&lt;P&gt;I've got a bunch of data in a mysql table, that resembles this data.&lt;/P&gt; 
&lt;PRE&gt;    | sku        | group_name | description       | size | type   |
    |------------|------------|-------------------|------|--------|
    | EX-1000-XS | NULL       | Long text         | XS   | single |
    | EX-1000-S  | NULL       | Long text         | S    | single |
    | EX-1000-M  | NULL       | Long text         | M    | single |
    | EX-1000-L  | NULL       | Long text         | L    | single |
    | EX-1001-M  | EX-1001    | Another long text | M    | single |
    | EX-1001-L  | EX-1001    | Another long text | L    | single |
    | EX-1001    | NULL       |                   |      | group  |&lt;/PRE&gt; 
&lt;P&gt;Now I'm trying to creates row based on grouping that data, and also modify the rows I changed with a proper group_name&lt;/P&gt; 
&lt;PRE&gt;    | sku        | group_name | description       | size | type   |
    |------------|------------|-------------------|------|--------|
    | EX-1000-XS | EX-1000    | Long text         | XS   | single |
    | EX-1000-S  | EX-1000    | Long text         | S    | single |
    | EX-1000-M  | EX-1000    | Long text         | M    | single |
    | EX-1000-L  | EX-1000    | Long text         | L    | single |
    | EX-1000    | NULL       |                   |      | group  |&lt;/PRE&gt; 
&lt;P&gt;I can do the whole things with a extremely complex SQL query, but my re-use is close to none, and the complexity will get out of hand quickly.&amp;nbsp;&amp;nbsp;How can a break this thing out in a series of talend component steps?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 23:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Grouping-rows-create-a-group-row-and-modify-values/m-p/2230007#M20776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-12T23:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping rows, create a group row, and modify values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Grouping-rows-create-a-group-row-and-modify-values/m-p/2230008#M20777</link>
      <description>&lt;P&gt;The initial data is coming in from a&amp;nbsp;MySQL input,&amp;nbsp;which right now has that monstrous SQL query to do the whole transform and then it&amp;nbsp;goes&amp;nbsp;to a tJoin&amp;nbsp;to end&amp;nbsp;at one of two MySQL outputs.&amp;nbsp; One of them for Updates, and one for Inserts, based on if the&amp;nbsp;SKU exists.&amp;nbsp;&amp;nbsp;The output I don't need any assistance on, it's the&amp;nbsp;transform I'm not sure how to refactor.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 23:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Grouping-rows-create-a-group-row-and-modify-values/m-p/2230008#M20777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-12T23:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping rows, create a group row, and modify values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Grouping-rows-create-a-group-row-and-modify-values/m-p/2230009#M20778</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I have used below file as input.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;sku        | group_name | description       | size | type   |
EX-1000-XS | NULL       | Long text         | XS   | single |
EX-1000-S  | NULL       | Long text         | S    | single |
EX-1000-M  | NULL       | Long text         | M    | single |
EX-1000-L  | NULL       | Long text         | L    | single |
EX-1001-M  | EX-1001    | Another long text | M    | single |
EX-1001-L  | EX-1001    | Another long text | L    | single |
EX-1001    | NULL       |                   |      | group  |&lt;/PRE&gt; 
&lt;P&gt;And below is the output.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 890px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1CI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145660i7F58B78715E7928F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1CI.png" alt="0683p000009M1CI.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;Below is the mapping of tMap&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tMap" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1eP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134709i4DC067B456503476/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1eP.png" alt="0683p000009M1eP.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tMap&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;Below is the function used in tMap where I am trimming the group name based on sku name.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;row1.type.trim().equals("single")?row1.sku.substring(0, row1.sku.indexOf("-", row1.sku.indexOf("-") + 1))
 :null &lt;/PRE&gt; 
&lt;P&gt;If the answer has helped you, could you please mark the topic as resolved? Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 07:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Grouping-rows-create-a-group-row-and-modify-values/m-p/2230009#M20778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-13T07:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping rows, create a group row, and modify values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Grouping-rows-create-a-group-row-and-modify-values/m-p/2230010#M20779</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; If you want to take a list of unique groups, I would suggest to to create one more flows in tMap with same steps to pick group name alone and pass the data to a taggregaterow component and send the output as list of group rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 07:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Grouping-rows-create-a-group-row-and-modify-values/m-p/2230010#M20779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-13T07:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping rows, create a group row, and modify values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Grouping-rows-create-a-group-row-and-modify-values/m-p/2230011#M20780</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the answer has helped you, could you please mark the topic as resolved?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Sun, 16 Dec 2018 16:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Grouping-rows-create-a-group-row-and-modify-values/m-p/2230011#M20780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-16T16:11:39Z</dc:date>
    </item>
  </channel>
</rss>

