<?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 Running total based on weeks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Running-total-based-on-weeks/m-p/173062#M42395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the logic to create a complex report with running total. Your ideas/suggestions are welcome. I have the following fields:&lt;/P&gt;&lt;P&gt;Year: which has values as 2009, 2010, 2011&lt;/P&gt;&lt;P&gt;Week: for 2009-52 weeks, for 2010-52 weeks and for 2011- 11 weeks (completed so far)&lt;/P&gt;&lt;P&gt;Month: Jan-Dec&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;I want to create a report which will show the RUNNING total of sales based on weeks i.e. 1 week sales, 10 week sales, 35 week sales and 52 week sales.&lt;/P&gt;&lt;P&gt;Below is the example to better understand the situation &lt;B style="mso-bidi-font-weight: normal;"&gt;supposing we are calculating 35 weeks sales&lt;/B&gt;:&lt;/P&gt;&lt;P&gt;For this year, we have completed 11 weeks, so the sales should be (sum of sales of 11 weeks from 2011) + (Sum of sales of 24 weeks from 2010)&lt;/P&gt;&lt;P&gt;In next week, when we will complete 12 Weeks, sales should be (sum of sales of 12 weeks from 2011)+ (Sum of sales of 23 weeks from 2010)&lt;/P&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;Supposing we are calculating 10 weeks sales:&lt;/P&gt;&lt;P&gt;For this year, we have completed 11 weeks, so the sales should be (sum of sales of 10 weeks from 2011)&lt;/P&gt;&lt;P&gt;Below is the mock-up of the report which is needed.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3869_sourceID:3869" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know your suggestions, ideas to achieve this.&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2011 08:39:43 GMT</pubDate>
    <dc:creator>montubhardwaj</dc:creator>
    <dc:date>2011-03-22T08:39:43Z</dc:date>
    <item>
      <title>Running total based on weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Running-total-based-on-weeks/m-p/173062#M42395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the logic to create a complex report with running total. Your ideas/suggestions are welcome. I have the following fields:&lt;/P&gt;&lt;P&gt;Year: which has values as 2009, 2010, 2011&lt;/P&gt;&lt;P&gt;Week: for 2009-52 weeks, for 2010-52 weeks and for 2011- 11 weeks (completed so far)&lt;/P&gt;&lt;P&gt;Month: Jan-Dec&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;I want to create a report which will show the RUNNING total of sales based on weeks i.e. 1 week sales, 10 week sales, 35 week sales and 52 week sales.&lt;/P&gt;&lt;P&gt;Below is the example to better understand the situation &lt;B style="mso-bidi-font-weight: normal;"&gt;supposing we are calculating 35 weeks sales&lt;/B&gt;:&lt;/P&gt;&lt;P&gt;For this year, we have completed 11 weeks, so the sales should be (sum of sales of 11 weeks from 2011) + (Sum of sales of 24 weeks from 2010)&lt;/P&gt;&lt;P&gt;In next week, when we will complete 12 Weeks, sales should be (sum of sales of 12 weeks from 2011)+ (Sum of sales of 23 weeks from 2010)&lt;/P&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;Supposing we are calculating 10 weeks sales:&lt;/P&gt;&lt;P&gt;For this year, we have completed 11 weeks, so the sales should be (sum of sales of 10 weeks from 2011)&lt;/P&gt;&lt;P&gt;Below is the mock-up of the report which is needed.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3869_sourceID:3869" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know your suggestions, ideas to achieve this.&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 08:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-total-based-on-weeks/m-p/173062#M42395</guid>
      <dc:creator>montubhardwaj</dc:creator>
      <dc:date>2011-03-22T08:39:43Z</dc:date>
    </item>
  </channel>
</rss>

