<?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 join on 2 IDs in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292645#M65699</link>
    <description>&lt;P&gt;@eya tounsy​&amp;nbsp;, if you do left outer join on tMap using two conditions, it equals to row2.tva_cc.equals(row4.e_VAT)&amp;amp;&amp;amp;row2.siret_cc.equals(row4.e_SIRET), it is an 'and' operation.&lt;/P&gt;&lt;P&gt;I think you need to filter the null value from input1 and input2 using tFilterRow first, and then do different joins.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 05:21:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-03-17T05:21:35Z</dc:date>
    <item>
      <title>Tmap join on 2 IDs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292642#M65696</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;So I have my &lt;U&gt;input 1&lt;/U&gt; has &lt;B&gt;tva_cc&lt;/B&gt; and &lt;B&gt;siret_cc &lt;/B&gt;and my &lt;U&gt;input 2&lt;/U&gt; has &lt;B&gt;e_VAT&lt;/B&gt; and &lt;B&gt;e_SIRET&lt;/B&gt; , &lt;/P&gt;&lt;P&gt;I want to make tmap join on this 2 columns to get e_establishment in my output, but the problem is that in some cases one of them is null.&lt;/P&gt;&lt;P&gt;I tried to fill the output field with : &lt;/P&gt;&lt;P&gt;row2.tva_cc.equals(row4.e_VAT)||row2.siret_cc.equals(row4.e_SIRET)?row4.e_establishment_id:null&lt;/P&gt;&lt;P&gt;but I got nullable exception.&lt;/P&gt;&lt;P&gt;Anyone has an idea how to make a condition where to see if &lt;B&gt;tva_cc == e_VAT&lt;/B&gt; so it takes e_establishment to the output and if  tva and e_vat are null so I check if the &lt;B&gt;siret_cc == e_siret &lt;/B&gt;?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000PKy0uAAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141420i066D0F000E33E770/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000PKy0uAAD.png" alt="0695b00000PKy0uAAD.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 01:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292642#M65696</guid>
      <dc:creator>et123</dc:creator>
      <dc:date>2022-03-17T01:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap join on 2 IDs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292643#M65697</link>
      <description>&lt;P&gt;@eya tounsy​&amp;nbsp;,first you handle nulls and then do the join.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 02:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292643#M65697</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2022-03-17T02:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap join on 2 IDs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292644#M65698</link>
      <description>&lt;P&gt;I tried this one but didn't work :&lt;/P&gt;&lt;P&gt;(row2.tva_cc)==null||(row2.tva_cc).equals("")&amp;amp;&amp;amp;(row2.siret_cc)==null||(row2.siret_cc).equals("")?null:&lt;/P&gt;&lt;P&gt;(row4.e_VAT)==null||(row4.e_VAT).equals("")&amp;amp;&amp;amp;row4.e_SIRET==null||(row4.e_SIRET).equals("")?null:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(row2.siret_cc==null||(row2.siret_cc).equals(""))&amp;amp;&amp;amp;!(row2.tva_cc==null||(row2.tva_cc).equals(""))&amp;amp;&amp;amp;!(row4.e_VAT==null||(row4.e_VAT).equals(""))&amp;amp;&amp;amp;((row2.tva_cc).equals(row4.e_VAT))?row4.e_establishment_id:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(row2.tva_cc==null||(row2.tva_cc).equals(""))&amp;amp;&amp;amp;!(row2.siret_cc==null||(row2.siret_cc).equals(""))&amp;amp;&amp;amp;!(row4.e_SIRET==null||(row4.e_SIRET).equals(""))&amp;amp;&amp;amp;((row2.siret_cc).equals(row4.e_SIRET))?row4.e_establishment_id:null&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 02:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292644#M65698</guid>
      <dc:creator>et123</dc:creator>
      <dc:date>2022-03-17T02:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap join on 2 IDs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292645#M65699</link>
      <description>&lt;P&gt;@eya tounsy​&amp;nbsp;, if you do left outer join on tMap using two conditions, it equals to row2.tva_cc.equals(row4.e_VAT)&amp;amp;&amp;amp;row2.siret_cc.equals(row4.e_SIRET), it is an 'and' operation.&lt;/P&gt;&lt;P&gt;I think you need to filter the null value from input1 and input2 using tFilterRow first, and then do different joins.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 05:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292645#M65699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-17T05:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap join on 2 IDs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292646#M65700</link>
      <description>&lt;P&gt;Hi, Thank you for your time, but I'm just new to talend so tFilterRow will alows me to reject null values? (Screenshot bellow) &lt;/P&gt;&lt;P&gt;As you can see, those rows can be null , so I want to make a condition if there for example one of the tva or vat is null so he can check the siret_cc and e_siret , and if there is no match he can insert the row but without inserting the e_establishment_id in the output, so the tFilterRow will allows this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000PL4tWAAT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132713i655C2B35AF64D359/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000PL4tWAAT.png" alt="0695b00000PL4tWAAT.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 16:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292646#M65700</guid>
      <dc:creator>et123</dc:creator>
      <dc:date>2022-03-17T16:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap join on 2 IDs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292647#M65701</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;&lt;P&gt;It's impossible to set the condition on tMap to determine which columns are used as join Key,  you have to handle the null value before tMap, otherwise, the NPE is thrown. My idea is to use TfilterRow  to filter the data, split the source data to two parts, one part contains the data with null in tva column, another part contains the data with non null in tva column. Then, do different join on tMap for each part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 02:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292647#M65701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-21T02:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap join on 2 IDs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292648#M65702</link>
      <description>&lt;P&gt;The best thing is to have a replacement for null. For numbers you could use 0 (in case 0 is not a valid value) or use a huge negative number like Long.MAX. &lt;/P&gt;&lt;P&gt;You have to replace the null value just befor the rows reach the tMap. &lt;/P&gt;&lt;P&gt;In SQL you could use the coalesce function. &lt;/P&gt;&lt;P&gt;In the tMap output you can replace the null replacement back into null.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 12:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292648#M65702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-21T12:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap join on 2 IDs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292649#M65703</link>
      <description>&lt;P&gt;thank you! I tried it and it worked perfectly.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 17:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292649#M65703</guid>
      <dc:creator>et123</dc:creator>
      <dc:date>2022-03-28T17:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap join on 2 IDs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292650#M65704</link>
      <description>&lt;P&gt;Great, thanks for your feedback!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 23:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-join-on-2-IDs/m-p/2292650#M65704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-28T23:53:37Z</dc:date>
    </item>
  </channel>
</rss>

