<?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 sums incorrect in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Partial-sums-incorrect/m-p/419674#M156143</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 faced the same issue today and I found the solution for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if you have fixed the issue already. Thought it can help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The incorrect total is beacuse of the &lt;SPAN style="background: yellow;"&gt;duplicate records in the data&lt;/SPAN&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The pivot table will not show these records more than once, but they will all be included in the sum.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Solution: &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial Unicode MS','sans-serif'; color: black; font-size: 10pt;"&gt;we have to &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-family: 'Arial Unicode MS','sans-serif'; color: black; font-size: 10pt;"&gt;use the aggregator function (‘aggr’) to create correct partial sums&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Syntax:&amp;nbsp; Sum(Aggr(original expression,Dimension1,Dimension2))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your example:&amp;nbsp; S&lt;STRONG&gt;um(Aggr( &lt;/STRONG&gt;count(distinct toy),&lt;STRONG&gt;monthname))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if that works for you!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: 'Arial Unicode MS','sans-serif'; color: black; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2012 09:53:41 GMT</pubDate>
    <dc:creator>sureshbaabu</dc:creator>
    <dc:date>2012-11-20T09:53:41Z</dc:date>
    <item>
      <title>Partial sums incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sums-incorrect/m-p/419673#M156142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 573px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="76"&gt;&lt;P&gt;Monthname&lt;/P&gt;&lt;/TD&gt;&lt;TD class="xl64" width="34"&gt;toy&lt;/TD&gt;&lt;TD class="xl72" style="border-left: none;" width="67"&gt;Balls&lt;/TD&gt;&lt;TD class="xl72" style="border-left: none;" width="67"&gt;Bats&lt;/TD&gt;&lt;TD class="xl72" style="border-left: none;" width="67"&gt;Dolls&lt;/TD&gt;&lt;TD class="xl72" style="border-left: none;" width="67"&gt;Bikes&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="67"&gt;Total&lt;/TD&gt;&lt;TD width="64"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl75" width="64"&gt;Excel totals&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;January&lt;/TD&gt;&lt;TD class="xl67"&gt; &lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;143&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;57&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;21&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;27&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;246&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl71"&gt;248&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;February&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;102&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;24&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;38&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;167&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl71"&gt;167&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;March&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;106&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;33&lt;/TD&gt;&lt;TD class="xl78" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;170&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl71"&gt;171&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;April&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;96&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;16&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;23&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;139&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl71"&gt;139&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;May&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;99&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;27&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;26&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;174&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl71"&gt;174&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;June&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;88&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;24&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;126&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl71"&gt;126&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;July&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;120&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;31&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;184&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl71"&gt;184&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;August&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;45&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;14&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;16&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;77&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl71"&gt;77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;September&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;71&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;42&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;28&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;158&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl71"&gt;158&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;October&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;51&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;24&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;103&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl71"&gt;103&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;Total&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;921&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;232&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;134&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;260&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1544&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl77" height="17"&gt;excel totals&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl76"&gt;921&lt;/TD&gt;&lt;TD class="xl76"&gt;232&lt;/TD&gt;&lt;TD class="xl76"&gt;134&lt;/TD&gt;&lt;TD class="xl76"&gt;260&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear All, &lt;/P&gt;&lt;P&gt;Ive created a very simple pivot which shows the amount of toys bought over the course of a year or year to date. &lt;/P&gt;&lt;P&gt;using 1 dimension - monthname&lt;/P&gt;&lt;P&gt;and 1 expression&amp;nbsp; - count(distinct toy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of the internal figures in the table are correct and the sub totals at the bottom in the row 'Total'&amp;nbsp; are also correct but as the sub totals read across the table they calculate incorrectly, seen by coumn 'Total'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the additional column and row excel totals, ive added to show the differences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this table has no 'If' statement and there are no synthetic keys in any table but im confused as to why certain partial sums are showing/ adding incorrectly, can anyone shed any light. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry but i cant add the qvw as its part of a larger company sheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 11:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sums-incorrect/m-p/419673#M156142</guid>
      <dc:creator />
      <dc:date>2012-10-16T11:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sums incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sums-incorrect/m-p/419674#M156143</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 faced the same issue today and I found the solution for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if you have fixed the issue already. Thought it can help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The incorrect total is beacuse of the &lt;SPAN style="background: yellow;"&gt;duplicate records in the data&lt;/SPAN&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The pivot table will not show these records more than once, but they will all be included in the sum.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Solution: &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial Unicode MS','sans-serif'; color: black; font-size: 10pt;"&gt;we have to &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-family: 'Arial Unicode MS','sans-serif'; color: black; font-size: 10pt;"&gt;use the aggregator function (‘aggr’) to create correct partial sums&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Syntax:&amp;nbsp; Sum(Aggr(original expression,Dimension1,Dimension2))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your example:&amp;nbsp; S&lt;STRONG&gt;um(Aggr( &lt;/STRONG&gt;count(distinct toy),&lt;STRONG&gt;monthname))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if that works for you!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: 'Arial Unicode MS','sans-serif'; color: black; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 09:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sums-incorrect/m-p/419674#M156143</guid>
      <dc:creator>sureshbaabu</dc:creator>
      <dc:date>2012-11-20T09:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sums incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sums-incorrect/m-p/419675#M156144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh&lt;/P&gt;&lt;P&gt;Yes that worked thank you. I thought it may be a duplicate issue , hence the distinct count. Im curious why the figures went up when the correct equation was put in. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the distinct figures are not in the pivot but are in the totals , wouldnt the totals be higher than what the actual figures are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Despite not understanding why the figures went up I am thankful its adding correctly now &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 13:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sums-incorrect/m-p/419675#M156144</guid>
      <dc:creator />
      <dc:date>2012-11-22T13:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Partial sums incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sums-incorrect/m-p/419676#M156145</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;BR /&gt;I had gone thorough some discussion and the following could be the reason.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Pivot tables don't do a sum of rows, but rather re-evaluate your expression for the total row. When doing the full total- the expression will be applied for the total column and it provided the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 14:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sums-incorrect/m-p/419676#M156145</guid>
      <dc:creator>sureshbaabu</dc:creator>
      <dc:date>2012-11-22T14:53:49Z</dc:date>
    </item>
  </channel>
</rss>

