<?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: Multiplication of values in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Multiplication-of-values-in-tMap/m-p/2269544#M47756</link>
    <description>&lt;P&gt;Hello TRF,&lt;/P&gt; 
&lt;P&gt;thank you very much for your answer.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I change the "&lt;SPAN&gt;(if/else) results"&lt;/SPAN&gt;&amp;nbsp;to the same Datatype (e.g. assigning it to one variable) it works but I still can´t do a multiplication because it reads everything as a String. If I build a sum of e.g. 3.9+3.9 = 3.93.89 as you can see in the picture.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I check if something equals "PLN" in the currency and then do a proper multiplication of doubles if it does and "else" give back a double:&lt;/P&gt; 
&lt;P class="p1"&gt;row15.currency.equals(&lt;SPAN class="s1"&gt;"PLN"&lt;/SPAN&gt;) ? row15.price*row15.PLN : row15.price&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;I really appreciate your help. Thank you!&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-01-26 at 12.31.24.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8sE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148881iAE13E9FF6DFF5357/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8sE.png" alt="0683p000009M8sE.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Jan 2020 11:40:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-26T11:40:31Z</dc:date>
    <item>
      <title>Multiplication of values in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiplication-of-values-in-tMap/m-p/2269542#M47754</link>
      <description>&lt;P class="p1"&gt;Hello Community,&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;I am pretty new in Talend so this is probably a basic question:&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;In my If / Else Condition I can´t multiply the two values of column row15.price (Integer) and row15.PLN(Double) in the Expression builder. If I try to test it following Error occurs:&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problem:&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;row15.currency.equals(&lt;SPAN class="s1"&gt;"PLN"&lt;/SPAN&gt;) ? &lt;SPAN class="s2"&gt;row15.price*row15.PLN&lt;/SPAN&gt; : &lt;SPAN class="s1"&gt;"AA"&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-01-26 at 02.01.15.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8sc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156450i8D4A9063E84E90D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8sc.png" alt="0683p000009M8sc.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2020 01:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiplication-of-values-in-tMap/m-p/2269542#M47754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-26T01:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication of values in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiplication-of-values-in-tMap/m-p/2269543#M47755</link>
      <description>For a ternary expression, both parts (if/else) result must have the same datatype.
&lt;BR /&gt;Try to change "AA" by something like -1.0 to signify the currency wasn't equal to PLN.</description>
      <pubDate>Sun, 26 Jan 2020 09:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiplication-of-values-in-tMap/m-p/2269543#M47755</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-01-26T09:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication of values in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiplication-of-values-in-tMap/m-p/2269544#M47756</link>
      <description>&lt;P&gt;Hello TRF,&lt;/P&gt; 
&lt;P&gt;thank you very much for your answer.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I change the "&lt;SPAN&gt;(if/else) results"&lt;/SPAN&gt;&amp;nbsp;to the same Datatype (e.g. assigning it to one variable) it works but I still can´t do a multiplication because it reads everything as a String. If I build a sum of e.g. 3.9+3.9 = 3.93.89 as you can see in the picture.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I check if something equals "PLN" in the currency and then do a proper multiplication of doubles if it does and "else" give back a double:&lt;/P&gt; 
&lt;P class="p1"&gt;row15.currency.equals(&lt;SPAN class="s1"&gt;"PLN"&lt;/SPAN&gt;) ? row15.price*row15.PLN : row15.price&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;I really appreciate your help. Thank you!&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-01-26 at 12.31.24.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8sE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148881iAE13E9FF6DFF5357/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8sE.png" alt="0683p000009M8sE.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2020 11:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiplication-of-values-in-tMap/m-p/2269544#M47756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-26T11:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication of values in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiplication-of-values-in-tMap/m-p/2269545#M47757</link>
      <description>You need to convert values from string to double:&lt;BR /&gt;Double.parseDouble(row15.price)*Double.parseDouble(row15.PLN)</description>
      <pubDate>Sun, 26 Jan 2020 12:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiplication-of-values-in-tMap/m-p/2269545#M47757</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-01-26T12:14:05Z</dc:date>
    </item>
  </channel>
</rss>

