<?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 issue with percentage values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/issue-with-percentage-values/m-p/2352519#M118896</link>
    <description>hi, 
&lt;BR /&gt;I am getting below error when transferring values in db. 
&lt;BR /&gt;the method replace(string, string, string) in the type String Handling is not applicable for the arguments (integer, string, string) talend 
&lt;BR /&gt;Input is excel, value is 100%. Target column has integer as data type and input has integer as data type. 
&lt;BR /&gt;In expression builder tried StringHandling.EREPLACE(row1.average_rate,"%","0") 
&lt;BR /&gt;Tried tReplace, but still nothing happened. 
&lt;BR /&gt;to explain problem in short, 
&lt;BR /&gt;values for average_rate in excel sheet is in percentage, 
&lt;BR /&gt;100.00% 
&lt;BR /&gt;90.00% 
&lt;BR /&gt;and so on 
&lt;BR /&gt;What output should be is, 
&lt;BR /&gt;100 
&lt;BR /&gt;90 and so on 
&lt;BR /&gt;datatype in database is integer.....</description>
    <pubDate>Wed, 23 Apr 2014 17:18:28 GMT</pubDate>
    <dc:creator>tYrannoSaurusRex_1</dc:creator>
    <dc:date>2014-04-23T17:18:28Z</dc:date>
    <item>
      <title>issue with percentage values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/issue-with-percentage-values/m-p/2352519#M118896</link>
      <description>hi, 
&lt;BR /&gt;I am getting below error when transferring values in db. 
&lt;BR /&gt;the method replace(string, string, string) in the type String Handling is not applicable for the arguments (integer, string, string) talend 
&lt;BR /&gt;Input is excel, value is 100%. Target column has integer as data type and input has integer as data type. 
&lt;BR /&gt;In expression builder tried StringHandling.EREPLACE(row1.average_rate,"%","0") 
&lt;BR /&gt;Tried tReplace, but still nothing happened. 
&lt;BR /&gt;to explain problem in short, 
&lt;BR /&gt;values for average_rate in excel sheet is in percentage, 
&lt;BR /&gt;100.00% 
&lt;BR /&gt;90.00% 
&lt;BR /&gt;and so on 
&lt;BR /&gt;What output should be is, 
&lt;BR /&gt;100 
&lt;BR /&gt;90 and so on 
&lt;BR /&gt;datatype in database is integer.....</description>
      <pubDate>Wed, 23 Apr 2014 17:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/issue-with-percentage-values/m-p/2352519#M118896</guid>
      <dc:creator>tYrannoSaurusRex_1</dc:creator>
      <dc:date>2014-04-23T17:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: issue with percentage values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/issue-with-percentage-values/m-p/2352520#M118897</link>
      <description>If it's telling you that the first parameter you're passing is an integer, then it sounds like you have no "%" character to remove - as it's not a String. 
&lt;BR /&gt;Try using a tLogRow to display the data that is actually coming from your spreadsheet. Maybe there's nothing for you to do?</description>
      <pubDate>Wed, 23 Apr 2014 19:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/issue-with-percentage-values/m-p/2352520#M118897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-23T19:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: issue with percentage values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/issue-with-percentage-values/m-p/2352521#M118898</link>
      <description>@tal00000 - Agreed...&lt;BR /&gt;Else you can do a .toString() before doing the Replace...</description>
      <pubDate>Wed, 23 Apr 2014 21:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/issue-with-percentage-values/m-p/2352521#M118898</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-04-23T21:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: issue with percentage values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/issue-with-percentage-values/m-p/2352522#M118899</link>
      <description>Hi,
&lt;BR /&gt;Your input is a string, first replace %--&amp;gt; convert it to float --&amp;gt; convert it to integer as below
&lt;BR /&gt;output_row.average_rate = (int)(Float.parseFloat(StringHandling.EREPLACE(row1.average_rate,"%","0")));
&lt;BR /&gt;This will give you output as 100 which is of integer datatype.
&lt;BR /&gt;Thanks
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Thu, 24 Apr 2014 05:53:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/issue-with-percentage-values/m-p/2352522#M118899</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-24T05:53:25Z</dc:date>
    </item>
  </channel>
</rss>

