<?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: Tnormalize for multi columns in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Tnormalize-for-multi-columns/m-p/2350633#M117461</link>
    <description>&lt;P&gt;If you want to elaborate your case (with details about your input data, particularly), we may be able to offer further assistance.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 17:19:02 GMT</pubDate>
    <dc:creator>cterenzi</dc:creator>
    <dc:date>2017-07-26T17:19:02Z</dc:date>
    <item>
      <title>Tnormalize for multi columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tnormalize-for-multi-columns/m-p/2350630#M117458</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;column1 | column 2 | column 3 | column&lt;/P&gt;&lt;P&gt;1,2,3,4,5 | a,s,d,f,g | z,x,c,v,d | q,w,e,r,t&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;column1 | column 2 | column 3 | colum&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |z &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |q&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | s &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |x &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |w&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can i do this ?There is have too many topic about this issue but i can't fix this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 05:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tnormalize-for-multi-columns/m-p/2350630#M117458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-26T05:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tnormalize for multi columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tnormalize-for-multi-columns/m-p/2350631#M117459</link>
      <description>&lt;P&gt;This can probably be done with tMap variables or multiple tNormalize components where you filter out rows based on a sequencer value. &amp;nbsp;The simplest solution I came up with is to use tNormalize on the first column to get break out the list of keys, then use a tJavaRow to build a String array for each letter column. &amp;nbsp;Using the key to index the array gets you the corresponding value from the list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tFileInputDelimited --&amp;gt; tNormalize --&amp;gt; tJavaRow --&amp;gt; tLogRow&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Schema: key, col1, col2, col3 (all strings)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tJavaRow code:&lt;/P&gt;
&lt;PRE&gt;String[] values1 = input_row.col1.split(",");
String[] values2 = input_row.col2.split(",");
String[] values3 = input_row.col3.split(",");
int index = Integer.parseInt(input_row.key) - 1;

output_row.key = input_row.key;
output_row.col1 = values1[index];
output_row.col2 = values2[index];
output_row.col3 = values3[index];&lt;/PRE&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;PRE&gt;[statistics] connecting to socket on port 3982
[statistics] connected
1|a|z|q
2|s|x|w
3|d|c|e
4|f|v|r
5|g|d|t
[statistics] disconnected&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jul 2017 14:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tnormalize-for-multi-columns/m-p/2350631#M117459</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-07-26T14:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Tnormalize for multi columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tnormalize-for-multi-columns/m-p/2350632#M117460</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for help.Yes i did it but its have problem on me.I cant do this.Its giving error after to 1 row.(1 row coming to tjava but after than its giving error).Error = nullpointerexception.Its can be about my design&amp;nbsp;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Twebservice &amp;gt; tnormalize(Key selected) &amp;gt; tjavarow &amp;gt; tfileoutputexcel&lt;/P&gt;&lt;P&gt;TJavarow:&lt;/P&gt;&lt;PRE&gt;//Code generated according to input schema and output schema
String[] title = input_row.title.split(",");
String[] subtitle = input_row.subtitle.split(",");
int index = Integer.parseInt(input_row.id) - 1;

output_row.id = input_row.id;
output_row.title = title[index];
output_row.subtitle = subtitle[index];&lt;/PRE&gt;&lt;P&gt;I am getting data from twebservice.Other column data types integer and i can't use them with "split".Sorry its my fault.I sent you missing information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 16:39:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tnormalize-for-multi-columns/m-p/2350632#M117460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-26T16:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Tnormalize for multi columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tnormalize-for-multi-columns/m-p/2350633#M117461</link>
      <description>&lt;P&gt;If you want to elaborate your case (with details about your input data, particularly), we may be able to offer further assistance.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 17:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tnormalize-for-multi-columns/m-p/2350633#M117461</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-07-26T17:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Tnormalize for multi columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tnormalize-for-multi-columns/m-p/2350634#M117462</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Data types is too much.I have 20-30 column.Input data is&amp;nbsp;xml tree but its not xml.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Input is twebservice.Input data coming from api.Every column data is example in below:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Column1(name) : "[asad,saewq,asdasd,asdad,asdad,asdas]"&lt;/P&gt; 
&lt;P&gt;......&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;column30&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;price) : "[1,2,3,4,5,6]"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I guess your first tjava sample giving error because i need to filter "[" and "]"&lt;/P&gt; 
&lt;P&gt;I matched index variable with "id" column but first data coming with same this "[1231231312"&lt;/P&gt; 
&lt;P&gt;and last data "123123123]"Its giving error because "[" &amp;lt;&amp;lt; this value.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Except this:&lt;/P&gt; 
&lt;P&gt;Can you offer me another road ?I added 1 image and 2 xml file.&lt;/P&gt; 
&lt;P&gt;Image for twebservice connection screen.&lt;/P&gt; 
&lt;P&gt;out.xml = only one row&lt;/P&gt; 
&lt;P&gt;out2.xml = its two row&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lrmf"&gt;api.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lrj7"&gt;out.xml&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrxW"&gt;out2.xml&lt;/A&gt;</description>
      <pubDate>Fri, 28 Jul 2017 10:01:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tnormalize-for-multi-columns/m-p/2350634#M117462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-28T10:01:22Z</dc:date>
    </item>
  </channel>
</rss>

