<?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: Import a field in a csv whithout decimal in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360896#M703239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the script but I will have to modify all expressions of my objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have millions of records and the difference in my sum is around 2 cents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2012 13:45:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-24T13:45:08Z</dc:date>
    <item>
      <title>How-To: Import a field in a csv whithout decimal</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360888#M703226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a trouble when I import a csv in QV, the field got too many decimal.&lt;/P&gt;&lt;P&gt;My field is &lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;M_DEVI_COMPTA_C :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2 327 003 521,820000&lt;SPAN style="color: red;"&gt;2&lt;/SPAN&gt;000 but in my file I have only : 2 327 003 521,82&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to delete this decimal because when I make a sum on multiple lines I have some difference with excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 13:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360888#M703226</guid>
      <dc:creator />
      <dc:date>2012-07-20T13:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: How-To: Import a field in a csv whithout decimal</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360889#M703229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;You could use the round function in your script&lt;/P&gt;&lt;P&gt; round(M_DEVI_COMPTA_C , 0.01 )&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 14:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360889#M703229</guid>
      <dc:creator />
      <dc:date>2012-07-20T14:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: How-To: Import a field in a csv whithout decimal</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360890#M703230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank's &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/frankcrezee" id="jive-468671061887117715260" onmouseout="" onmouseover=""&gt;frankcrezee&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it but it's not better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 14:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360890#M703230</guid>
      <dc:creator />
      <dc:date>2012-07-20T14:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: How-To: Import a field in a csv whithout decimal</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360891#M703233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not 100% sure, but I believe that this is not an import issue, but an issue with floating point representation.&lt;/P&gt;&lt;P&gt;You just can't represent any number possible exactely using floating points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So QV does store your number internally with these decimals, I think there is no way around if you keep to floating points. Normally, you won't really care, since the error is neglectible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are saying that you are already encountering problems when summing up all your numbers. You might want to consider working with integers only (Multiply your input values with 100 and use floor to convert to integers. Then do all your calculations with the integers and only convert back to a number with 2 decimals when displaying data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 14:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360891#M703233</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-20T14:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: How-To: Import a field in a csv whithout decimal</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360892#M703235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if I want to put it in a QVD, is it possible to avoid this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 14:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360892#M703235</guid>
      <dc:creator />
      <dc:date>2012-07-20T14:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: How-To: Import a field in a csv whithout decimal</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360893#M703236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure how a qvd should help here. If my assumption is right, it's all about the internal number storage, so as soon as you've loaded your data from any source, you are running into the same issue as long as you are using floating point binary representation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I've misunderstood your question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 14:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360893#M703236</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-20T14:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: How-To: Import a field in a csv whithout decimal</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360894#M703237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No you've understood, I just wanted to avoid editing all my expression in my application and do it in my ETL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my expression I put : &lt;/P&gt;&lt;P&gt;sum(M_DEVI_COMPTA_C&lt;SPAN style="font-size: 8pt;"&gt;*100))/100 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It's better&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/swuehl" id="jive-158231063172721046461" onmouseout="" onmouseover=""&gt;swuehl&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 14:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360894#M703237</guid>
      <dc:creator />
      <dc:date>2012-07-20T14:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: How-To: Import a field in a csv whithout decimal</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360895#M703238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create an integer field in the ETL part / load script, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;floor(M_DEVI_COMPTA_C*100) as M_DEVI_COMPTA_C_INT,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I ask how many records you are summing up? How big is the error in your sum?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 15:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360895#M703238</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-20T15:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: How-To: Import a field in a csv whithout decimal</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360896#M703239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the script but I will have to modify all expressions of my objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have millions of records and the difference in my sum is around 2 cents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 13:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Import-a-field-in-a-csv-whithout-decimal/m-p/360896#M703239</guid>
      <dc:creator />
      <dc:date>2012-07-24T13:45:08Z</dc:date>
    </item>
  </channel>
</rss>

