<?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: tmap expression filter in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2365998#M129537</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So my expression filter will be&lt;/P&gt; 
&lt;PRE&gt;(Relational.ISNULL(row1.filter2) || Relational.ISNULL(lookup.filter2) || row1.filter2.equals(lookup.filter2))&amp;amp;&amp;amp;row1&lt;SPAN&gt;.filter1.startsWith(lookup.filter1))&lt;/SPAN&gt;&lt;/PRE&gt; 
&lt;P&gt;I am correct?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Priya&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2019 15:14:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-12T15:14:04Z</dc:date>
    <item>
      <title>tmap expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2365994#M129533</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to add a condition in expression filter. I have a fact table and a lookup table. Conditions I want to apply are when&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Fact.Filter1 == LKP.Filter1 and for Filter2 in both tables could be either equals to each other (Fact.Filter2 == LKP.Filter2) or Lookup Filter2 is null (LKP.Filter2 == null) &amp;nbsp;or Fact Filter2 is null (Fact.Filter2 == null)&amp;nbsp; or both are null. So condition on Filter1 is a must but then for Filter2 if any one of those condition is satisfied, then the record should go in table. I am unable to formulate this in tmap expression filter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fact.FILTER1.startsWith(FILTER1)&amp;amp;&amp;amp;(Fact.FILTER2.equals(LKP.FILTER2)||Relational.ISNULL(LKP.FILTER2)||Relational.ISNULL(Fact.FILTER2))&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this statement fails when&amp;nbsp;Fact.FILTER2 == null&lt;/P&gt;
&lt;P&gt;How can I solve this issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Priya&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 13:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2365994#M129533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-12T13:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2365995#M129534</link>
      <description>&lt;P&gt;Hi Priya,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The below method should work in your case.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5pS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147163iE986057822911A81/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5pS.png" alt="0683p000009M5pS.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Relational.ISNULL(row1.filter2) || Relational.ISNULL(lookup.filter2) || row1.filter2.equals(lookup.filter2)&lt;/PRE&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;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 14:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2365995#M129534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-12T14:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2365996#M129535</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;for your reply. But I cant join fact and lookup table like you suggested. If you see my code, I am joining with the help of pattern (&lt;SPAN&gt;Fact.FILTER1.startsWith(FILTER1)). How can I accomodate that?&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;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Priya&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 14:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2365996#M129535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-12T14:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2365997#M129536</link>
      <description>&lt;P&gt;Ok. In that case, you can add this condition also in the expression area. But please make sure that any string condition comes after Null check so that you will not get any Null pointer exception.&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;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 15:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2365997#M129536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-12T15:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2365998#M129537</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So my expression filter will be&lt;/P&gt; 
&lt;PRE&gt;(Relational.ISNULL(row1.filter2) || Relational.ISNULL(lookup.filter2) || row1.filter2.equals(lookup.filter2))&amp;amp;&amp;amp;row1&lt;SPAN&gt;.filter1.startsWith(lookup.filter1))&lt;/SPAN&gt;&lt;/PRE&gt; 
&lt;P&gt;I am correct?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Priya&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 15:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2365998#M129537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-12T15:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2365999#M129538</link>
      <description>&lt;P&gt;Hi Priya,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Slight change since we have to make null check for all columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Relational.ISNULL(row1.filter2) || Relational.ISNULL(lookup.filter2) ||  (row1.filter2.equals(lookup.filter2)&amp;amp;&amp;amp; !Relational.ISNULL(row1.filter1) 
                                    &amp;amp;&amp;amp; !Relational.ISNULL(lookup.filter1) 
                                    &amp;amp;&amp;amp; row1.filter1.startsWith(lookup.filter1))&lt;/PRE&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;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 15:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2365999#M129538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-12T15:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: tmap expression filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2366000#M129539</link>
      <description>&lt;P&gt;Thank you so much! this worked..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 19:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-expression-filter/m-p/2366000#M129539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-12T19:48:04Z</dc:date>
    </item>
  </channel>
</rss>

