<?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: Can you do a  different aggregate calculation in the total  of a pivot table . in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-you-do-a-different-aggregate-calculation-in-the-total-of-a/m-p/501735#M556487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oliver,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the pivot table doesn't have the option to change the Total mode of the expressions in the properties dialog like the straight table, you will have to do that in your expressions. If it's just a simple average of the calculations you can achieve that using the AGGR function (advanced aggregation). For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(aggr(sum(Value),Dimension))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need more information,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2013 15:34:34 GMT</pubDate>
    <dc:creator>cesaraccardi</dc:creator>
    <dc:date>2013-07-19T15:34:34Z</dc:date>
    <item>
      <title>Can you do a  different aggregate calculation in the total  of a pivot table .</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-do-a-different-aggregate-calculation-in-the-total-of-a/m-p/501732#M556484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you do a&amp;nbsp; different aggregate calculation in the total&amp;nbsp; of a pivot table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table that has a calculation as the measure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to have the total as an avg of the rows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 15:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-do-a-different-aggregate-calculation-in-the-total-of-a/m-p/501732#M556484</guid>
      <dc:creator />
      <dc:date>2013-07-19T15:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can you do a  different aggregate calculation in the total  of a pivot table .</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-do-a-different-aggregate-calculation-in-the-total-of-a/m-p/501733#M556485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=if( Dimensionality() = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , sum(Qty)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , avg(Qty)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 15:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-do-a-different-aggregate-calculation-in-the-total-of-a/m-p/501733#M556485</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2013-07-19T15:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can you do a  different aggregate calculation in the total  of a pivot table .</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-do-a-different-aggregate-calculation-in-the-total-of-a/m-p/501734#M556486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the dimensionality() function. Something like if(dimensionality()=0, avg(aggr(sum(Sales),Product)),sum(Sales)) in a pivot table that has Product as dimension and Sales as a measure for the calculations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 15:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-do-a-different-aggregate-calculation-in-the-total-of-a/m-p/501734#M556486</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-19T15:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can you do a  different aggregate calculation in the total  of a pivot table .</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-do-a-different-aggregate-calculation-in-the-total-of-a/m-p/501735#M556487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oliver,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the pivot table doesn't have the option to change the Total mode of the expressions in the properties dialog like the straight table, you will have to do that in your expressions. If it's just a simple average of the calculations you can achieve that using the AGGR function (advanced aggregation). For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(aggr(sum(Value),Dimension))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need more information,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 15:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-do-a-different-aggregate-calculation-in-the-total-of-a/m-p/501735#M556487</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2013-07-19T15:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can you do a  different aggregate calculation in the total  of a pivot table .</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-do-a-different-aggregate-calculation-in-the-total-of-a/m-p/501736#M556488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my calc is a little different&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if (RegMonth =ActivityPeriod30,200,sum(Rev))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the resulting sum&amp;nbsp; will always be the else condition .&lt;/P&gt;&lt;P&gt;Should the if condition be in&amp;nbsp; set analysis . How would the calculation be written?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 16:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-do-a-different-aggregate-calculation-in-the-total-of-a/m-p/501736#M556488</guid>
      <dc:creator />
      <dc:date>2013-10-08T16:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can you do a  different aggregate calculation in the total  of a pivot table .</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-do-a-different-aggregate-calculation-in-the-total-of-a/m-p/501737#M556489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select COUNT (*) ,MONTH(c.created_at)&amp;nbsp; &lt;/P&gt;&lt;P&gt;from tbStageF_content&amp;nbsp; (nolock) c&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;creator_source=100&lt;/P&gt;&lt;P&gt;and&amp;nbsp; year(c.created_at) =2013&lt;/P&gt;&lt;P&gt;and MONTH(c.created_at) &amp;gt;= 1&lt;/P&gt;&lt;P&gt;group by&lt;/P&gt;&lt;P&gt;MONTH(c.created_at)&lt;/P&gt;&lt;P&gt;order by 2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 17:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-do-a-different-aggregate-calculation-in-the-total-of-a/m-p/501737#M556489</guid>
      <dc:creator />
      <dc:date>2013-10-08T17:41:47Z</dc:date>
    </item>
  </channel>
</rss>

