<?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 tMap Lookup with multiple conditions in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223082#M16429</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make a lookup based on a multi condition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I generate people and I want to get the Age Category Label with this lookup condition&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;AgeMin&amp;lt;=People.Age AND People.Age&amp;lt;AgeMax&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are the differents ways please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yours Faithfully&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DAURIAC Igor&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2018 16:55:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-10T16:55:19Z</dc:date>
    <item>
      <title>tMap Lookup with multiple conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223082#M16429</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make a lookup based on a multi condition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I generate people and I want to get the Age Category Label with this lookup condition&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;AgeMin&amp;lt;=People.Age AND People.Age&amp;lt;AgeMax&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are the differents ways please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yours Faithfully&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DAURIAC Igor&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 16:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223082#M16429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-10T16:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Lookup with multiple conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223083#M16430</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; The neat an easy way to do is to add the condition in expression section of output tmap.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 656px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1XL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143699i07FC3D184FED7328/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1XL.png" alt="0683p000009M1XL.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you are happy with the solution, could you please mark the topic as resolved? Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 06:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223083#M16430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-11T06:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Lookup with multiple conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223084#M16431</link>
      <description>&lt;P&gt;Hi Nikhil,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I wanted to apply two completely separate conditions, how would I do it? When I do,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;StringHandling.LEFT(row3.ResponseContent,StringHandling.INDEX(row3.ResponseContent,":")); row3.ResponseContent.replaceAll("\"","") &lt;/PRE&gt;
&lt;P class="p1"&gt;it doesn't work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 17:42:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223084#M16431</guid>
      <dc:creator>zalibra</dc:creator>
      <dc:date>2019-09-26T17:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Lookup with multiple conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223085#M16432</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLA0AAO"&gt;@zalibra&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I could see that you are doing data assignment in the tMap condition check. You do not have to assign the values at the condition check area. Any data assignment (with or without column level condition) need to happen within the column level mapping.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Now, if you have to verify two conditions at same time, you can use operators like AND or OR symbols like I had mentioned in my previous post.&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>Thu, 26 Sep 2019 17:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223085#M16432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-26T17:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Lookup with multiple conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223086#M16433</link>
      <description>&lt;P&gt;Thanks, Nikhil. I'm actually putting these two conditions at the column level mapping and have tried both AND and OR but it doesn't work. (screenshot attached).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a workaround where I use "StringHandling.LEFT(row3.ResponseContent,StringHandling.INDEX(row3.ResponseContent,&lt;SPAN class="s1"&gt;":"&lt;/SPAN&gt;))" in tMap and then use tReplace for "row3.ResponseContent.replaceAll(&lt;SPAN class="s1"&gt;"\""&lt;/SPAN&gt;,&lt;SPAN class="s1"&gt;""&lt;/SPAN&gt;)"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of having multiple components (tMap and tReplace), I was wondering if these two conditions could be applied in one.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LwsG"&gt;Test.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LwsL"&gt;tMap.png&lt;/A&gt;</description>
      <pubDate>Thu, 26 Sep 2019 18:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223086#M16433</guid>
      <dc:creator>zalibra</dc:creator>
      <dc:date>2019-09-26T18:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Lookup with multiple conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223087#M16434</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLA0AAO"&gt;@zalibra&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Could you please try below logic?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;StringHandling.LEFT(row3.ResponseContent,StringHandling.INDEX(row3.ResponseContent,":")).replaceAll("\"","") &lt;/PRE&gt; 
&lt;P&gt;Please note that if you do not have any ":" in the input string, the job will fail with Index error. In that case, you will have to add additional rules to avoid the error.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If the answer has helped you, please mark the topic as resolved.&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>Thu, 26 Sep 2019 19:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223087#M16434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-26T19:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Lookup with multiple conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223088#M16435</link>
      <description>&lt;P&gt;Worked. Thanks!&amp;nbsp;Point noted about the ":".&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 19:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Lookup-with-multiple-conditions/m-p/2223088#M16435</guid>
      <dc:creator>zalibra</dc:creator>
      <dc:date>2019-09-26T19:51:02Z</dc:date>
    </item>
  </channel>
</rss>

