<?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 Pivot total value different from sum of rows value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864010#M302398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm not very experienced in QlikView and I need help to test a formula to calculate annual sales from sales data of quarter&lt;/P&gt;&lt;P&gt;The problem is that pivot total value is different from sum of rows value&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;for example&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in the grid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="grid.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/88927_grid.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;28036 + 1280 is different from total 29193&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2015 11:03:35 GMT</pubDate>
    <dc:creator>paolojolly</dc:creator>
    <dc:date>2015-06-10T11:03:35Z</dc:date>
    <item>
      <title>Pivot total value different from sum of rows value</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864010#M302398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm not very experienced in QlikView and I need help to test a formula to calculate annual sales from sales data of quarter&lt;/P&gt;&lt;P&gt;The problem is that pivot total value is different from sum of rows value&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;for example&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in the grid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="grid.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/88927_grid.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;28036 + 1280 is different from total 29193&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 11:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864010#M302398</guid>
      <dc:creator>paolojolly</dc:creator>
      <dc:date>2015-06-10T11:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot total value different from sum of rows value</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864011#M302399</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;Try AGGR()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;Sum(AGGR(SUM(YourExpression),Dimesion))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 11:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864011#M302399</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-06-10T11:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot total value different from sum of rows value</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864012#M302400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I tried your solution but not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 12:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864012#M302400</guid>
      <dc:creator>paolojolly</dc:creator>
      <dc:date>2015-06-10T12:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot total value different from sum of rows value</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864013#M302401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the numbers are different - as they &lt;EM&gt;&lt;STRONG style="text-decoration: underline;"&gt;should&lt;/STRONG&gt;&lt;/EM&gt; be: You have a fairly complex formula in PONDERATA TRIM that contains a ratio between two aggregations, like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum( &amp;lt;calculation1&amp;gt; ) / Sum( &amp;lt;calculation2&amp;gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This formula is calculated first for "ITALIA", then for "EXPORT", and finally for the entire scope. Such a calculation is not linear so there is no reason that the calculation for the entire scope should be the sum of the calculations for the smaller scopes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compare with a calculation of gross margin in percent:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum( GrossMarginInDollars ) / Sum( TurnoverInDollars )&lt;/P&gt;&lt;P&gt;There is no reason that this number for the entire company should be the sum of the different departments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 14:23:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864013#M302401</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-06-10T14:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot total value different from sum of rows value</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864014#M302402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I understand&lt;BR /&gt;Can you suggest me a way to have as total the sum of the values of the lines? In my example I would like to have 29316?&lt;/P&gt;&lt;P&gt;Is there&amp;nbsp; some other formula to consider in forecact result the weight of the quarter?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 08:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864014#M302402</guid>
      <dc:creator>paolojolly</dc:creator>
      <dc:date>2015-06-11T08:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot total value different from sum of rows value</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864015#M302403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simplest way is to do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Change the chart type to a straight table (Properties - General - The lower table icon)&lt;/LI&gt;&lt;LI&gt;Change the Total mode to "Sum of Rows" (Properties - Expressions - Total mode)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative way, is to change the formula to an Aggr() function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum( Aggr( &amp;lt;your current expression&amp;gt; , C_MERCATO_STORICO,D_DIREZIONE_FLD ))&lt;/P&gt;&lt;P&gt;This however will affect performance negatively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 08:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864015#M302403</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-06-11T08:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot total value different from sum of rows value</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864016#M302404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I will follow&lt;/SPAN&gt; &lt;SPAN class="hps alt-edited"&gt;your input&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 10:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-total-value-different-from-sum-of-rows-value/m-p/864016#M302404</guid>
      <dc:creator>paolojolly</dc:creator>
      <dc:date>2015-06-12T10:40:37Z</dc:date>
    </item>
  </channel>
</rss>

