<?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 Decimal places issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Decimal-places-issue/m-p/298059#M1193707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that QlikView is using IEEE double precision binary floating point internally.&amp;nbsp; That creates some problems, but the storage of 255 decimal places is not one of them.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea why it's displaying all those decimal places or why the dummy column fixes it.&amp;nbsp; But generally speaking, I let QlikView do whatever it wants as far as numeric storage, and I simply format the result as desired.&amp;nbsp; To do this in the document as a whole, you can use settings -&amp;gt; document properties -&amp;gt; number.&amp;nbsp; For specific charts, it would be properties -&amp;gt; number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definitely don't do a round() during the QVD load or add a dummy column.&amp;nbsp; As you've observed, this can kill performance if it takes you from an optimized QVD load to an unoptimized QVD load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2011 23:29:00 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-07-21T23:29:00Z</dc:date>
    <item>
      <title>Decimal places issue</title>
      <link>https://community.qlik.com/t5/QlikView/Decimal-places-issue/m-p/298058#M1193706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt;Dear All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have encountered a strange issue relating to decimal places and need some help.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt;I have a qvw which selects all data from an Oracle view using OLE DB.&amp;nbsp; It then stores the results as a qvd. When I load and display the qvd in a second, 'presentation' qvw using a table box, all numeric fields are returned with 255 decimal places (format in document properties is 'Fixed - 14 decimal places' which I believe is the max dps). The weird part is that if I add a column at the start of my load from qvd statement&amp;nbsp; e.g. Load 1 as Dummy, ColA, ColB from MyQVD.qvd then the format of the numeric columns reverts to 'Mixed' and the table shows the correct number of decimal places.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt;Example number returned with no dummy column in load script&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt;0.89030000000000000002 followed by about 235zeros&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt;Example number returned with the dummy column in the load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt;0.8903&amp;nbsp;&amp;nbsp; (correct)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt;I don't know if this is how it works but I'm concerned that QV is storing 255 decimal places when 4 or 5 would be sufficient. I'm also reluctant to use the Round() function on the qvd load as there are millions of rows and about a dozen numeric columns. Ideally I don't use CAST() within the SQL select for the same reason. There must be something I'm missing as QV does display the correct number of decimal places with no other changes other than the dummy column which feels like a bodge and slows things down. Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt;We have a QV v10 server running on a 64 bit machine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt;Many thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10.0pt; font-family: Arial;"&gt;Ben&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 23:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decimal-places-issue/m-p/298058#M1193706</guid>
      <dc:creator />
      <dc:date>2011-07-21T23:14:07Z</dc:date>
    </item>
    <item>
      <title>Decimal places issue</title>
      <link>https://community.qlik.com/t5/QlikView/Decimal-places-issue/m-p/298059#M1193707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that QlikView is using IEEE double precision binary floating point internally.&amp;nbsp; That creates some problems, but the storage of 255 decimal places is not one of them.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea why it's displaying all those decimal places or why the dummy column fixes it.&amp;nbsp; But generally speaking, I let QlikView do whatever it wants as far as numeric storage, and I simply format the result as desired.&amp;nbsp; To do this in the document as a whole, you can use settings -&amp;gt; document properties -&amp;gt; number.&amp;nbsp; For specific charts, it would be properties -&amp;gt; number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definitely don't do a round() during the QVD load or add a dummy column.&amp;nbsp; As you've observed, this can kill performance if it takes you from an optimized QVD load to an unoptimized QVD load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 23:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decimal-places-issue/m-p/298059#M1193707</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-21T23:29:00Z</dc:date>
    </item>
    <item>
      <title>Decimal places issue</title>
      <link>https://community.qlik.com/t5/QlikView/Decimal-places-issue/m-p/298060#M1193708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you John. That's really useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've left the loads as they are and changed the format in the document properties and that has solved my immediate problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 09:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decimal-places-issue/m-p/298060#M1193708</guid>
      <dc:creator />
      <dc:date>2011-07-22T09:32:20Z</dc:date>
    </item>
  </channel>
</rss>

