<?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: [resolved] tMap - update only if value is non-Null? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224862#M17400</link>
    <description>Hi lgtleon, 
&lt;BR /&gt;Nice to see that you got a solution.&amp;nbsp; 
&lt;BR /&gt;And I have used below expression for a testing: 
&lt;BR /&gt;NewData.field == NULL ? ExistingTable.field : NewData.field 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Amol</description>
    <pubDate>Thu, 11 Feb 2016 10:06:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-11T10:06:38Z</dc:date>
    <item>
      <title>[resolved] tMap - update only if value is non-Null?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224854#M17392</link>
      <description>Is there a way, using tMap, to say that I only want to update a value in the output table if the matching input value is not NULL? 
&lt;BR /&gt;If the input value is non NULL, then I want to update the column. If the input value is NULL, I want to leave the existing value alone. This will vary from row to row.
&lt;BR /&gt;I suspect this is quite simple, but I am struggling figuring it out. TIA.
&lt;BR /&gt;Input 
&lt;BR /&gt;ID Value
&lt;BR /&gt;1 cat
&lt;BR /&gt;2 NULL
&lt;BR /&gt;4 fish
&lt;BR /&gt;Existing Table
&lt;BR /&gt;1 kitten
&lt;BR /&gt;2 snake
&lt;BR /&gt;3 koala
&lt;BR /&gt;4 turtle
&lt;BR /&gt;5 dog
&lt;BR /&gt;
&lt;BR /&gt;Result
&lt;BR /&gt;1 cat
&lt;BR /&gt;2 snake
&lt;BR /&gt;3 koala
&lt;BR /&gt;4 fish
&lt;BR /&gt;5 dog</description>
      <pubDate>Thu, 14 Nov 2013 14:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224854#M17392</guid>
      <dc:creator>soowork</dc:creator>
      <dc:date>2013-11-14T14:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap - update only if value is non-Null?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224855#M17393</link>
      <description>Ah, ok, I think I have it figured out. 
&lt;BR /&gt;Basically have my tMap output be 
&lt;BR /&gt; NewData.field == NULL ? ExistingTable.field : NewData.field 
&lt;BR /&gt;See the screenshot attached. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBgu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151264i18C71224CDB0A3F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBgu.png" alt="0683p000009MBgu.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 14 Nov 2013 15:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224855#M17393</guid>
      <dc:creator>soowork</dc:creator>
      <dc:date>2013-11-14T15:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap - update only if value is non-Null?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224856#M17394</link>
      <description>(I should have said null instead of NULL. doh.)</description>
      <pubDate>Thu, 14 Nov 2013 20:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224856#M17394</guid>
      <dc:creator>soowork</dc:creator>
      <dc:date>2013-11-14T20:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap - update only if value is non-Null?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224857#M17395</link>
      <description>hi!&lt;BR /&gt;I have used a similar solution, but when the lookup returns 0 rows, the job throws a NullPointer Exception at ExistinTable.field reference. &amp;nbsp;Any idea about this?&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Thu, 11 Feb 2016 09:02:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224857#M17395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T09:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap - update only if value is non-Null?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224858#M17396</link>
      <description>Hi lgtleon,
&lt;BR /&gt;I have also tested above solution. It works perfectly fine in both case.
&lt;BR /&gt;case I : when lookup row returns non zero row.
&lt;BR /&gt;case II : when lookup row returns &amp;nbsp;zero row.
&lt;BR /&gt;See screenshot. ( Note that I have created job according to first post and included case II )
&lt;BR /&gt;&amp;nbsp;</description>
      <pubDate>Thu, 11 Feb 2016 09:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224858#M17396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T09:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap - update only if value is non-Null?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224859#M17397</link>
      <description>Hi,
&lt;BR /&gt;I am not able to upload screenshot.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Amol</description>
      <pubDate>Thu, 11 Feb 2016 09:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224859#M17397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T09:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap - update only if value is non-Null?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224860#M17398</link>
      <description>&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/327910/test.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBi7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151265i3B00B43AFC2341BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBi7.png" alt="0683p000009MBi7.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;see screenshot. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Amol</description>
      <pubDate>Thu, 11 Feb 2016 09:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224860#M17398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T09:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap - update only if value is non-Null?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224861#M17399</link>
      <description>Hi again! 
&lt;BR /&gt;I have changed the expression used to verify null values 
&lt;BR /&gt;Old version =&amp;gt;&amp;nbsp;((!((Integer)out8.idOrgPub).equals(row_existing.idOrgPub)) &amp;amp;&amp;amp; (out8.idOrgPub != 0)) ? out8.idOrgPub :&amp;nbsp; 
&lt;FONT color="#ff6699"&gt;&lt;B&gt;row_existing.idOrgPub&amp;nbsp;&lt;/B&gt;&lt;/FONT&gt; 
&lt;BR /&gt;New version =&amp;gt;Relational.ISNULL(out8.idOrgPub) ?row_existing.idOrgPub: out8.idOrgPub&amp;nbsp; 
&lt;BR /&gt;I can´t see the difference 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;, but with the change, it works! 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks a lot for your help!</description>
      <pubDate>Thu, 11 Feb 2016 10:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224861#M17399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T10:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap - update only if value is non-Null?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224862#M17400</link>
      <description>Hi lgtleon, 
&lt;BR /&gt;Nice to see that you got a solution.&amp;nbsp; 
&lt;BR /&gt;And I have used below expression for a testing: 
&lt;BR /&gt;NewData.field == NULL ? ExistingTable.field : NewData.field 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Amol</description>
      <pubDate>Thu, 11 Feb 2016 10:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224862#M17400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T10:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap - update only if value is non-Null?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224863#M17401</link>
      <description>Hi,&lt;BR /&gt;I want to get the first non null value from a column using tmap. PLs suggest a solution.</description>
      <pubDate>Fri, 22 Jul 2016 07:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224863#M17401</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-07-22T07:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap - update only if value is non-Null?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224864#M17402</link>
      <description>Hi&amp;nbsp;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Dorthy&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;,&lt;BR /&gt;Could you please elaborate your case with an example with input and expected output values?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 22 Jul 2016 09:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224864#M17402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-22T09:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap - update only if value is non-Null?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224865#M17403</link>
      <description>Here's my scenario.
&lt;BR /&gt;I should take the first non null value.
&lt;BR /&gt;I'm doing a lookup, where for one column i can have more than one values.&amp;nbsp;
&lt;BR /&gt;Say for eg: (str1,str2,str3).-&amp;gt; In this case the value to be considered should be str1.
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case2: (null,str2,str3) -&amp;gt; In this case my value should be str2.
&lt;BR /&gt;I need to handle this situation inside tmap where i should get the first non null value for that particular column.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Dorthy</description>
      <pubDate>Fri, 22 Jul 2016 10:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-update-only-if-value-is-non-Null/m-p/2224865#M17403</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-07-22T10:11:40Z</dc:date>
    </item>
  </channel>
</rss>

