<?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 Average calculation help? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-calculation-help/m-p/248261#M94500</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;I'm not sure how to create an expression like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the top left table/chart I get an Average of 92%-Avg([Actual Value]), but this is not working it out as expected.&lt;/P&gt;&lt;P&gt;It should be 91%. Worked out as follows : Per Subject: (Actual Value * Number of Respondants) / Total Number of respondants ie.&lt;/P&gt;&lt;P&gt;(0.95*135)/785 = 91.% (Biological Sciences)&lt;/P&gt;&lt;P&gt;Then doing an average of all of these calculations for the Question...In this case, Question 1.&lt;/P&gt;&lt;P&gt;I've illustrated this in the attached excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I basically want to be able to create a Radar chart, with Questions and these averages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2011 22:05:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-08T22:05:40Z</dc:date>
    <item>
      <title>Average calculation help?</title>
      <link>https://community.qlik.com/t5/QlikView/Average-calculation-help/m-p/248261#M94500</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;I'm not sure how to create an expression like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the top left table/chart I get an Average of 92%-Avg([Actual Value]), but this is not working it out as expected.&lt;/P&gt;&lt;P&gt;It should be 91%. Worked out as follows : Per Subject: (Actual Value * Number of Respondants) / Total Number of respondants ie.&lt;/P&gt;&lt;P&gt;(0.95*135)/785 = 91.% (Biological Sciences)&lt;/P&gt;&lt;P&gt;Then doing an average of all of these calculations for the Question...In this case, Question 1.&lt;/P&gt;&lt;P&gt;I've illustrated this in the attached excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I basically want to be able to create a Radar chart, with Questions and these averages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 22:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-calculation-help/m-p/248261#M94500</guid>
      <dc:creator />
      <dc:date>2011-09-08T22:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Average calculation help?</title>
      <link>https://community.qlik.com/t5/QlikView/Average-calculation-help/m-p/248262#M94501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you have a spreadsheet error.&amp;nbsp; You're calculating 9.1062%, not the desired 91.062%.&amp;nbsp; It's hard to see the error because you have exactly 10 records, so it's only off a decimal place instead of messing up any digits.&amp;nbsp; I believe you should be doing a sum, not an average.&amp;nbsp; You've already handled the average (and made it a weighted average) by dividing by 785.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I think you want is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sum(aggr([Actual value]*[Number of Respondents],[Question number],[Institution],[Subject],[Level]))/sum([Number of Respondents])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It produces 91.062%, in any case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 23:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-calculation-help/m-p/248262#M94501</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-09-08T23:07:12Z</dc:date>
    </item>
  </channel>
</rss>

