<?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: How to calculate Sum of Means ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721864#M259172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2014 06:56:52 GMT</pubDate>
    <dc:creator>er_mohit</dc:creator>
    <dc:date>2014-07-07T06:56:52Z</dc:date>
    <item>
      <title>How to calculate Sum of Means ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721859#M259167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Help me write some expressions, attached is the sample document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first chart i.e. "Avg Mean Price Per Product" would be like&lt;/P&gt;&lt;P&gt;Sum(Mean price of all purchases of a customer)/Total Number of Customers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first chart i.e. "Avg Mean Price Per Product" would be like&lt;/P&gt;&lt;P&gt;Sum(Max price of all purchases of a customer)/Total Number of Customers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; There can be multiple purchases for a product against single customer. I have updated the document too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Mubbasher Khaliq (Multiple purchases for a product against single customer added)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 06:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721859#M259167</guid>
      <dc:creator />
      <dc:date>2014-07-07T06:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Sum of Means ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721860#M259168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to average per customer, then sum the averages, you should use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Aggr(Avg(Price),Customer))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 06:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721860#M259168</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-07-07T06:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Sum of Means ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721861#M259169</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;aggr() function can help you to calculate the expression for the aggregation level that differs from the chart dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 06:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721861#M259169</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-07-07T06:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Sum of Means ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721862#M259170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 06:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721862#M259170</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-07-07T06:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Sum of Means ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721863#M259171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have a look on RangeAvg() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 06:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721863#M259171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-07T06:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Sum of Means ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721864#M259172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 06:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721864#M259172</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2014-07-07T06:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Sum of Means ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721865#M259173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, This helped me a lot , but when I write this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If within Aggr function I use Sum/Count rather than Avg then the out put of Count is not right. As can be seen below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;Sum(Aggr(Count(1),Product))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Product Count Per Customer.png" class="jive-image" src="/legacyfs/online/61830_Product Count Per Customer.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why it is counting every product count against single customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desired Output:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Desired.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61831_Desired.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 08:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721865#M259173</guid>
      <dc:creator />
      <dc:date>2014-07-07T08:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Sum of Means ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721866#M259174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check my reply to above post. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 08:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721866#M259174</guid>
      <dc:creator />
      <dc:date>2014-07-07T08:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Sum of Means ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721867#M259175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should add Customer as dimension to aggr, otherwise you choose to calculate aggr() regardless of customer (aka total&amp;lt;&amp;gt; modifier).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the help about aggr() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 09:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721867#M259175</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-07-07T09:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Sum of Means ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721868#M259176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since QV can't choose the customer to show the result it takes the first one.&lt;/P&gt;&lt;P&gt;To make the aggr() working as total modifier you should add 'nodistinct', then QV repeats 25 for each customer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 09:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721868#M259176</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-07-07T09:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Sum of Means ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721869#M259177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks alot, It solved my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 09:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-Sum-of-Means/m-p/721869#M259177</guid>
      <dc:creator />
      <dc:date>2014-07-07T09:37:41Z</dc:date>
    </item>
  </channel>
</rss>

