<?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: [resolved] Merge multiple row data into single row for group of data. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242085#M29031</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, sans-serif"&gt;Can anyone specify how we can split the concatenated value into multiple columns into a table? i have multiple incoming fields which i need to split into multiple output fields. i know i can split one column into multiple using tExtractRegexFields, but i need to know how we can split multiple columns into multiple columns.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, sans-serif"&gt;if there is no component for the doing the above scenario then is there any option for case statement to&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;find delimiter "|" and then split the fields or substring only values before first "|" in col1 and value between first and second delimiter in col2 and value between second and third delimiter in col3 and so on... like this i have to split each column which i merged in source into multiple in target.&lt;BR /&gt;is there any easy way to do that.&lt;BR /&gt;Thanks,</description>
    <pubDate>Thu, 18 Feb 2016 18:47:00 GMT</pubDate>
    <dc:creator>vivekjayapalan</dc:creator>
    <dc:date>2016-02-18T18:47:00Z</dc:date>
    <item>
      <title>[resolved] Merge multiple row data into single row for group of data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242079#M29025</link>
      <description>Hi, 
&lt;BR /&gt;I need help in doing the following 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Arial, sans-serif"&gt;Have attached the scenario i am trying to do in Talend&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/220166/Scenario.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD4c.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142523iC10785E1C01D5B5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD4c.png" alt="0683p000009MD4c.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/A&gt; 
&lt;BR /&gt;Couldn't find any component where you can do a un-pivot kind of logic. 
&lt;BR /&gt;Any info on this will be great help. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Vivek</description>
      <pubDate>Mon, 08 Feb 2016 19:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242079#M29025</guid>
      <dc:creator>vivekjayapalan</dc:creator>
      <dc:date>2016-02-08T19:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Merge multiple row data into single row for group of data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242080#M29026</link>
      <description>First step is denormalizing the second flow to get the rows as columns. Use tDenormalize to do that.&lt;BR /&gt;Now join flow on to it (over the application_id).</description>
      <pubDate>Mon, 08 Feb 2016 20:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242080#M29026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-08T20:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Merge multiple row data into single row for group of data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242081#M29027</link>
      <description>Hi, i have developed quickly a small job to resolve this Denormalization
&lt;BR /&gt;see solution here &amp;nbsp;(&amp;nbsp; )
&lt;BR /&gt;TalendExpert.com Tutorial</description>
      <pubDate>Mon, 08 Feb 2016 21:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242081#M29027</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-02-08T21:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Merge multiple row data into single row for group of data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242082#M29028</link>
      <description>&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Hi ahallam,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;
&lt;BR /&gt;
&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;could not find any attachment on your reply.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Thanks,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Vivek&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 09 Feb 2016 13:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242082#M29028</guid>
      <dc:creator>vivekjayapalan</dc:creator>
      <dc:date>2016-02-09T13:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Merge multiple row data into single row for group of data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242083#M29029</link>
      <description>Hi Jlolling
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;
&lt;BR /&gt;I tried your solution, and only option we have is to concatenate these fields, is there any option to put it as separate fields? I mean in the tDenormalize.</description>
      <pubDate>Tue, 09 Feb 2016 21:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242083#M29029</guid>
      <dc:creator>vivekjayapalan</dc:creator>
      <dc:date>2016-02-09T21:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Merge multiple row data into single row for group of data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242084#M29030</link>
      <description>Yes you have to separate them later into your fields.</description>
      <pubDate>Tue, 09 Feb 2016 22:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242084#M29030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T22:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Merge multiple row data into single row for group of data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242085#M29031</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, sans-serif"&gt;Can anyone specify how we can split the concatenated value into multiple columns into a table? i have multiple incoming fields which i need to split into multiple output fields. i know i can split one column into multiple using tExtractRegexFields, but i need to know how we can split multiple columns into multiple columns.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, sans-serif"&gt;if there is no component for the doing the above scenario then is there any option for case statement to&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;find delimiter "|" and then split the fields or substring only values before first "|" in col1 and value between first and second delimiter in col2 and value between second and third delimiter in col3 and so on... like this i have to split each column which i merged in source into multiple in target.&lt;BR /&gt;is there any easy way to do that.&lt;BR /&gt;Thanks,</description>
      <pubDate>Thu, 18 Feb 2016 18:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242085#M29031</guid>
      <dc:creator>vivekjayapalan</dc:creator>
      <dc:date>2016-02-18T18:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Merge multiple row data into single row for group of data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242086#M29032</link>
      <description>Finally got it working. 
