<?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 filter based on multiple condition in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-filter-based-on-multiple-condition/m-p/2235176#M24282</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; You have not provided your output schema in your query. But I am assuming its two columns in same schema. Based on that assumption, I have created the logic as shown below.&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="0683p000009M3Xz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150930i4614780A694E4D3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3Xz.png" alt="0683p000009M3Xz.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.TypeItemName)&amp;amp;&amp;amp; row1.TypeItemName.equals("Marketing")?row1.TypeId:null 

!Relational.ISNULL(row1.TypeItemName)&amp;amp;&amp;amp; row1.TypeItemName.equals("Privacy")?row1.TypeId:null&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>Thu, 04 Apr 2019 19:44:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-04T19:44:37Z</dc:date>
    <item>
      <title>How to filter based on multiple condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-filter-based-on-multiple-condition/m-p/2235175#M24281</link>
      <description>&lt;P&gt;Hi there ,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am very new to talend and has very basic question . I am trying to filter rows based on multiple condition . I am not sure how to achieve this ?&amp;nbsp; I see filter expression in tMap but that allowed me to enter only 1 expression and I have multiple condition .&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I&amp;nbsp; am trying to put Filter condition based on this . Input data is coming from tMSSQLInput .&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;1 ,&amp;nbsp; &amp;nbsp; MarketingTypeID =&amp;nbsp; &amp;nbsp; row1.TypeItemName.("Marketing")&amp;nbsp; then give me TypeID&amp;nbsp; and put value in the column&amp;nbsp;MarketingTypeID&lt;/P&gt; 
&lt;P&gt;2 ,&amp;nbsp; &amp;nbsp; PrivacyTypeID =&amp;nbsp; &amp;nbsp;row1.TypeItemName.("Privacy")&amp;nbsp; then give me TypeID&amp;nbsp;and put value in the column PrivacyTypeID&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-inline" image-alt="Capture6.PNG" style="width: 272px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3WX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153334iC0253A96A9BEB8A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3WX.png" alt="0683p000009M3WX.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&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-inline" image-alt="Capture4.PNG" style="width: 760px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3Wh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138742iBBC511B824B77016/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3Wh.png" alt="0683p000009M3Wh.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am sure it is very simple question but I am not sure how to solve this &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; Can some one please help .&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>Thu, 04 Apr 2019 15:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-filter-based-on-multiple-condition/m-p/2235175#M24281</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-04T15:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter based on multiple condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-filter-based-on-multiple-condition/m-p/2235176#M24282</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; You have not provided your output schema in your query. But I am assuming its two columns in same schema. Based on that assumption, I have created the logic as shown below.&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="0683p000009M3Xz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150930i4614780A694E4D3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3Xz.png" alt="0683p000009M3Xz.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.TypeItemName)&amp;amp;&amp;amp; row1.TypeItemName.equals("Marketing")?row1.TypeId:null 

!Relational.ISNULL(row1.TypeItemName)&amp;amp;&amp;amp; row1.TypeItemName.equals("Privacy")?row1.TypeId:null&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>Thu, 04 Apr 2019 19:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-filter-based-on-multiple-condition/m-p/2235176#M24282</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-04T19:44:37Z</dc:date>
    </item>
  </channel>
</rss>

