<?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: Incorrect Total Sum in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/481815#M180054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting a sum(aggr( &lt;EM&gt;...expression...&lt;/EM&gt; , DimA, DimX)) around your expression where DimA, DimX are the dimensions of your pivot table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you can use rangemax(sum(x),0) instead of the if statement. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Dec 2013 10:57:50 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-12-13T10:57:50Z</dc:date>
    <item>
      <title>Incorrect Total Sum in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/481814#M180053</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 used to sum calculated negative results in a Pivot Table and the grand total at the end of the table is incorrect. Once I switch to straight table and set the properties to summarize "of rows", I'm fine. Unfortunately this setting is not available in my Pivot Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used to try it with set analysis, but I don't think this might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;1) I have different calculated results of value 'x' as starting situation -&amp;gt;&amp;nbsp;&amp;nbsp; sum ( x )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sum ( x ) returns positive and negative Values.&lt;/P&gt;&lt;P&gt;2) I want to sum only negative results of 'sum( x )' so I tried the simple way&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'if (sum( x ) &amp;lt; 0, sum ( x ), 0)'&lt;/P&gt;&lt;P&gt;&amp;nbsp; The results of the rows in my table are correct, BUT the grand total is incorrect. The grand total is the sum of all results (negative + positive). It doesn't matter if I try to use additional aggregation in the formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All other solution approaches didn't help so far. There might be a very simple solution... Thanks for any hint!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 10:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/481814#M180053</guid>
      <dc:creator />
      <dc:date>2013-12-13T10:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Total Sum in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/481815#M180054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting a sum(aggr( &lt;EM&gt;...expression...&lt;/EM&gt; , DimA, DimX)) around your expression where DimA, DimX are the dimensions of your pivot table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you can use rangemax(sum(x),0) instead of the if statement. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 10:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/481815#M180054</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-13T10:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Total Sum in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/481816#M180055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply! I think you mean 'rangemin', because I want to sum all negative results... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried to do it with aggregation. Now the formula is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=RangeMin (sum (aggr(sum({$&amp;lt;Finanzkonto = {"*"}&amp;gt;} Saldo), Mandant, Kontonamelang)),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the result is still the same... grand total is incorrect, s. below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="20131213 Screenshot 5.png" class="jive-image" src="/legacyfs/online/50413_20131213 Screenshot 5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frustrating...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 11:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/481816#M180055</guid>
      <dc:creator />
      <dc:date>2013-12-13T11:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Incorrect Total Sum in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/481817#M180056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant something like this:&lt;/P&gt;&lt;P&gt;sum (aggr(rangemin(sum({$&amp;lt;Finanzkonto = {"*"}&amp;gt;} Saldo),0), Mandant, Kontonamelang))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't work can you post an example document that demonstrates the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 11:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/481817#M180056</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-13T11:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Incorrect Total Sum in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/481818#M180057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's it! I have to spend more time with range-functions...&amp;nbsp; Great! Thank you very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 11:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/481818#M180057</guid>
      <dc:creator />
      <dc:date>2013-12-13T11:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Total Sum in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/481819#M180058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&amp;nbsp; &lt;/P&gt;&lt;P&gt; I am given a task to calculate the frequency of calls across a territory. If the rep called a physician regarding the sale of the product 5 times, then frequency is 5 and HCP count is 1....I generated frequencies from 1 to 124 in my pivot table using a calculated dimension which is working fine. But my concern is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My manager wants frequencies till 19 in order from 1..2..3..4...5..6.....19... &lt;/P&gt;&lt;P&gt;And from the frequency 21-124 as 20+.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be grateful if someone helps me with this.....Eager for the reply....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 18:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/481819#M180058</guid>
      <dc:creator />
      <dc:date>2014-02-05T18:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Total Sum in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/1961420#M1220123</link>
      <description>&lt;P&gt;Thank you. The solution above with the RangeMin worked for me as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 21:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/1961420#M1220123</guid>
      <dc:creator>stefano27</dc:creator>
      <dc:date>2022-07-27T21:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Incorrect Total Sum in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/1961421#M1220124</link>
      <description>&lt;P&gt;Thank you. This worked for me as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 21:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Total-Sum-in-Pivot-Table/m-p/1961421#M1220124</guid>
      <dc:creator>stefano27</dc:creator>
      <dc:date>2022-07-27T21:12:56Z</dc:date>
    </item>
  </channel>
</rss>

