<?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 perform below CASE statement in Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-perform-below-CASE-statement-in-Talend/m-p/2211892#M9733</link>
    <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Can you please provide some example or link where I can read through this approach.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 14:04:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-21T14:04:05Z</dc:date>
    <item>
      <title>How to perform below CASE statement in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-perform-below-CASE-statement-in-Talend/m-p/2211890#M9731</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We need to implement below CASE statement in Talend. Please suggest the design for the same.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;CASE WHEN WTR IS NULL AND BNP IS NULL THEN 'MOP'&lt;BR /&gt;WHEN WTR = 0 AND BNP = 0 THEN 'MOP'&lt;BR /&gt;WHEN WTR &amp;gt; 0 AND BNP &amp;lt; 0 THEN 'WNT'&lt;BR /&gt;WHEN WTR &amp;lt; 0 AND BNP &amp;gt; 0 THEN 'BNP'&lt;BR /&gt;WHEN WTR &amp;lt; 0 AND BNP &amp;lt; 0 THEN 'MOP'&lt;BR /&gt;WHEN (WTR IS NULL OR WTR = 0) AND BNP &amp;lt;= 0 THEN 'MOP'&lt;BR /&gt;WHEN (BNP IS NULL OR BNP = 0) AND WTR &amp;lt;= 0 THEN 'MOP'&lt;BR /&gt;WHEN (WTR IS NULL OR WTR = 0) AND BNP &amp;gt; 0 THEN 'BNP'&lt;BR /&gt;WHEN (BNP IS NULL OR BNP = 0) AND WTR &amp;gt; 0 THEN 'WNT'&lt;BR /&gt;WHEN DECIMAL(WTR,17,5) / NULLIF(BNP,0) &amp;lt;= 0.4 AND DECIMAL(WTR,17,5) / NULLIF(BNP,0) &amp;gt; 0 THEN 'BNP'&lt;BR /&gt;WHEN DECIMAL(WTR,17,5) / NULLIF(BNP,0) &amp;gt; 0.4 AND DECIMAL(WTR,17,5) / NULLIF(BNP,0) &amp;lt; 1.6 THEN 'MOP'&lt;BR /&gt;WHEN DECIMAL(WTR,17,5) / NULLIF(BNP,0) &amp;gt;= 1.6 THEN 'WNT'&lt;/P&gt; 
&lt;P&gt;END AS TYPE&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We are using TOS.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-perform-below-CASE-statement-in-Talend/m-p/2211890#M9731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform below CASE statement in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-perform-below-CASE-statement-in-Talend/m-p/2211891#M9732</link>
      <description>&lt;P&gt;As the expression is a little bit complicated, I suggest you to use a tJavaRow instead of ternary expression within a tMap component. This you can use regular "if-then-else" notation which may help for readability.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 13:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-perform-below-CASE-statement-in-Talend/m-p/2211891#M9732</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-21T13:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform below CASE statement in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-perform-below-CASE-statement-in-Talend/m-p/2211892#M9733</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Can you please provide some example or link where I can read through this approach.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 14:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-perform-below-CASE-statement-in-Talend/m-p/2211892#M9733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-21T14:04:05Z</dc:date>
    </item>
  </channel>
</rss>

