<?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 table sums/totals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-sums-totals/m-p/340408#M576674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick reply. However, the sample was a strip-down version of my real application trying to illustrate the problem. Unfortunately the calculations cannot be done at load time, since the columns in my real application are based on "set analysis" that depends on selections made by the user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Apr 2012 07:49:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-06T07:49:21Z</dc:date>
    <item>
      <title>Pivot table sums/totals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sums-totals/m-p/340406#M576672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot table where there are a number of groupings and I want totals for each grouping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, that the totals are using the expression to calculate the totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As opposed to a "Straight table" you cannot specify in a pivot table how the totals are calculated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In straight tables, you can specify "Sum" rather than "Expression" for the total calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyone who can help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is quite difficult to explain in few words, so I have included a sample with the problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Steen Olesen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 21:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sums-totals/m-p/340406#M576672</guid>
      <dc:creator />
      <dc:date>2012-04-05T21:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sums/totals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sums-totals/m-p/340407#M576673</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;Maybe it's not the perfect solution,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you need to do the expression on the script end the do Sum on the layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 21:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sums-totals/m-p/340407#M576673</guid>
      <dc:creator />
      <dc:date>2012-04-05T21:57:34Z</dc:date>
    </item>
    <item>
      <title>Pivot table sums/totals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sums-totals/m-p/340408#M576674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick reply. However, the sample was a strip-down version of my real application trying to illustrate the problem. Unfortunately the calculations cannot be done at load time, since the columns in my real application are based on "set analysis" that depends on selections made by the user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 07:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sums-totals/m-p/340408#M576674</guid>
      <dc:creator />
      <dc:date>2012-04-06T07:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sums/totals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sums-totals/m-p/340409#M576675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the below expression in your Pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(AGGR(max(Sales) * (Max(StockLevel)), ProductSubGroup, ProductGroup))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that is what you looking for right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dennis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 12:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sums-totals/m-p/340409#M576675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-06T12:20:06Z</dc:date>
    </item>
  </channel>
</rss>

