<?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 question in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TMAP-lookup-question/m-p/2354537#M120491</link>
    <description>&lt;P&gt;Looking for some help with a basic lookup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying do do a simple lookup and return two fields if one match is found and reject if duplicate values are found &lt;/P&gt;&lt;P&gt;during&amp;nbsp;&lt;/P&gt;the lookup.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I'm looking up term=1 and bm=5931194 ,I need that to be pushed to the rejects output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I'm looking up term=4 and &lt;/P&gt;&lt;P&gt;bm=5931194, I need that to go to the normal output and return 6266 for fa and ABC for ccp.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:33:18 GMT</pubDate>
    <dc:creator>RVeitch_84</dc:creator>
    <dc:date>2024-11-15T21:33:18Z</dc:date>
    <item>
      <title>TMAP lookup question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMAP-lookup-question/m-p/2354537#M120491</link>
      <description>&lt;P&gt;Looking for some help with a basic lookup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying do do a simple lookup and return two fields if one match is found and reject if duplicate values are found &lt;/P&gt;&lt;P&gt;during&amp;nbsp;&lt;/P&gt;the lookup.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I'm looking up term=1 and bm=5931194 ,I need that to be pushed to the rejects output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I'm looking up term=4 and &lt;/P&gt;&lt;P&gt;bm=5931194, I need that to go to the normal output and return 6266 for fa and ABC for ccp.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMAP-lookup-question/m-p/2354537#M120491</guid>
      <dc:creator>RVeitch_84</dc:creator>
      <dc:date>2024-11-15T21:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: TMAP lookup question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMAP-lookup-question/m-p/2354538#M120492</link>
      <description>&lt;P&gt;Hi @Robert Veitch​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest that before the lookup subJob you do an aggregation over id and bm columns of your lookup and create a count column to store the number of occurrences of this key. tAggregateRow component can do it for you. You can store that aggregation result in memory using a tBufferOutput or tHashOutput component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, on your tMap, using a tBufferInput or a tHashInput component, add an additional lookup using the same id and bm keys. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you can create two outputs for tMap and use the count column to filter where the join result will be sent. If count &amp;gt; 1 you send the input + lookup result to the reject output and if count &amp;lt;= 1 you send it to the other output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 22:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMAP-lookup-question/m-p/2354538#M120492</guid>
      <dc:creator>anselmopeixoto</dc:creator>
      <dc:date>2023-07-23T22:32:10Z</dc:date>
    </item>
  </channel>
</rss>

