<?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 weight average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/weight-average/m-p/223354#M75888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I didn't understand. Wat is call_did? Anyways,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use aggregation, if u want to calculate the average score for each employee.&lt;/P&gt;&lt;P&gt;aggr(sum(scores),employee id).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jul 2010 14:43:52 GMT</pubDate>
    <dc:creator>syed_muzammil</dc:creator>
    <dc:date>2010-07-14T14:43:52Z</dc:date>
    <item>
      <title>weight average</title>
      <link>https://community.qlik.com/t5/QlikView/weight-average/m-p/223348#M75882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some score for each employee. Employee receives score from supervisors.&lt;/P&gt;&lt;P&gt;I want to receive such result (table or pivot table with 2 columns: employee and avg):&lt;/P&gt;&lt;P&gt;a: (4 + 15 + 2.5)/3 = 7.17&lt;/P&gt;&lt;P&gt;b: (21 + 19 + 10 + 10)/4 = 15&lt;/P&gt;&lt;P&gt;What expression should I use?&lt;/P&gt;&lt;P&gt;&lt;B&gt;SUM&lt;/B&gt;(&lt;B&gt;score&lt;/B&gt;)/&lt;B&gt;COUNT&lt;/B&gt;(&lt;B&gt;call_id&lt;/B&gt;) is not correct in my case&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 14:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/weight-average/m-p/223348#M75882</guid>
      <dc:creator />
      <dc:date>2010-07-14T14:09:57Z</dc:date>
    </item>
    <item>
      <title>weight average</title>
      <link>https://community.qlik.com/t5/QlikView/weight-average/m-p/223349#M75883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;im confused. what is it that you want to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 14:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/weight-average/m-p/223349#M75883</guid>
      <dc:creator />
      <dc:date>2010-07-14T14:15:30Z</dc:date>
    </item>
    <item>
      <title>weight average</title>
      <link>https://community.qlik.com/t5/QlikView/weight-average/m-p/223350#M75884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;see the attached example. You have to aggregate by employee and supervisor to get the right numbers.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 14:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/weight-average/m-p/223350#M75884</guid>
      <dc:creator />
      <dc:date>2010-07-14T14:22:08Z</dc:date>
    </item>
    <item>
      <title>weight average</title>
      <link>https://community.qlik.com/t5/QlikView/weight-average/m-p/223351#M75885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to calculate average for each employee and supervisor and then to calculate average for each employee.&lt;/P&gt;&lt;P&gt;Average score for each employee should be calculated as average for each supervisor and then average from these results.&lt;/P&gt;&lt;P&gt;For example, one supervisor gives score "1" nine times and the second supervisor gives score "10" one time. So the average should be&lt;/P&gt;&lt;P&gt;(1(average for 1st supervisor) + 10 (average for 2nd supervisor))/ 2 (count supervisors) = 5.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 14:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/weight-average/m-p/223351#M75885</guid>
      <dc:creator />
      <dc:date>2010-07-14T14:24:51Z</dc:date>
    </item>
    <item>
      <title>weight average</title>
      <link>https://community.qlik.com/t5/QlikView/weight-average/m-p/223352#M75886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rakitskiy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should change you expression in upper table to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(&lt;BR /&gt; aggr(&lt;BR /&gt; SUM(score)/COUNT(call_id), employee, supervisor&lt;BR /&gt; )&lt;BR /&gt;)&lt;BR /&gt;/&lt;BR /&gt;COUNT(distinct supervisor)&lt;/P&gt;&lt;P&gt;First you sum the SUM(score) / COUNT(call_id) with aggregate through employee and supervisor dimensions, then you divide it by count of distinct supervisors.&lt;/P&gt;&lt;P&gt;Is this the solution?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Miha&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 14:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/weight-average/m-p/223352#M75886</guid>
      <dc:creator />
      <dc:date>2010-07-14T14:33:14Z</dc:date>
    </item>
    <item>
      <title>weight average</title>
      <link>https://community.qlik.com/t5/QlikView/weight-average/m-p/223353#M75887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I need. Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 14:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/weight-average/m-p/223353#M75887</guid>
      <dc:creator />
      <dc:date>2010-07-14T14:33:49Z</dc:date>
    </item>
    <item>
      <title>weight average</title>
      <link>https://community.qlik.com/t5/QlikView/weight-average/m-p/223354#M75888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I didn't understand. Wat is call_did? Anyways,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use aggregation, if u want to calculate the average score for each employee.&lt;/P&gt;&lt;P&gt;aggr(sum(scores),employee id).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 14:43:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/weight-average/m-p/223354#M75888</guid>
      <dc:creator>syed_muzammil</dc:creator>
      <dc:date>2010-07-14T14:43:52Z</dc:date>
    </item>
  </channel>
</rss>

