<?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 general column total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-general-column-total/m-p/410861#M152954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it remains skiping over the first part of the if expression. Now the values for 'C' are cero like its total. Thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Oct 2012 11:53:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-13T11:53:37Z</dc:date>
    <item>
      <title>Wrong general column total</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-general-column-total/m-p/410859#M152952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table with a expression (column) called 'Prod.'. The expression is calculated with a condition :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='C',Est.*TME,sum(I_PRODUCCION)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where 'Est.*TME' = 12.879 when GR='C' as you can see in the attached printscreen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that total should be = 712.498 (A) + 42.168 (B) + 12.879 (C) = 767.545 instead of&amp;nbsp; 712.498 (A) + 42.168 (B) = 754.666&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does it not make the correct summation? What can I do to get the right Total?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 23:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-general-column-total/m-p/410859#M152952</guid>
      <dc:creator />
      <dc:date>2012-10-12T23:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong general column total</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-general-column-total/m-p/410860#M152953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pivot tables don't do a sum of rows, but rather reevaluate your expression for the total row.&amp;nbsp; In this case, when doing the full total, GR is null - it has values A, B and C at the same time, which evaluates to null.&amp;nbsp; So it skips over the first part and just does the sum(I_PRODUCCION) for all rows, and so skips the GR = 'C' data.&amp;nbsp; To get an accurate sum of rows in a pivot table, you need to use this general form for your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sum(aggr(your expression, your dimensions))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example, I'm guessing something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sum(aggr(IF(GR='C',Est.*TME,sum(I_PRODUCCION)),GR,MCDO,MES,RG))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not remembering exactly what it'll do with Est. and TME, though, so I don't guarantee that it works without some further modification.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 23:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-general-column-total/m-p/410860#M152953</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2012-10-12T23:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong general column total</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-general-column-total/m-p/410861#M152954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it remains skiping over the first part of the if expression. Now the values for 'C' are cero like its total. Thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2012 11:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-general-column-total/m-p/410861#M152954</guid>
      <dc:creator />
      <dc:date>2012-10-13T11:53:37Z</dc:date>
    </item>
  </channel>
</rss>

