<?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: Rolling up Averages in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-up-Averages/m-p/801384#M282844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this: avg(aggr( count(followers) * count(tweets),party))&lt;/P&gt;&lt;P&gt;If not, please post a qlikview document with enough data to calculate some correct results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Mar 2015 18:07:51 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-03-13T18:07:51Z</dc:date>
    <item>
      <title>Rolling up Averages</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-up-Averages/m-p/801383#M282843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got a problem around a two-stage calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;People and parties. How many followers do they have on Twitter? I get Follower Data at a &lt;EM&gt;Tweet level&lt;/EM&gt; (important).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maxstring(followers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives me a correct calculation for &lt;EM&gt;one person's &lt;/EM&gt;followers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I roll that up to a party level? At the moment it is being distorted by the number of tweets a user sends. For example, if person A has 100 followers and person B has 10 followers, the average should be 55. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT if person B tweets 10 times and person A tweets once, the average is 10*(10 followers) + 1*(100 followers) = 200 followers, divided by (10+1)=11 tweets. So the average comes out at 18. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 16:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-up-Averages/m-p/801383#M282843</guid>
      <dc:creator />
      <dc:date>2015-03-13T16:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling up Averages</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-up-Averages/m-p/801384#M282844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this: avg(aggr( count(followers) * count(tweets),party))&lt;/P&gt;&lt;P&gt;If not, please post a qlikview document with enough data to calculate some correct results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 18:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-up-Averages/m-p/801384#M282844</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-13T18:07:51Z</dc:date>
    </item>
  </channel>
</rss>

