<?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: Partial sum of rounding in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567442#M478557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the rounded numbers:&lt;/P&gt;&lt;P&gt;58 668 858 + 302 752 512 - 1 039 939 = 360 381 43&lt;STRONG&gt;1&lt;/STRONG&gt; NOT 360 381 43&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sorry for the long digits, I just gave you the precises numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the partial sum is still using the unrounded numbers. It's driving me crazy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Mar 2014 12:50:44 GMT</pubDate>
    <dc:creator>sibrulotte</dc:creator>
    <dc:date>2014-03-13T12:50:44Z</dc:date>
    <item>
      <title>Partial sum of rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567440#M478555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;have any of you come across this:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&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;[%CLE_Type_Transaction_ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {'EB', 'EA'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Numéro du type d'écriture]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {'FERM'} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Montant cumulé aad]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;* %CR003M)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This returns a two decimal number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;When I wrap it with round, I get a rounded number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Unfortunatly, the partial sum didn't get the memo...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;It still treats the numbers as two decimals, and returns a rounded number that is off.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;See my jpgs for as an exemple.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 20:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567440#M478555</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2014-03-12T20:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum of rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567441#M478556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont quite understand the issue. The subtotal is rounded off from 360381431,61 to 360 381 432&lt;/P&gt;&lt;P&gt;since the decimal place is 61 (&amp;gt;50) its rounded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if num is 1.5 will be rounded to 2&lt;/P&gt;&lt;P&gt;if&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.8&amp;nbsp; will be 2&lt;/P&gt;&lt;P&gt;if&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.4 will be 1.&lt;/P&gt;&lt;P&gt;Can you explain a little more or am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: if you just wanna drop the decimal part without rounding you can try floor().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 20:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567441#M478556</guid>
      <dc:creator />
      <dc:date>2014-03-12T20:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum of rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567442#M478557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the rounded numbers:&lt;/P&gt;&lt;P&gt;58 668 858 + 302 752 512 - 1 039 939 = 360 381 43&lt;STRONG&gt;1&lt;/STRONG&gt; NOT 360 381 43&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sorry for the long digits, I just gave you the precises numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the partial sum is still using the unrounded numbers. It's driving me crazy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 12:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567442#M478557</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2014-03-13T12:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum of rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567443#M478558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which qv version you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because what i know is that the qv automatically do the same thing as Ajay wrote ie. it auto convert the last digits to the above value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This happens when you have the long decimal digits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 13:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567443#M478558</guid>
      <dc:creator>ashwanin</dc:creator>
      <dc:date>2014-03-13T13:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum of rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567444#M478559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and sometimes lowers the value ,as per the last digit (ie below 4)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 13:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567444#M478559</guid>
      <dc:creator>ashwanin</dc:creator>
      <dc:date>2014-03-13T13:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum of rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567445#M478560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what you are getting to but qlikview doesn't add the rounded off numbers. It adds the actual numbers and rounds off the result.&lt;/P&gt;&lt;P&gt;But as you mentioned it is misleading. This is interesting..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 15:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567445#M478560</guid>
      <dc:creator />
      <dc:date>2014-03-13T15:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum of rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567446#M478561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So rounding tlike this worked:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&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;[%CLE_Type_Transaction_ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {'EB', 'EA'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Numéro du type d'écriture]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {'FERM'} &amp;gt;}round(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Montant cumulé aad])&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;* %CR003M)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 15:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567446#M478561</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2014-03-13T15:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum of rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567447#M478562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SO I am taking out the correct answer that I had put to my own self...&lt;/P&gt;&lt;P&gt;hehe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is horrendous and skews the results since obviously every single line behind the code is rounded, creating havoc in my results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am back to complaining that the partial sum doesn't get that the results are rounded, and takes the unrounded values to show a rounded sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using QV 11 SR2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 17:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567447#M478562</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2014-03-18T17:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Partial sum of rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567448#M478563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll have to create two sums, one for regular values and another for your partial sums. I've attached an example qvw. I used a formula like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;STRONG&gt;dimensionality()&lt;/STRONG&gt; =2, round(sum(Value)), &lt;STRONG&gt;sum(aggr(&lt;/STRONG&gt;round(sum(Value)), Type, Product)&lt;STRONG&gt;)&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to accommodate this formula to your fields and calculations. The important parts are &lt;STRONG&gt;dimensionality()&lt;/STRONG&gt; to distinguish between the regular values and your partial sums (the 2 may change depending on how much aggregation you are doing) and&amp;nbsp; &lt;STRONG&gt;sum(aggr())&lt;/STRONG&gt; to sum the required rounded values (the fields listed will be dependent on your data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: You may actually be able to get away with just:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(round(sum(Value)), Type, Product))&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>Tue, 18 Mar 2014 18:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567448#M478563</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-03-18T18:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum of rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567449#M478564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well that definitly seems to work in your file.&lt;/P&gt;&lt;P&gt;You have no idea how much coding time this will require though for me. :*(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 18:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567449#M478564</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2014-03-18T18:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum of rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567450#M478565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if you saw my edit, but you may be able to get away with just:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;sum(aggr(round(sum(Value)), Type, Product))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;This should reduce the formula a bit.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 18:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567450#M478565</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-03-18T18:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum of rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567451#M478566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, did, I tested in your file and it worked in deed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have at least 40 some expressions to change with each 3 to 4 dimensions, and that is without taking into account a sandbox that has 20 some dimensions and 20 some expressions. Using AGGR requires that I explicitly state which dimension I am agrregating for right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 18:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567451#M478566</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2014-03-18T18:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sum of rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567452#M478567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately yes, but if some charts use the same dimensions, you could create a variable vAggr with a value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type, Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then for your expression your could do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(round(sum(Value)), $(vAggr)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than that, you could leave it the way it is and just let the user know that the rounding takes place after the summing (which therefore the partial sum is not always the sum of the rows above). In all honesty, this probably gives more of an accurate sum.&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>Tue, 18 Mar 2014 18:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sum-of-rounding/m-p/567452#M478567</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-03-18T18:42:30Z</dc:date>
    </item>
  </channel>
</rss>

