<?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: Distinct sum over rolling period in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Distinct-sum-over-rolling-period/m-p/1089360#M18190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look here: &lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2016 14:48:00 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-04-11T14:48:00Z</dc:date>
    <item>
      <title>Distinct sum over rolling period</title>
      <link>https://community.qlik.com/t5/App-Development/Distinct-sum-over-rolling-period/m-p/1089359#M18189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Dear community&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd be very greatful to receive some help, figuring out the following (for me) very challenging problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In broadcasting, we use the unit "&lt;STRONG&gt;Reach&lt;/STRONG&gt;" to describe the share of viewers who have seen (at least one minute) of a program during the last X days. So imagine a table with the following columns, each record representing one minute of one viewer watching my TV channel:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DateTime (date &amp;amp; hour &amp;amp; minute)&lt;/LI&gt;&lt;LI&gt;ViewerID (let's assume that we have a universe of 1000 viewers, each with a unique ID)&lt;/LI&gt;&lt;LI&gt;Weight (not all viewers have the same value. The sum(weight) for all viewers in the universe are 100%. The weights are slightly adjusted for all viewers every day to achieve this.)&lt;/LI&gt;&lt;LI&gt;ProgramName (e.g. "Star trek")&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During the last week (X=7), let's say Star trek aired a couple of times. But what is the "Reach"? What function can I use to get Qlik to tell me what share of viewers who have seen at least one minute of Star Trek during the last 7 days? (NB, since the weight is slightly changing every day, I need to use the average weight for each viewer over the 7 days.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking forward to seeing some bright ideas on this! Thanks a lot!&lt;/P&gt;&lt;P&gt;Tor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NB: I cannot use set analysis to filter out the last 7 days, because I need to show the development of Reach over a periode, hence the function needs to refer to the last 7 days (rolling).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 09:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Distinct-sum-over-rolling-period/m-p/1089359#M18189</guid>
      <dc:creator />
      <dc:date>2016-04-11T09:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct sum over rolling period</title>
      <link>https://community.qlik.com/t5/App-Development/Distinct-sum-over-rolling-period/m-p/1089360#M18190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look here: &lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 14:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Distinct-sum-over-rolling-period/m-p/1089360#M18190</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-04-11T14:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct sum over rolling period</title>
      <link>https://community.qlik.com/t5/App-Development/Distinct-sum-over-rolling-period/m-p/1089361#M18191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Marcus! With a bit of struggle, I finally solved this with AsOf-tables, as suggested by the article.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Distinct-sum-over-rolling-period/m-p/1089361#M18191</guid>
      <dc:creator />
      <dc:date>2016-04-19T15:45:59Z</dc:date>
    </item>
  </channel>
</rss>