&lt;BR /&gt;There is no direct solution to achieve the above scenario, so i wrote custom code in tJavaRow to achieve the data shown in the below screenshot,&amp;nbsp; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/220166/Record_Split.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCzh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134899i8200260D2A00C559/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCzh.png" alt="0683p000009MCzh.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;By writing the following code i was able to get the data as shown in the above screenshot 
&lt;BR /&gt; 
&lt;PRE&gt;//***tJavaRow code begin****//&lt;BR /&gt;java.util.List&amp;lt;String&amp;gt; ColumnList = new java.util.ArrayList&amp;lt;String&amp;gt;();&lt;BR /&gt;String value1 = "";&lt;BR /&gt;String value2 = "";&lt;BR /&gt;String value3 = "";&lt;BR /&gt;String value4 = "";&lt;BR /&gt;// APP_ID: as APP_ID doesn't need to be split as this data is uniquie the same is assigned directly into output_row//&lt;BR /&gt;output_row.APP_ID = input_row.APP_ID;&lt;BR /&gt;&lt;BR /&gt;ColumnList.add(input_row.FIRST_NAME);&lt;BR /&gt;ColumnList.add(input_row.LAST_NAME);&lt;BR /&gt;ColumnList.add(input_row.ADDR);&lt;BR /&gt;for(String column:ColumnList)&lt;BR /&gt;	{&lt;BR /&gt;	String[] splitArray = column.split("\\|");   &lt;BR /&gt;	for (int i = 0; i &amp;lt; splitArray.length; i++)&lt;BR /&gt;		{&lt;BR /&gt;		if(i == 0)&lt;BR /&gt;			{&lt;BR /&gt;			value1 = splitArray&lt;I&gt;;	&lt;BR /&gt;			} &amp;nbsp;if (i == 1)&lt;BR /&gt;				{&lt;BR /&gt;				value2 = splitArray&lt;I&gt;;&lt;BR /&gt;				} &amp;nbsp;if (i == 2)&lt;BR /&gt;					{&lt;BR /&gt;					value3 = splitArray&lt;I&gt;;&lt;BR /&gt;					} &amp;nbsp;&lt;BR /&gt;		}&lt;BR /&gt;		if(column.equalsIgnoreCase(input_row.FIRST_NAME))&lt;BR /&gt;			{&lt;BR /&gt;			output_row.FIRST_NAME_P_APPLICANT = value1;&lt;BR /&gt;			output_row.FIRST_NAME_CO_APP1 = value2;&lt;BR /&gt;			output_row.FIRST_NAME_CO_APP2 = value3;			&lt;BR /&gt;			}	&lt;BR /&gt;		if(column.equalsIgnoreCase(input_row.LAST_NAME))&lt;BR /&gt;			{&lt;BR /&gt;			output_row.LAST_NAME_P_APP = value1;&lt;BR /&gt;			output_row.LAST_NAME_CO_APP1 = value2;&lt;BR /&gt;			output_row.LAST_NAME_CO_APP2 = value3;			&lt;BR /&gt;			}	&lt;BR /&gt;		if(column.equalsIgnoreCase(input_row.ADDR))&lt;BR /&gt;			{&lt;BR /&gt;			output_row.ADDR_P_APP = value1;&lt;BR /&gt;			output_row.ADDR_CO_APP1 = value2;&lt;BR /&gt;			output_row.ADDR_CO_APP2 = value3;			&lt;BR /&gt;			}&lt;BR /&gt;	}&lt;BR /&gt;//***tJavaRow code end****//&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Using ArrayList and split function we can split single column into any number of columns. 
&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 23 Feb 2016 14:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Merge-multiple-row-data-into-single-row-for-group-of/m-p/2242086#M29032</guid>
      <dc:creator>vivekjayapalan</dc:creator>
      <dc:date>2016-02-23T14:30:56Z</dc:date>
    </item>
  </channel>
</rss>

