<?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: How to convert vertical data to rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278137#M53696</link>
    <description>&lt;P&gt;The values are coming from a file, not a DB. I now have:&lt;/P&gt;
&lt;P&gt;tFileInputFullRow -&amp;gt; tFileOutputDelimited -&amp;gt;tMap -&amp;gt; tPivotToColumnsDelimited&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The tFileOutputDelimited is producing:&lt;/P&gt;
&lt;P&gt;"Non-Operating Temp(536871008) : "&lt;BR /&gt;"Not Found On(200003002) : "&lt;BR /&gt;"Notes : 2015-01-29 10:09:53 AM mtm032"&lt;BR /&gt;" ANNA-LISA WALKER no longer associated with this work"&lt;BR /&gt;" "&lt;BR /&gt;"Notification Address(250000009) : "&lt;BR /&gt;"Notification Address2(251000009) : "&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I think we need is similar to this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"Notes : 2015-01-29 10:09:53 AM mtm032&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;ANNA-LISA WALKER no longer associated with this work&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2019 16:00:20 GMT</pubDate>
    <dc:creator>Phil3</dc:creator>
    <dc:date>2019-10-03T16:00:20Z</dc:date>
    <item>
      <title>How to convert vertical data to rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278128#M53687</link>
      <description>&lt;P&gt;I have data from Remedy Service Desk that looks similar to this:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Serial Number+ : 2004012345O&lt;BR /&gt;# of CPUs :&lt;BR /&gt;# of Disk Drives :&lt;BR /&gt;# of Slots Used :&lt;BR /&gt;AC Input Current(536871005) :&lt;BR /&gt;AC Input Voltage(536871004) :&lt;BR /&gt;Access Method :&lt;BR /&gt;Access MethodFR(536871135) :&lt;BR /&gt;Acquired Method(260000000) :&lt;BR /&gt;Action on Submit(250000015) :&lt;BR /&gt;ArchiveReady(536871128) :&lt;BR /&gt;Asset History(200003000) :&lt;BR /&gt;Assigned-to(4) :&lt;BR /&gt;Assignment Group :&lt;BR /&gt;Assignment Individual :&lt;BR /&gt;Associated Program :&lt;BR /&gt;AssociatedProgramFR(537038842) :&lt;BR /&gt;Associationdel'utilisateur(936870998) :&lt;BR /&gt;AT User? : No&lt;BR /&gt;Attribute Notes :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This repeats (there are more fields mind you) for every workstation. How do I convert this to rows?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 17:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278128#M53687</guid>
      <dc:creator>Phil3</dc:creator>
      <dc:date>2019-10-02T17:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert vertical data to rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278129#M53688</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Could you please try&amp;nbsp;&lt;SPAN class="keyword"&gt;tPivotToColumnsDelimited&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;for converting to columns?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Please refer the link below for component details.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://help.talend.com/reader/L0Sr3ydCNjhsuv4ObSVt4Q/~ZjLZkfhCa1Za5X0sGrzjQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/L0Sr3ydCNjhsuv4ObSVt4Q/~ZjLZkfhCa1Za5X0sGrzjQ&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 21:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278129#M53688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-02T21:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert vertical data to rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278130#M53689</link>
      <description>&lt;P&gt;I looked at that, but I can't get it to work. Can you be more specific on how to configure it for my applications (see the sample data posted previously)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 11:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278130#M53689</guid>
      <dc:creator>Phil3</dc:creator>
      <dc:date>2019-10-03T11:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert vertical data to rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278131#M53690</link>
      <description>&lt;P&gt;What kind of tFileInput… is this type of file? How do I get Talend to parse the field labels into columns?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 11:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278131#M53690</guid>
      <dc:creator>Phil3</dc:creator>
      <dc:date>2019-10-03T11:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert vertical data to rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278132#M53691</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000006e6aUAAQ"&gt;@philjmaier&lt;/A&gt;&amp;nbsp;you need a little transformation before to go with tPivotColumnsDelimited component.&lt;/P&gt; 
&lt;P&gt;For that, you have to add a tMap like like this one:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMap.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M86E.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144332i2C26F9B5941FEDEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M86E.png" alt="0683p000009M86E.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Here is what the expressions associated to local variables are:&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;column :&amp;nbsp; a sequence from 1 to n (resetted when the number of properties per device is reach)&lt;/LI&gt; 
 &lt;LI&gt;group : a sequence from 1 to n with the following expression:&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;PRE&gt;Var.column == 1 ? Numeric.sequence("group", 1, 1) : Var.previousGroup; 
if(Var.column == 20) Numeric.resetSequence("col", 0); &lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2 things are done here:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;- if current value for Var.column is 1 then add 1 the group number else get the group number from Var.previousGroup wich is defined later&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;- if&amp;nbsp;current value for Var.column is 20 then reset Var.column to 0 (as soon as you have more or less of 20 properties per device you need to change this value - maybe using a context variable)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;previousGroup : setted from Var.group&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;P&gt;The tMap output flow is composed of 3 columns:&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;current column number varying from 1 to 20 depending on the number of properties per device&lt;/LI&gt; 
 &lt;LI&gt;current group number varying from 1 to n depending on the number of devices&lt;/LI&gt; 
 &lt;LI&gt;value : the value for the current column&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;P&gt;Next is&amp;nbsp;component is tPivotColumnsDelimited which configured as explained in the documentation:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tPivot.png" style="width: 719px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M86J.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129846iD88DA5ABE20944B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M86J.png" alt="0683p000009M86J.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;And here is what the output file looks like (2 devices in my case):&lt;/P&gt; 
