<?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: Wrong total in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-pivot-table/m-p/458120#M171035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you need the aggr function. I think the problem is that you divide the Sum(...) with Divisor, which is an unaggregated number. This causes problems in all cases where there is more than one possible value of Divisor. You should either move the division into the Sum(...) or you should divide with Avg(Divisor).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See more on &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/08/03/the-only-function"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/08/03/the-only-function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2012 21:30:42 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2012-10-01T21:30:42Z</dc:date>
    <item>
      <title>Wrong total in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-pivot-table/m-p/458119#M171034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm Having a different result from the pivot table. I have had reading about this. I think I have to use the aggr advanced function.&lt;/P&gt;&lt;P&gt;But Doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 103px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" width="103"&gt;19,462,283&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;6,109,388&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;2,342,810&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;1,062,468&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;-271,798&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;-271,798&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;-253,340&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;&lt;STRONG&gt;29,810,800&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Formula is: the sum should have &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="80"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" width="80"&gt;28.180.013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;and not 29810800&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(Sum(If(Cod_Bloqueo &amp;lt;&amp;gt; 8, Deuda_Total))/Divisor) - (Sum(Saldo_Cob)/Divisor) - (Sum(Saldo_Dic)/Divisor) -(Sum(Saldo_Susp)/Divisor)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 20:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-pivot-table/m-p/458119#M171034</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-10-01T20:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong total in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-total-in-pivot-table/m-p/458120#M171035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you need the aggr function. I think the problem is that you divide the Sum(...) with Divisor, which is an unaggregated number. This causes problems in all cases where there is more than one possible value of Divisor. You should either move the division into the Sum(...) or you should divide with Avg(Divisor).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See more on &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/08/03/the-only-function"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/08/03/the-only-function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 21:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-total-in-pivot-table/m-p/458120#M171035</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-01T21:30:42Z</dc:date>
    </item>
  </channel>
</rss>

