<?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: Calculating rolling n-period totals with missing periods in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculating-rolling-n-period-totals-with-missing-periods/m-p/1283207#M26828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think a better solution might be to use &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Mar 2017 09:47:22 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-03-01T09:47:22Z</dc:date>
    <item>
      <title>Calculating rolling n-period totals with missing periods</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-rolling-n-period-totals-with-missing-periods/m-p/1283206#M26827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been researching how to implement in Qlik Sense what seems like a simple question on the surface but to date I have had no luck. I'm either overthinking it or simply way out of my depth on this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is quite simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Given a sales event I wish to sum the sales occurring from that date within the next n periods. Could be 7 days, 1 month etc.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many dates, in this instance they relate to store visits, many customers and many sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've had no luck using variations of the expressions similar to the below which are based on the post (&lt;A href="https://community.qlik.com/docs/DOC-9144"&gt;Set Analysis for Rolling Periods&lt;/A&gt;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Bill_Date={‘&amp;gt;=$(=Date(Bill_Date)+1))&amp;lt;=$(=Date(Bill_Date)+7))’}&amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally looking at excellent posts related to calculating rolling periods (&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4" title="https://community.qlik.com/docs/DOC-4"&gt;https://community.qlik.com/docs/DOC-4&lt;/A&gt;) and &lt;A href="https://community.qlik.com/qlik-blogpost/2787"&gt;Accumulative Sums&lt;/A&gt; all appear to assume that that period is present based on the next n entries in the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the data we are working with there may not be any sales within the date frame however there would be subsequent sales. Counting the next values using RangeSum() thus appear to not work or would likely give results calculated from outside the date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So at this point I am looking for a little guidance. Maybe I have already past the correct solution but haven't realized it or maybe there is a different area I should be looking. As always any direction would be appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 02:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-rolling-n-period-totals-with-missing-periods/m-p/1283206#M26827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-01T02:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating rolling n-period totals with missing periods</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-rolling-n-period-totals-with-missing-periods/m-p/1283207#M26828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think a better solution might be to use &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 09:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-rolling-n-period-totals-with-missing-periods/m-p/1283207#M26828</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-01T09:47:22Z</dc:date>
    </item>
  </channel>
</rss>

