<?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] Addition and Subtraction in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198710#M1925</link>
    <description>ur Welcome 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&amp;nbsp; Ricco, &amp;nbsp;if u implement casting in tjavarow, u could reduce that tConvertType Component also.</description>
    <pubDate>Tue, 14 Apr 2015 12:46:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-14T12:46:52Z</dc:date>
    <item>
      <title>[resolved] Addition and Subtraction</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198703#M1918</link>
      <description>Hello&amp;nbsp;
&lt;BR /&gt;Can someone help me please?
&lt;BR /&gt;I have some data in 4 columns that I need to perform some calculations on.
&lt;BR /&gt;ID &amp;nbsp; Col1 &amp;nbsp; Col2 &amp;nbsp; Col3 &amp;nbsp; Col4
&lt;BR /&gt;1 &amp;nbsp; &amp;nbsp; 100 &amp;nbsp; &amp;nbsp;150 &amp;nbsp; &amp;nbsp; 8 &amp;nbsp; &amp;nbsp; &amp;nbsp;25
&lt;BR /&gt;2 &amp;nbsp; &amp;nbsp; 200 &amp;nbsp; &amp;nbsp;250 &amp;nbsp; &amp;nbsp; 9 &amp;nbsp; &amp;nbsp; &amp;nbsp;35
&lt;BR /&gt;3 &amp;nbsp; &amp;nbsp; 150 &amp;nbsp; &amp;nbsp;175 &amp;nbsp; &amp;nbsp; 8 &amp;nbsp; &amp;nbsp; &amp;nbsp;27
&lt;BR /&gt;What I need to do is this simple ecquation
&lt;BR /&gt;Col1 + Col2 + (Col3 * Col4)
&lt;BR /&gt;Is this possible to achieve using tJavaRow? is it easier using an Expression within tMap?&amp;nbsp;
&lt;BR /&gt;I have tried to do this within tJavaRow creating a variable and assigning the equation to the variable but it doesn't like my '+' and '*'. Can someone tell how to achieve this using Java please?
&lt;BR /&gt;Thank you
&lt;BR /&gt;Ricco</description>
      <pubDate>Tue, 14 Apr 2015 10:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198703#M1918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T10:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Addition and Subtraction</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198704#M1919</link>
      <description>use tmap since u could drag &amp;amp; drop row values and sum</description>
      <pubDate>Tue, 14 Apr 2015 11:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198704#M1919</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T11:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Addition and Subtraction</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198705#M1920</link>
      <description>Output Schema: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDKt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136499iBF3FF4329C1C6E03/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDKt.png" alt="0683p000009MDKt.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Using tJavaRow 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDKy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152945i1529126338CC578F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDKy.png" alt="0683p000009MDKy.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 14 Apr 2015 11:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198705#M1920</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T11:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Addition and Subtraction</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198706#M1921</link>
      <description>Brilliant
&lt;BR /&gt;Thank you</description>
      <pubDate>Tue, 14 Apr 2015 11:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198706#M1921</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T11:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Addition and Subtraction</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198707#M1922</link>
      <description>Something else I failed to mention.&lt;BR /&gt;3 of the columns (1,2 and 4) are all BidDecimals and column 3 is an integer.&lt;BR /&gt;Can anyone help me calculate based on this criteria?&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 14 Apr 2015 12:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198707#M1922</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T12:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Addition and Subtraction</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198708#M1923</link>
      <description>Its ok, I have cracked it.&lt;BR /&gt;I have the following&lt;BR /&gt;tMap --&amp;gt; tConvertType --&amp;gt; tJavaRow --&amp;gt; tLog&lt;BR /&gt;tmap created the addition column.&lt;BR /&gt;tConverType convert column 3 to a bigdecimal&lt;BR /&gt;tJavaRow dows the calculation and assigns the result to the column i.e&lt;BR /&gt;output_row.Column5 = input_row.col1.add(input_row.col2.add(input_row.col3.multiply(imput_row.col4)));&lt;BR /&gt;The result is printed in the tLogRow.&lt;BR /&gt;Thanks everyone for your inspiration.</description>
      <pubDate>Tue, 14 Apr 2015 12:23:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198708#M1923</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T12:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Addition and Subtraction</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198709#M1924</link>
      <description>Hi ,
&lt;BR /&gt;Try with below one without tConvertType:
&lt;BR /&gt;output_row.Column5 = input_row.col1.add(input_row.col2.add((BigDecimal.valueOf(input_row.col3.multiply))(imput_row.col4)));
&lt;BR /&gt;Regards,
&lt;BR /&gt;Kumar</description>
      <pubDate>Tue, 14 Apr 2015 12:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198709#M1924</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T12:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Addition and Subtraction</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198710#M1925</link>
      <description>ur Welcome 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&amp;nbsp; Ricco, &amp;nbsp;if u implement casting in tjavarow, u could reduce that tConvertType Component also.</description>
      <pubDate>Tue, 14 Apr 2015 12:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Addition-and-Subtraction/m-p/2198710#M1925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T12:46:52Z</dc:date>
    </item>
  </channel>
</rss>

