<?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 return a value based on a lookup if value appears in a string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202365#M4085</link>
    <description>&lt;P&gt;to concatinate&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;use tmap&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;col1 + " " + col2 + " " + col3&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;now to replace the from lookup country :&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCt3dCAC" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Search-and-Replace-a-List-of-Substrings/td-p/126982&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jun 2020 13:08:01 GMT</pubDate>
    <dc:creator>akumar2301</dc:creator>
    <dc:date>2020-06-05T13:08:01Z</dc:date>
    <item>
      <title>How to return a value based on a lookup if value appears in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202358#M4078</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt; 
&lt;P&gt;I'm not sure if what I'm trying to achieve is possible as I'm very new to Talend.&amp;nbsp; I have a list of addresses and I want to derive the country code from those addresses, but the country values are not consistently in the same field in the source data.&amp;nbsp; So for example it could be&lt;/P&gt; 
&lt;P&gt;Addr1&lt;/P&gt; 
&lt;P&gt;Addr2&lt;/P&gt; 
&lt;P&gt;town&lt;/P&gt; 
&lt;P&gt;country&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;OR&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Addr1&lt;/P&gt; 
&lt;P&gt;Addr2&lt;/P&gt; 
&lt;P&gt;Country&lt;/P&gt; 
&lt;P&gt;Town&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So I want to be able to concatenate all address fields into one (removing commas) and separate them with a space like this&lt;/P&gt; 
&lt;P&gt;Addr1 Addr2 United Kingdom London&lt;/P&gt; 
&lt;P&gt;Then I want to use this concatenated field with a lookup and if United Kingdom is found anywhere in that string, return the country code GB from the lookup&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is that possible?&amp;nbsp; Thanks!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202358#M4078</guid>
      <dc:creator>JM39</dc:creator>
      <dc:date>2024-11-16T02:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a value based on a lookup if value appears in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202359#M4079</link>
      <description>&lt;P&gt;I think that can be achieved , but some questions like :&lt;/P&gt;
&lt;P&gt;1) why you need to concatenate it ? when you are searching for country value in the string, you can directly use the country column for that .&lt;/P&gt;
&lt;P&gt;2) can you tell the structure of you look table and how the data will look there ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 22:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202359#M4079</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2020-06-04T22:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a value based on a lookup if value appears in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202360#M4080</link>
      <description>&lt;P&gt;Thanks. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) I need to concatenate it because the country doesn't always appear in the same column in the address.&amp;nbsp; So if I have a total of five address fields, sometimes it's in addr line2, sometimes it's in the town, sometimes both the town and country are in the same field, and so on &amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) My lookup table will look like:&lt;/P&gt;
&lt;P&gt;Country &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Code&lt;/P&gt;
&lt;P&gt;United Kingdom &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; GB&lt;/P&gt;
&lt;P&gt;United States &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; US&lt;/P&gt;
&lt;P&gt;France &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FR&lt;/P&gt;
&lt;P&gt;So if the word 'France' is contained in the concatenated string anywhere, I would want it to return the value of FR.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 08:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202360#M4080</guid>
      <dc:creator>JM39</dc:creator>
      <dc:date>2020-06-05T08:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a value based on a lookup if value appears in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202361#M4081</link>
      <description>&lt;P&gt;Hello do you have data Quality components. This is little tricky but give you idea of another solution.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.talend.com/reader/hCrOzogIwKfuR3mPf~LydA/NBpEIgXnO6H0r2iUDTllgw" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/hCrOzogIwKfuR3mPf~LydA/NBpEIgXnO6H0r2iUDTllgw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 11:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202361#M4081</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-06-05T11:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a value based on a lookup if value appears in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202362#M4082</link>
      <description>&lt;P&gt;Thank you for that - If I'm reading it right, I would need to repeat that process for every address format for every country?&amp;nbsp; I think it's beyond my capabilities right now - I'm really a beginner with Talend.&amp;nbsp; I'm not too bothered about getting the rest of the address format right, I just need to identify the countries.&amp;nbsp; Is that possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 12:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202362#M4082</guid>
      <dc:creator>JM39</dc:creator>
      <dc:date>2020-06-05T12:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a value based on a lookup if value appears in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202363#M4083</link>
      <description>Yes , I guess you have all data in sale field or do you have 4 records for each address ? Share some sample dataset.
&lt;BR /&gt;
&lt;BR /&gt;It is possible what you are looking for.</description>
      <pubDate>Fri, 05 Jun 2020 12:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202363#M4083</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-06-05T12:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a value based on a lookup if value appears in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202364#M4084</link>
      <description>&lt;P&gt;so my data might look like what's in the attached.&amp;nbsp; As you can see the data is all mixed up in the columns.&amp;nbsp; Ideally I want to concatenate all that data into one column, then use a lookup to see if there's a country name contained in that string so that I can return the country code.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009MaxL"&gt;address sample.xlsx&lt;/A&gt;</description>
      <pubDate>Fri, 05 Jun 2020 12:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202364#M4084</guid>
      <dc:creator>JM39</dc:creator>
      <dc:date>2020-06-05T12:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a value based on a lookup if value appears in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202365#M4085</link>
      <description>&lt;P&gt;to concatinate&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;use tmap&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;col1 + " " + col2 + " " + col3&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;now to replace the from lookup country :&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCt3dCAC" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Search-and-Replace-a-List-of-Substrings/td-p/126982&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 13:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202365#M4085</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-06-05T13:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to return a value based on a lookup if value appears in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202366#M4086</link>
      <description>&lt;P&gt;I think I understand the concept of that, but can't get it to work in practice unfortunately.&amp;nbsp; Thank you anyway.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 15:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-return-a-value-based-on-a-lookup-if-value-appears-in-a/m-p/2202366#M4086</guid>
      <dc:creator>JM39</dc:creator>
      <dc:date>2020-06-05T15:18:02Z</dc:date>
    </item>
  </channel>
</rss>

