<?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 Rounding issues in Qlik Sense in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rounding-issues-in-Qlik-Sense/m-p/1331657#M460687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load data from a table having a column with datatype decimal(17,2); it's dedicated to financial amounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Qlik sense displays a (large!) sum on this column, the result differs slightly from the result I get with a SQL-query. More surprisingly, Qlik sense gives different results in the sum of a table and in a text field with the formula&amp;nbsp; Sum([MU Amount]):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/160328_pastedImage_6.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;The correct result is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/160329_pastedImage_7.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference is only some units on a large amount, but it's unacceptable with financial data.&lt;/P&gt;&lt;P&gt;As a workaround, I use a new column where these values are multiplied by 100 and casted to integer, I perform a sum on it and I divide the result by 100 ( Sum([MU Amount x 100])/100 ). And I don't use the total in tables anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/160332_pastedImage_10.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/160331_pastedImage_9.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/160333_pastedImage_11.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody encounters the same type of issue ?&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;Gauthier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Apr 2017 10:01:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-04-18T10:01:59Z</dc:date>
    <item>
      <title>Rounding issues in Qlik Sense</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-issues-in-Qlik-Sense/m-p/1331657#M460687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load data from a table having a column with datatype decimal(17,2); it's dedicated to financial amounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Qlik sense displays a (large!) sum on this column, the result differs slightly from the result I get with a SQL-query. More surprisingly, Qlik sense gives different results in the sum of a table and in a text field with the formula&amp;nbsp; Sum([MU Amount]):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/160328_pastedImage_6.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;The correct result is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/160329_pastedImage_7.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference is only some units on a large amount, but it's unacceptable with financial data.&lt;/P&gt;&lt;P&gt;As a workaround, I use a new column where these values are multiplied by 100 and casted to integer, I perform a sum on it and I divide the result by 100 ( Sum([MU Amount x 100])/100 ). And I don't use the total in tables anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/160332_pastedImage_10.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/160331_pastedImage_9.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/160333_pastedImage_11.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody encounters the same type of issue ?&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;Gauthier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 10:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-issues-in-Qlik-Sense/m-p/1331657#M460687</guid>
      <dc:creator />
      <dc:date>2017-04-18T10:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding issues in Qlik Sense</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-issues-in-Qlik-Sense/m-p/1331658#M460688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gauthier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have the same issue with small difference in decimals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to replicate your approach but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is stored in format numeric(19,4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't you have any other tips how to avoid it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Michal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 16:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-issues-in-Qlik-Sense/m-p/1331658#M460688</guid>
      <dc:creator>michal_durica</dc:creator>
      <dc:date>2017-11-27T16:01:46Z</dc:date>
    </item>
  </channel>
</rss>

