<?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 select last populated column in tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-select-last-populated-column-in-tmap/m-p/2203744#M4916</link>
    <description>Modify like this 
&lt;BR /&gt;If address4 is not null, use address4 ELSE 
&lt;BR /&gt;If address3 is not null , use address3 ELSE 
&lt;BR /&gt;If address3 is null, use address2</description>
    <pubDate>Fri, 05 Jun 2020 19:44:40 GMT</pubDate>
    <dc:creator>akumar2301</dc:creator>
    <dc:date>2020-06-05T19:44:40Z</dc:date>
    <item>
      <title>How to select last populated column in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-select-last-populated-column-in-tmap/m-p/2203743#M4915</link>
      <description>&lt;P&gt;Hello.&amp;nbsp; I'm trying to get the last populated column from my source data in some address fields.&amp;nbsp; This is my expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;row1.Address4!=null ? row1.Address4 :&lt;BR /&gt;row1.Address4==null ? row1.Address3 :&lt;BR /&gt;row1.Address3==null ? row1.Address2&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;What I'm trying to say is&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;If address4 is not null, use address4 ELSE&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;If address4 is null, use address3 ELSE&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;If address3 is null, use address2&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;It seems to work for all records except those where address2 is the last one populated in the source data &amp;amp; it's returning null values.&amp;nbsp; Any help appreciated.&amp;nbsp; Thanks you&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-select-last-populated-column-in-tmap/m-p/2203743#M4915</guid>
      <dc:creator>JM39</dc:creator>
      <dc:date>2024-11-16T02:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to select last populated column in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-select-last-populated-column-in-tmap/m-p/2203744#M4916</link>
      <description>Modify like this 
&lt;BR /&gt;If address4 is not null, use address4 ELSE 
&lt;BR /&gt;If address3 is not null , use address3 ELSE 
&lt;BR /&gt;If address3 is null, use address2</description>
      <pubDate>Fri, 05 Jun 2020 19:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-select-last-populated-column-in-tmap/m-p/2203744#M4916</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-06-05T19:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to select last populated column in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-select-last-populated-column-in-tmap/m-p/2203745#M4917</link>
      <description>&lt;P&gt;Perfect thank you!&amp;nbsp; It still didn't work actually and then I realised that I also have null values in addr2.&amp;nbsp; I tried this way and it worked:&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;row1.Address4 !=null ?&lt;BR /&gt;row1.Address4 :&lt;BR /&gt;row1.Address3 !=null ?&lt;BR /&gt;row1.Address3 :&lt;BR /&gt;row1.Address2 !=null ?&lt;BR /&gt;row1.Address2 : null &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;Thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 19:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-select-last-populated-column-in-tmap/m-p/2203745#M4917</guid>
      <dc:creator>JM39</dc:creator>
      <dc:date>2020-06-05T19:53:35Z</dc:date>
    </item>
  </channel>
</rss>

