<?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: Aggregating averages -- aggr()? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregating-averages-aggr/m-p/429998#M488566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swuehl for coming back to me so quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are quite right but in an attempt to explain the problem I oversimplified my example. The link table is actually v large and I'm already loading it distinct. I will have another go at giving a more accurate example and get back to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2013 14:38:33 GMT</pubDate>
    <dc:creator>georgina_spary</dc:creator>
    <dc:date>2013-01-17T14:38:33Z</dc:date>
    <item>
      <title>Aggregating averages -- aggr()?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-averages-aggr/m-p/429996#M488564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello folks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am really stuck on this and was due to release the report today! so really hoping you can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached shows an average score for students, against a heirarchy of dimensions: student number, programme, department, faculty. Each student has only one score. Each student is studying 2 programmes: BI and one other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to avoid double-counting the students at Faculty level while showing an accurate figure at programme and student level. see attached for 2 failed versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 13:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-averages-aggr/m-p/429996#M488564</guid>
      <dc:creator>georgina_spary</dc:creator>
      <dc:date>2013-01-17T13:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating averages -- aggr()?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-averages-aggr/m-p/429997#M488565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Tariff)&lt;/P&gt;&lt;P&gt;/ Count(aggr( [Student Number]*[Valid Tariff Count],Faculty,Department, Programme, [Student Number]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt; Above is probably not what you want, I missed the part with the not-counting duplicate Student Numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you rework your data model so that the student number's tariff is a distinct table, I think your version A should match your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 13:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-averages-aggr/m-p/429997#M488565</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-17T13:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating averages -- aggr()?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-averages-aggr/m-p/429998#M488566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swuehl for coming back to me so quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are quite right but in an attempt to explain the problem I oversimplified my example. The link table is actually v large and I'm already loading it distinct. I will have another go at giving a more accurate example and get back to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 14:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-averages-aggr/m-p/429998#M488566</guid>
      <dc:creator>georgina_spary</dc:creator>
      <dc:date>2013-01-17T14:38:33Z</dc:date>
    </item>
  </channel>
</rss>

