<?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 multiply big decimal  number with -1 value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-multiply-big-decimal-number-with-1-value/m-p/2309623#M80825</link>
    <description>Did this help?&lt;BR /&gt;If so, thank's to mark your case as solved.</description>
    <pubDate>Sun, 11 Mar 2018 07:53:55 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2018-03-11T07:53:55Z</dc:date>
    <item>
      <title>How to multiply big decimal  number with -1 value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-multiply-big-decimal-number-with-1-value/m-p/2309621#M80823</link>
      <description>&lt;P&gt;Hi talend folks,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How to multiply big decimal number with -1 value.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My column name is data (big decimal).&lt;/P&gt; 
&lt;P&gt;data column value like (344.0,344.0).&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to multiply below calculation in tmap.&lt;/P&gt; 
&lt;P&gt;calculation:&lt;/P&gt; 
&lt;P&gt;Case when ART = 'R' and SOLL = 'S' then &lt;STRONG&gt;data *- 1&lt;/STRONG&gt;&lt;BR /&gt;when ART = 'R' and BEN = 'S' then data&lt;BR /&gt;else 0&lt;/P&gt; 
&lt;P&gt;kindly share your information.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 11:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-multiply-big-decimal-number-with-1-value/m-p/2309621#M80823</guid>
      <dc:creator>RAJ6</dc:creator>
      <dc:date>2018-03-10T11:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply big decimal  number with -1 value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-multiply-big-decimal-number-with-1-value/m-p/2309622#M80824</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Assuming your data flow is called row71, fields are named as in your question and data datatype is BigDecimal, here is the solution:&lt;/P&gt; 
&lt;PRE&gt;(row71.ART == 'R' &amp;amp;&amp;amp; row71.SOLL == 'S') ? row71.data.multiply(new BigDecimal(-1)) :
	(row71.ART == 'R' &amp;amp;&amp;amp; row71.BEN == 'S') ? row71.data : (new BigDecimal(0)) &lt;/PRE&gt; 
&lt;P&gt;the tMap with the expression:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lt1d.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142078i2ACB7E2FE53FE248/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lt1d.png" alt="0683p000009Lt1d.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;and the result for different values:&lt;/P&gt; 
&lt;PRE&gt;.---+----+---+----.
|   tLogRow_36    |
|=--+----+---+---=|
|ART|SOLL|BEN|data|
|=--+----+---+---=|
|R  |S   |S  |-100|
|R  |X   |S  |100 |
|R  |X   |X  |0   |
|X  |X   |X  |0   |
'---+----+---+----'&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 16:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-multiply-big-decimal-number-with-1-value/m-p/2309622#M80824</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-03-10T16:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply big decimal  number with -1 value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-multiply-big-decimal-number-with-1-value/m-p/2309623#M80825</link>
      <description>Did this help?&lt;BR /&gt;If so, thank's to mark your case as solved.</description>
      <pubDate>Sun, 11 Mar 2018 07:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-multiply-big-decimal-number-with-1-value/m-p/2309623#M80825</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-03-11T07:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply big decimal  number with -1 value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-multiply-big-decimal-number-with-1-value/m-p/2309624#M80826</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 07:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-multiply-big-decimal-number-with-1-value/m-p/2309624#M80826</guid>
      <dc:creator>RAJ6</dc:creator>
      <dc:date>2018-03-11T07:57:30Z</dc:date>
    </item>
  </channel>
</rss>

