<?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: Calculation error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358327#M828176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please share some sample data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or try to convert all values in number format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jun 2017 09:45:38 GMT</pubDate>
    <dc:creator>prma7799</dc:creator>
    <dc:date>2017-06-26T09:45:38Z</dc:date>
    <item>
      <title>Calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358326#M828175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table (below) that calculates the difference between the selected year and the previous year but the calculations are not accurate and are out by 0.01 in the highlighted rows below. &lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168075_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Could this be due to an error in my expression (Change)-&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;BR /&gt; (&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DYW_flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Y'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AcademicYearShort&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=max(AcademicYearShort))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[credits]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/ &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AcademicYearShort&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=max(AcademicYearShort))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[credits]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; )&lt;BR /&gt; - &lt;BR /&gt; (&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DYW_flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Y'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AcademicYearShort&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=max(AcademicYearShort)-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[credits]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/ &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AcademicYearShort&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=max(AcademicYearShort)-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[credits]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; )&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I had to create new field called AcademicYearShort because my Year field was presented as an academic year i.e. 2015-16&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358326#M828175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358327#M828176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please share some sample data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or try to convert all values in number format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 09:45:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358327#M828176</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-06-26T09:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358328#M828177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Difficult to say anything without looking into the original app or data.. but you can check below blog post..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3471"&gt;Rounding Errors&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 09:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358328#M828177</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-06-26T09:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358329#M828178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, most likely this is due to that the numbers presented are rounded (data has more than 2 decimal points).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for instance this year is rounded from 0.467% to 0.47% , last year is rounded from 0.444 to 0.44%. This would give a difference of 0.47%-0.44% = 0.03%&lt;/P&gt;&lt;P&gt;However the real calculation would be 0.467%-0.444% = 0.023% which then is rounded to 0.02%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the difference is not in the calculations, it's in the way the data is presented. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my opinion this is not an error, it's just a lack of granularity and can be easily explained.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 09:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358329#M828178</guid>
      <dc:creator>niclaz79</dc:creator>
      <dc:date>2017-06-26T09:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358330#M828181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Niclas&lt;/P&gt;&lt;P&gt;Do you know if it is possible in Qlikview to perform the calculation on the rounded data rather than the raw data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 10:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358330#M828181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-26T10:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358331#M828185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah It is possible.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 10:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358331#M828185</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-06-26T10:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358332#M828188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greg, if you use Round() in your calculations (all three) the result should be the same. However in my opinion that is less correct than what you have now since you are removing data accuracy. That's up to you though &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you agree with my response above please mark it as correct so others with the same question can find it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 11:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-error/m-p/1358332#M828188</guid>
      <dc:creator>niclaz79</dc:creator>
      <dc:date>2017-06-26T11:01:27Z</dc:date>
    </item>
  </channel>
</rss>

