<?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 Full outer join and calculation in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Full-outer-join-and-calculation/m-p/2249255#M33857</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have 2 buffers (tHash)&lt;/P&gt; 
&lt;P&gt;&amp;gt; Buffer1 : 80 lines (ID_Indicator 1000)&lt;/P&gt; 
&lt;P&gt;&amp;gt; Buffer2 : 77 lines (ID_Indicator 1002)&lt;/P&gt; 
&lt;P&gt;Buffer Schema :&lt;/P&gt; 
&lt;P&gt;ID1 int,&lt;/P&gt; 
&lt;P&gt;ID2 int,&lt;/P&gt; 
&lt;P&gt;ID3 int,&lt;/P&gt; 
&lt;P&gt;ID4 int,&lt;/P&gt; 
&lt;P&gt;ID_INDICATOR int,&lt;/P&gt; 
&lt;P&gt;VALUE decimal(12,2)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have to calculate a new indicator (ID_Indicator 1003) in this way : (VALUE of ID_Indicator 1002 - VALUE of ID_Indicator 1000) = (VALUE of ID_Indicator 1003)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a tMap with Buffer1 in main and Buffer2 in lookup.&lt;/P&gt; 
&lt;P&gt;I join this 2 buffers with the IDs (1 to 4), except the ID_Indicator.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;I do the calculation in the tMap.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;My problem is that I need all the values of the buffer1 and all the values of the buffer2 for this calculation.&lt;/SPAN&gt; Except that some lines have no match in the other buffer &lt;EM&gt;(no matter which one, I would like a solution to the following 2 cases: 1 extra line in the buffer1 without correspondence in the buffer2 or 1 more line in the buffer2 without match in the buffer1)&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;I think I should make a Full Outer Join, to get a value for my ID_Indicator 1003 even if it's only the value of the ID_Indicator 1000 or 1002.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;When I choose Left Outer Join I have a tMap null error.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TMAP.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzgy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150650i612ECE5DAB663D07/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzgy.png" alt="0683p000009Lzgy.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Do you have any idea on how to solve this ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;EDIT : I found a solution when its a sum: I use a tUnite &amp;gt; tUniq &amp;gt; tAggregate (sum)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;To handle &lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;substraction&lt;/SPAN&gt;&lt;/SPAN&gt;, I put a tMap before the tUnite with *-1 on the VALUE.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Aug 2018 10:07:42 GMT</pubDate>
    <dc:creator>Mayot</dc:creator>
    <dc:date>2018-08-30T10:07:42Z</dc:date>
    <item>
      <title>Full outer join and calculation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Full-outer-join-and-calculation/m-p/2249255#M33857</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have 2 buffers (tHash)&lt;/P&gt; 
&lt;P&gt;&amp;gt; Buffer1 : 80 lines (ID_Indicator 1000)&lt;/P&gt; 
&lt;P&gt;&amp;gt; Buffer2 : 77 lines (ID_Indicator 1002)&lt;/P&gt; 
&lt;P&gt;Buffer Schema :&lt;/P&gt; 
&lt;P&gt;ID1 int,&lt;/P&gt; 
&lt;P&gt;ID2 int,&lt;/P&gt; 
&lt;P&gt;ID3 int,&lt;/P&gt; 
&lt;P&gt;ID4 int,&lt;/P&gt; 
&lt;P&gt;ID_INDICATOR int,&lt;/P&gt; 
&lt;P&gt;VALUE decimal(12,2)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have to calculate a new indicator (ID_Indicator 1003) in this way : (VALUE of ID_Indicator 1002 - VALUE of ID_Indicator 1000) = (VALUE of ID_Indicator 1003)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a tMap with Buffer1 in main and Buffer2 in lookup.&lt;/P&gt; 
&lt;P&gt;I join this 2 buffers with the IDs (1 to 4), except the ID_Indicator.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;I do the calculation in the tMap.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;My problem is that I need all the values of the buffer1 and all the values of the buffer2 for this calculation.&lt;/SPAN&gt; Except that some lines have no match in the other buffer &lt;EM&gt;(no matter which one, I would like a solution to the following 2 cases: 1 extra line in the buffer1 without correspondence in the buffer2 or 1 more line in the buffer2 without match in the buffer1)&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;I think I should make a Full Outer Join, to get a value for my ID_Indicator 1003 even if it's only the value of the ID_Indicator 1000 or 1002.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;When I choose Left Outer Join I have a tMap null error.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TMAP.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzgy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150650i612ECE5DAB663D07/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzgy.png" alt="0683p000009Lzgy.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Do you have any idea on how to solve this ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;EDIT : I found a solution when its a sum: I use a tUnite &amp;gt; tUniq &amp;gt; tAggregate (sum)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;To handle &lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;substraction&lt;/SPAN&gt;&lt;/SPAN&gt;, I put a tMap before the tUnite with *-1 on the VALUE.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 10:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Full-outer-join-and-calculation/m-p/2249255#M33857</guid>
      <dc:creator>Mayot</dc:creator>
      <dc:date>2018-08-30T10:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Full outer join and calculation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Full-outer-join-and-calculation/m-p/2249256#M33858</link>
      <description>for full match:&lt;BR /&gt;using 2 new tMap, add one column name "one" value=1 then match on this column.&lt;BR /&gt;Add your logical into the output filer.&lt;BR /&gt;Full fill an other hash map with all matched ids.&lt;BR /&gt;add all data who did not match this ids to your output.&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Aug 2018 10:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Full-outer-join-and-calculation/m-p/2249256#M33858</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-08-30T10:38:05Z</dc:date>
    </item>
  </channel>
</rss>

