<?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: Subtotals for multiple expressions in pivot table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtotals-for-multiple-expressions-in-pivot-table/m-p/580787#M215779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you might have to use agggregate function for the dimension where you want the total . For example if you want the total to be at month. then your expression would be sum(aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ForecastAmt*ForecastProbability&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&lt;/SPAN&gt;,Month)). If this does solve pleae post the QVW doc with some sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2014 16:33:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-02-27T16:33:27Z</dc:date>
    <item>
      <title>Subtotals for multiple expressions in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-for-multiple-expressions-in-pivot-table/m-p/580784#M215776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="pivttable.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53975_pivttable.png" style="width: 620px; height: 282px;" /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table for annual sales forecasts, showing the 12 months of the year as the horizontal dimension, and the expression "sum(ForecastAmt)". I've been asked to add a second expression, which is "Sum(ForecastAmt)*ForecastProbability".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My pivot table shows correct sums for "Annual Total" at the far right, and the Monthly Totals for the first expression are correct. However, the monthly totals for the new expression don't show up, nor do the annual totals add up for the second expression to a grand total. Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 15:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-for-multiple-expressions-in-pivot-table/m-p/580784#M215776</guid>
      <dc:creator />
      <dc:date>2014-02-27T15:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals for multiple expressions in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-for-multiple-expressions-in-pivot-table/m-p/580785#M215777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ForecastAmt*ForecastProbability&lt;/SPAN&gt;).&amp;nbsp; &lt;/P&gt;&lt;P&gt;The whole expression needs to be aggregated. In this case its sum().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 16:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-for-multiple-expressions-in-pivot-table/m-p/580785#M215777</guid>
      <dc:creator />
      <dc:date>2014-02-27T16:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals for multiple expressions in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-for-multiple-expressions-in-pivot-table/m-p/580786#M215778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, AJ! Worked perfectly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 16:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-for-multiple-expressions-in-pivot-table/m-p/580786#M215778</guid>
      <dc:creator />
      <dc:date>2014-02-27T16:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals for multiple expressions in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-for-multiple-expressions-in-pivot-table/m-p/580787#M215779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you might have to use agggregate function for the dimension where you want the total . For example if you want the total to be at month. then your expression would be sum(aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ForecastAmt*ForecastProbability&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&lt;/SPAN&gt;,Month)). If this does solve pleae post the QVW doc with some sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 16:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-for-multiple-expressions-in-pivot-table/m-p/580787#M215779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-27T16:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals for multiple expressions in pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-for-multiple-expressions-in-pivot-table/m-p/580788#M215780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin: try this expression for your 'ProbAmt'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(Sum(Amount) * Prob, [Opp Name])).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the simple example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="PivotTest.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/53981_PivotTest.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 16:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-for-multiple-expressions-in-pivot-table/m-p/580788#M215780</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2014-02-27T16:46:27Z</dc:date>
    </item>
  </channel>
</rss>

