<?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: Pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/743336#M1042877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a 'sum of rows in pivot table' topic in the product HELP under the aggr() function.&amp;nbsp; Also attached about 1/2 way down. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aggr() does what is called 'Advanced Aggregation'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It involves doing multiple aggregations... so if i wanted to sum up the max sales values for every region, year combination i would write something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(Sales)&amp;nbsp; -&amp;gt; evaluates max(Sales) at dimensional context of chart. The grand total would be the biggest max value of the dimension values / intersections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(&amp;nbsp; Max(Sales) , Region,Year)&amp;nbsp; -&amp;gt; same as above if the chart has region and year as the sole dimensions. Again&amp;nbsp; the grand total would be the biggest max.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&amp;nbsp; aggr(&amp;nbsp; Max(Sales) , Region,Year)&amp;nbsp; -&amp;gt;&amp;nbsp; sums up the maxes , so that outside of the dimensional context of Region and Year , you are adding up the maxes for a sum of maxes (sum of rows)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Nov 2014 16:21:44 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-11-28T16:21:44Z</dc:date>
    <item>
      <title>Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/743334#M1042875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how do I get the sum of the values of the rows in a PivotTable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 16:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/743334#M1042875</guid>
      <dc:creator />
      <dc:date>2014-11-28T16:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/743335#M1042876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try writing a different expression for the sum of the rows using dimensionality() condition.&lt;/P&gt;&lt;P&gt;The native Totals of the PivotTable will only return the total of the aggregation (unlike the sum, avg, sum of rows which are allowed options in a straight table)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 16:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/743335#M1042876</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-11-28T16:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/743336#M1042877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a 'sum of rows in pivot table' topic in the product HELP under the aggr() function.&amp;nbsp; Also attached about 1/2 way down. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aggr() does what is called 'Advanced Aggregation'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It involves doing multiple aggregations... so if i wanted to sum up the max sales values for every region, year combination i would write something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(Sales)&amp;nbsp; -&amp;gt; evaluates max(Sales) at dimensional context of chart. The grand total would be the biggest max value of the dimension values / intersections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(&amp;nbsp; Max(Sales) , Region,Year)&amp;nbsp; -&amp;gt; same as above if the chart has region and year as the sole dimensions. Again&amp;nbsp; the grand total would be the biggest max.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&amp;nbsp; aggr(&amp;nbsp; Max(Sales) , Region,Year)&amp;nbsp; -&amp;gt;&amp;nbsp; sums up the maxes , so that outside of the dimensional context of Region and Year , you are adding up the maxes for a sum of maxes (sum of rows)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 16:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table/m-p/743336#M1042877</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-11-28T16:21:44Z</dc:date>
    </item>
  </channel>
</rss>

