<?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 Column Assignment based on Content in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Column-Assignment-based-on-Content/m-p/2229300#M20277</link>
    <description>Hi,&lt;BR /&gt;I need to assign a column from an input table to 2 output columns based on the content.&lt;BR /&gt;Input Table: (extraction):&lt;BR /&gt;1. Salutation&lt;BR /&gt;2. Name&lt;BR /&gt;Output Table:&lt;BR /&gt;1. Salutation&lt;BR /&gt;2. Contact&lt;BR /&gt;3. Company&lt;BR /&gt;The data in the column "Name" (Input) is a mix of company names and private names. If I can find the words "Mr, Mrs, Ms", etc. in salutation I need to assign the content from "Name" (Input) to "Contact" (Output), otherwise it needs to go into "Company".&lt;BR /&gt;How can I do this in Talend?&lt;BR /&gt;Thank you very much!&lt;BR /&gt;Stefan&lt;BR /&gt;(Using Talend OS4DI 5.0.2)</description>
    <pubDate>Mon, 04 Jun 2012 04:03:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-04T04:03:37Z</dc:date>
    <item>
      <title>Column Assignment based on Content</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Column-Assignment-based-on-Content/m-p/2229300#M20277</link>
      <description>Hi,&lt;BR /&gt;I need to assign a column from an input table to 2 output columns based on the content.&lt;BR /&gt;Input Table: (extraction):&lt;BR /&gt;1. Salutation&lt;BR /&gt;2. Name&lt;BR /&gt;Output Table:&lt;BR /&gt;1. Salutation&lt;BR /&gt;2. Contact&lt;BR /&gt;3. Company&lt;BR /&gt;The data in the column "Name" (Input) is a mix of company names and private names. If I can find the words "Mr, Mrs, Ms", etc. in salutation I need to assign the content from "Name" (Input) to "Contact" (Output), otherwise it needs to go into "Company".&lt;BR /&gt;How can I do this in Talend?&lt;BR /&gt;Thank you very much!&lt;BR /&gt;Stefan&lt;BR /&gt;(Using Talend OS4DI 5.0.2)</description>
      <pubDate>Mon, 04 Jun 2012 04:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Column-Assignment-based-on-Content/m-p/2229300#M20277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-04T04:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Column Assignment based on Content</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Column-Assignment-based-on-Content/m-p/2229301#M20278</link>
      <description>Hi Stefan
&lt;BR /&gt;Welcome to Talend Community!
&lt;BR /&gt;You might set expression in tMap as seen below.
&lt;BR /&gt;Contact:
&lt;BR /&gt;
&lt;PRE&gt;row1.Name.startsWith("Mr")?row1.Name:(row1.Name.startsWith("Mrs")?row1.Name:(row1.Name.startsWith("Ms")?row1.Name:null))&lt;/PRE&gt;
&lt;BR /&gt;Company:
&lt;BR /&gt;
&lt;PRE&gt;row1.Name.startsWith("Mr")?null:(row1.Name.startsWith("Mrs")?null:(row1.Name.startsWith("Ms")?null:row1.Name))&lt;/PRE&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Mon, 04 Jun 2012 06:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Column-Assignment-based-on-Content/m-p/2229301#M20278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-04T06:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Column Assignment based on Content</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Column-Assignment-based-on-Content/m-p/2229302#M20279</link>
      <description>Hi Pedro&lt;BR /&gt;Great thanks for your answer!&lt;BR /&gt;It is a good and working solution.&lt;BR /&gt;Stefan</description>
      <pubDate>Mon, 04 Jun 2012 08:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Column-Assignment-based-on-Content/m-p/2229302#M20279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-04T08:07:16Z</dc:date>
    </item>
  </channel>
</rss>