&lt;PRE&gt;group;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20
1;Serial Number+ : 2004012345O;# of CPUs :;# of Disk Drives :;# of Slots Used :;AC Input Current(536871005) :;AC Input Voltage(536871004) :;Access Method :;Access MethodFR(536871135) :;Acquired Method(260000000) :;Action on Submit(250000015) :;ArchiveReady(536871128) :;Asset History(200003000) :;Assigned-to(4) :;Assignment Group :;Assignment Individual :;Associated Program :;AssociatedProgramFR(537038842) :;Associationdel'utilisateur(936870998) :;AT User? : No;Attribute Notes :
2;Serial Number+ : xxxxxxxxxxxxxO;# of CPUs :;# of Disk Drives :;# of Slots Used :;AC Input Current(536871005) :;AC Input Voltage(536871004) :;Access Method :;Access MethodFR(536871135) :;Acquired Method(260000000) :;Action on Submit(250000015) :;ArchiveReady(536871128) :;Asset History(200003000) :;Assigned-to(4) :;Assignment Group :;Assignment Individual :;Associated Program :;AssociatedProgramFR(537038842) :;Associationdel'utilisateur(936870998) :;AT User? : No;Attribute Notes :&lt;/PRE&gt; 
&lt;P&gt;When you will read the file, just ignore the header line and the group column and that's it (I think so).&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278132#M53691</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-03T13:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert vertical data to rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278133#M53692</link>
      <description>&lt;P&gt;Thanks, it's almost working. The problem now is that there are some fields that are not on a single line:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Non-Operating Temp(536871008) :&lt;BR /&gt;Not Found On(200003002) :&lt;BR /&gt;Notes : 2015-01-29 10:09:53 AM mtm032&lt;BR /&gt;ANNA-LISA WALKER no longer associated with this work&lt;BR /&gt;&lt;BR /&gt;Notification Address(250000009) :&lt;BR /&gt;Notification Address2(251000009) :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a way to account for this type of scenario?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 14:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278133#M53692</guid>
      <dc:creator>Phil3</dc:creator>
      <dc:date>2019-10-03T14:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert vertical data to rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278134#M53693</link>
      <description>Push the result from the DB to an output delimited file with CSV option "Text enclosure" setted to """. Then reuse this file as the input for the rest of the job.&lt;BR /&gt;Thank's to mark your case as solved (Kudo also appreciated).</description>
      <pubDate>Thu, 03 Oct 2019 14:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278134#M53693</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-03T14:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert vertical data to rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278135#M53694</link>
      <description>&lt;P&gt;I don't quite understand what you mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I have so far:&lt;/P&gt;&lt;P&gt;tFileInputFullRow -&amp;gt; tMap -&amp;gt; tPivotToColumnsDelimited&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that some of these multi-line fields are 30 rows long..&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 15:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278135#M53694</guid>
      <dc:creator>Phil3</dc:creator>
      <dc:date>2019-10-03T15:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert vertical data to rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278136#M53695</link>
      <description>&lt;P&gt;Input values must be enclosed between "".&lt;/P&gt;&lt;P&gt;If values are comming from a DB, connect the tDbInput component to a tFileOutputDelimited, set the schema with a single column called "line", the go to "Advanced setting" and&amp;nbsp;tick "CSV options".&lt;/P&gt;&lt;P&gt;This will produce records like this:&lt;/P&gt;&lt;PRE&gt;"Value starts here
continues here
finishes here"&lt;/PRE&gt;&lt;P&gt;Then, replace your tFileInputFullRow by a tFileInputDelimited.&lt;BR /&gt;Set the schema with a single column called "line" and tick "CSV options".&lt;BR /&gt;Values with line feed should now be considered as a single logical record.&lt;/P&gt;&lt;P&gt;If you cannot transform the input file, I'm afraid you have a problem...&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 15:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278136#M53695</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-03T15:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert vertical data to rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278137#M53696</link>
      <description>&lt;P&gt;The values are coming from a file, not a DB. I now have:&lt;/P&gt;
&lt;P&gt;tFileInputFullRow -&amp;gt; tFileOutputDelimited -&amp;gt;tMap -&amp;gt; tPivotToColumnsDelimited&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The tFileOutputDelimited is producing:&lt;/P&gt;
&lt;P&gt;"Non-Operating Temp(536871008) : "&lt;BR /&gt;"Not Found On(200003002) : "&lt;BR /&gt;"Notes : 2015-01-29 10:09:53 AM mtm032"&lt;BR /&gt;" ANNA-LISA WALKER no longer associated with this work"&lt;BR /&gt;" "&lt;BR /&gt;"Notification Address(250000009) : "&lt;BR /&gt;"Notification Address2(251000009) : "&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I think we need is similar to this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"Notes : 2015-01-29 10:09:53 AM mtm032&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;ANNA-LISA WALKER no longer associated with this work&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 16:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278137#M53696</guid>
      <dc:creator>Phil3</dc:creator>
      <dc:date>2019-10-03T16:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert vertical data to rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278138#M53697</link>
      <description>You need to replace tFileInputFullRow and change the file content as explained in the previous post. Changing the file content maybe an other case. I suggest you to mark this case as solved and open a new one with this specific subject (something like "How to retrieve logical records when values may be on more than one physical record and not enclosed by "")</description>
      <pubDate>Thu, 03 Oct 2019 16:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278138#M53697</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-03T16:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert vertical data to rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278139#M53698</link>
      <description>Thank's!
&lt;BR /&gt;Also think about creating your post in "Design and Development" forum.</description>
      <pubDate>Thu, 03 Oct 2019 16:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-vertical-data-to-rows/m-p/2278139#M53698</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-03T16:23:13Z</dc:date>
    </item>
  </channel>
</rss>

