<?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 How to combine 2 columns into one? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347173#M114450</link>
    <description>Hey guys, TOS is amazing. However I'm having a problem combining 2 columns into 1. I've looked into using tMap, but I can't find my solution. I'm inputing from a delimited file if that makes any difference. I have 2 columns:
&lt;BR /&gt;My input is
&lt;BR /&gt;
&lt;U&gt;ID &amp;nbsp; &amp;nbsp;| Category1 &amp;nbsp; | Category2&lt;/U&gt;
&lt;BR /&gt;| 1 &amp;nbsp; | &amp;nbsp; &amp;nbsp;Apparel &amp;nbsp;| &amp;nbsp; Jackets |
&lt;BR /&gt;| 2 &amp;nbsp; | &amp;nbsp; &amp;nbsp;Shoes &amp;nbsp; &amp;nbsp;| &amp;nbsp;Running |
&lt;BR /&gt;My output that I want to have is
&lt;BR /&gt;
&lt;U&gt;ID &amp;nbsp; &amp;nbsp; | &amp;nbsp;Category&lt;/U&gt;
&lt;BR /&gt;| 1 &amp;nbsp; &amp;nbsp;| &amp;nbsp; Apparel |
&lt;BR /&gt;| 2 &amp;nbsp; &amp;nbsp;| &amp;nbsp; Jackets &amp;nbsp;|
&lt;BR /&gt;| 3 &amp;nbsp; &amp;nbsp;| &amp;nbsp; Shoes &amp;nbsp; &amp;nbsp;|
&lt;BR /&gt;| 4 &amp;nbsp; &amp;nbsp;| &amp;nbsp; Running |
&lt;BR /&gt;
&lt;BR /&gt;Any advice you have, would be great!&amp;nbsp;</description>
    <pubDate>Fri, 05 Jun 2015 14:42:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-05T14:42:38Z</dc:date>
    <item>
      <title>How to combine 2 columns into one?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347173#M114450</link>
      <description>Hey guys, TOS is amazing. However I'm having a problem combining 2 columns into 1. I've looked into using tMap, but I can't find my solution. I'm inputing from a delimited file if that makes any difference. I have 2 columns:
&lt;BR /&gt;My input is
&lt;BR /&gt;
&lt;U&gt;ID &amp;nbsp; &amp;nbsp;| Category1 &amp;nbsp; | Category2&lt;/U&gt;
&lt;BR /&gt;| 1 &amp;nbsp; | &amp;nbsp; &amp;nbsp;Apparel &amp;nbsp;| &amp;nbsp; Jackets |
&lt;BR /&gt;| 2 &amp;nbsp; | &amp;nbsp; &amp;nbsp;Shoes &amp;nbsp; &amp;nbsp;| &amp;nbsp;Running |
&lt;BR /&gt;My output that I want to have is
&lt;BR /&gt;
&lt;U&gt;ID &amp;nbsp; &amp;nbsp; | &amp;nbsp;Category&lt;/U&gt;
&lt;BR /&gt;| 1 &amp;nbsp; &amp;nbsp;| &amp;nbsp; Apparel |
&lt;BR /&gt;| 2 &amp;nbsp; &amp;nbsp;| &amp;nbsp; Jackets &amp;nbsp;|
&lt;BR /&gt;| 3 &amp;nbsp; &amp;nbsp;| &amp;nbsp; Shoes &amp;nbsp; &amp;nbsp;|
&lt;BR /&gt;| 4 &amp;nbsp; &amp;nbsp;| &amp;nbsp; Running |
&lt;BR /&gt;
&lt;BR /&gt;Any advice you have, would be great!&amp;nbsp;</description>
      <pubDate>Fri, 05 Jun 2015 14:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347173#M114450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-05T14:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine 2 columns into one?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347174#M114451</link>
      <description>This is a good exercise to get familiar with the flexibility of Talend. In order to achieve this you will need a tMap and a tNormalize component.&amp;nbsp;
&lt;BR /&gt;In the tMap you need to join the Category1 and Category2 columns with a consistent separator. So in your output, you will want something like.....
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;row1.Category1 ";" row1.Category2&lt;/PRE&gt;
&lt;BR /&gt;Then join the tMap output to the tNormalize component. The configuration of this component is pretty well explained 
&lt;A href="https://help.talend.com/search/all?query=tNormalize&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;.
&lt;BR /&gt;If you want to update the ID with a continuous sequence of 1 to n, then you can do that with several different components. An easy way is to use another tMap and use a tMap variable to count the rows. Use that counter in your output.&amp;nbsp;</description>
      <pubDate>Fri, 05 Jun 2015 15:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347174#M114451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-05T15:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine 2 columns into one?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347175#M114452</link>
      <description>Hi,
&lt;BR /&gt;You need to use tSplitRow which is dedicated to split 1 rows in 2 or more.
&lt;BR /&gt;Really simple to use with just one step.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Fred</description>
      <pubDate>Sat, 06 Jun 2015 18:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347175#M114452</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-06-06T18:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine 2 columns into one?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347176#M114453</link>
      <description>I forgot about the tSplitRow to be honest. I am usually dealing with data that is stored comma separated that needs to be split into different rows.&amp;nbsp;</description>
      <pubDate>Sat, 06 Jun 2015 19:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347176#M114453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-06T19:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine 2 columns into one?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347177#M114454</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to combine of two column into one but it is an interger value. I want to combine it without using tSplitRow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;Kanda&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 11:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347177#M114454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-05T11:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine 2 columns into one?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347178#M114455</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can combine two columns by providing comma and concatenating in TMap and then normalizing the output based on comma.&lt;/P&gt;
&lt;P&gt;I have provided mapping and other photos.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LtOh"&gt;tmapone.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LtBD"&gt;combine_two_columns.PNG&lt;/A&gt;</description>
      <pubDate>Thu, 05 Jul 2018 15:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347178#M114455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-05T15:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine 2 columns into one?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347179#M114456</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; thank you so much much aaryan for helping me&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 16:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347179#M114456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-05T16:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine 2 columns into one?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347180#M114457</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide the step by step configuration of each component to achieve this result. I am new to Talend, I want to know. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 14:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-combine-2-columns-into-one/m-p/2347180#M114457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-10T14:16:42Z</dc:date>
    </item>
  </channel>
</rss>

