<?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 return multiple columns value with if condition in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-multiple-columns-value-with-if-condition/m-p/2328206#M97508</link>
    <description>&lt;P&gt;What exactly are you trying to do? It looks like you are trying to actually apply logic to returning a row based on a column values. This can be done using the filtering in a tMap component. Can you give a bit more information on this. There will be a way of doing this, but we need a bit more info.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2018 12:25:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-29T12:25:13Z</dc:date>
    <item>
      <title>How to return multiple columns value with if condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-multiple-columns-value-with-if-condition/m-p/2328205#M97507</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to return multiple column values with if condition?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently I wrote like below and it is giving me error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The logic is subscriber info is null then return SP_SERV_ID, SITE_A_ID AND SUB_ACCOUNT field values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;row1.SUBSCRIBER == null ? row1.SP_SERV_ID, row1.SITE_A_ID, row2.Sub_Account&lt;BR /&gt;: null&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 11:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-return-multiple-columns-value-with-if-condition/m-p/2328205#M97507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-29T11:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to return multiple columns value with if condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-multiple-columns-value-with-if-condition/m-p/2328206#M97508</link>
      <description>&lt;P&gt;What exactly are you trying to do? It looks like you are trying to actually apply logic to returning a row based on a column values. This can be done using the filtering in a tMap component. Can you give a bit more information on this. There will be a way of doing this, but we need a bit more info.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 12:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-return-multiple-columns-value-with-if-condition/m-p/2328206#M97508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-29T12:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to return multiple columns value with if condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-multiple-columns-value-with-if-condition/m-p/2328207#M97509</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I am trying to achieve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.SUBSCRIBER == null ? row1.SP_SERV_ID ||&lt;BR /&gt;row1.SUBSCRIBER == null ? row1.SITE_A_ID ||&lt;BR /&gt;row1.SUBSCRIBER == null ? row2.Sub_Account&lt;BR /&gt;: null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tested this I get below error,&lt;/P&gt;&lt;P&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problems:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requirement:&lt;/P&gt;&lt;P&gt;If Subscriber is null then return serv_id, site_a_Id, sub_account&amp;nbsp;&lt;/P&gt;&lt;P&gt;else Null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Deepak&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 12:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-return-multiple-columns-value-with-if-condition/m-p/2328207#M97509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-29T12:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to return multiple columns value with if condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-return-multiple-columns-value-with-if-condition/m-p/2328208#M97510</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What do you want to do?&lt;/P&gt;&lt;P&gt;Do you want to concatenate&amp;nbsp;&lt;SPAN&gt;SP_SERV_ID,&amp;nbsp;SITE_A_ID and&amp;nbsp;Sub_Account?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In this case, try this:&lt;/P&gt;&lt;PRE&gt;row1.SUBSCRIBER == null ? row1.SP_SERV_ID + row1.SITE_A_ID + row2.Sub_Account : null&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2018 12:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-return-multiple-columns-value-with-if-condition/m-p/2328208#M97510</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-01-29T12:38:36Z</dc:date>
    </item>
  </channel>
</rss>

