<?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: Calculated new field in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Calculated-new-field/m-p/2227571#M19142</link>
    <description>Hi 
&lt;BR /&gt;The expression look like: 
&lt;BR /&gt;row1.ordtype==1&amp;amp;&amp;amp;row1.liq&amp;gt;0?"buy" 
&lt;IMG id="smileysad" class="emoticon emoticon-smileysad" src="https://yutwg22796.i.lithium.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;row1.ordtype==1&amp;amp;&amp;amp;row1.liq==0?"new buy" 
&lt;IMG id="smileysad" class="emoticon emoticon-smileysad" src="https://yutwg22796.i.lithium.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;row1.ordtype==2&amp;amp;&amp;amp;row1.liq&amp;gt;0?"sell":"new sell")) 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Wed, 20 Apr 2011 09:48:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-04-20T09:48:58Z</dc:date>
    <item>
      <title>Calculated new field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calculated-new-field/m-p/2227570#M19141</link>
      <description>I need to create a new field to indicate BUY, New BUY  or Sell, New SELL depending on the fields ordtype and liq . &lt;BR /&gt;eg. if ordtype = 1 AND liq&amp;gt;0 then "buy"         else if ordtype = 1 ANd liq = 0 then "new buy"if  ordtype = 2 And liq &amp;gt;0  then = "sell" else if ordtype 2 ANd liq =0  then = "new sell ".&lt;BR /&gt;how do this during mapping?</description>
      <pubDate>Sat, 16 Nov 2024 12:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calculated-new-field/m-p/2227570#M19141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated new field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calculated-new-field/m-p/2227571#M19142</link>
      <description>Hi 
&lt;BR /&gt;The expression look like: 
&lt;BR /&gt;row1.ordtype==1&amp;amp;&amp;amp;row1.liq&amp;gt;0?"buy" 
&lt;IMG id="smileysad" class="emoticon emoticon-smileysad" src="https://yutwg22796.i.lithium.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;row1.ordtype==1&amp;amp;&amp;amp;row1.liq==0?"new buy" 
&lt;IMG id="smileysad" class="emoticon emoticon-smileysad" src="https://yutwg22796.i.lithium.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;row1.ordtype==2&amp;amp;&amp;amp;row1.liq&amp;gt;0?"sell":"new sell")) 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 20 Apr 2011 09:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calculated-new-field/m-p/2227571#M19142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-20T09:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated new field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calculated-new-field/m-p/2227572#M19143</link>
      <description>oh i got this error Exception in thread "main" java.lang.Error: java.lang.Error: java.lang.Error: Unresolved compilation problems: &lt;BR /&gt;	Incompatible operand types String and int&lt;BR /&gt;	Incompatible operand types String and int&lt;BR /&gt;	Incompatible operand types String and int&lt;BR /&gt;&lt;BR /&gt; i think i because  ordtyp is a string and  liq is a int</description>
      <pubDate>Wed, 20 Apr 2011 10:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calculated-new-field/m-p/2227572#M19143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-20T10:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated new field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calculated-new-field/m-p/2227573#M19144</link>
      <description>Then modify shong's expression to: 
&lt;BR /&gt;row1.ordtype.equals("1")&amp;amp;&amp;amp;row1.liq&amp;gt;0?"buy" 
&lt;IMG id="smileysad" class="emoticon emoticon-smileysad" src="https://yutwg22796.i.lithium.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;row1.ordtype.equals("1")&amp;amp;&amp;amp;row1.liq==0?"new buy" 
&lt;IMG id="smileysad" class="emoticon emoticon-smileysad" src="https://yutwg22796.i.lithium.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;row1.ordtype.equals("2")&amp;amp;&amp;amp;row1.liq&amp;gt;0?"sell":"new sell")) 
&lt;BR /&gt;although I would use the expression: 
&lt;BR /&gt;(row1.liq==0?"new ":"")+(row1.ordtype.equals("1")?"buy":"sell")</description>
      <pubDate>Thu, 21 Apr 2011 01:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calculated-new-field/m-p/2227573#M19144</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2011-04-21T01:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated new field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calculated-new-field/m-p/2227574#M19145</link>
      <description>Hi alevy 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;although I would use the expression:&lt;BR /&gt;(row1.liq==0?"new ":"")+(row1.ordtype.equals("1")?"buy":"sell")&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Good expression, it is short and simple. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 21 Apr 2011 04:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calculated-new-field/m-p/2227574#M19145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-21T04:37:54Z</dc:date>
    </item>
  </channel>
</rss>

