<?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 Sum 3 past months (into script) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-3-past-months-into-script/m-p/223969#M76429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Did you test the Previous function?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;Test:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Product , &lt;P&gt;Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;FROM&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Prueba.xlsx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;I&gt;&lt;/I&gt;&lt;P style="font-style: italic"&gt;Final:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Load&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Product = Previous(Product),&lt;/P&gt;&lt;P&gt;RangeSum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Amount,Previous(Amount),Previous(Previous(Amount))), Amount) &lt;B&gt;as&lt;/B&gt; Acc&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Resident&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Drop&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;Table&lt;/B&gt; &lt;P&gt;&lt;I&gt;Test;&lt;/I&gt;&lt;/P&gt;Test;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Oct 2009 00:54:16 GMT</pubDate>
    <dc:creator>GabrielAraya</dc:creator>
    <dc:date>2009-10-24T00:54:16Z</dc:date>
    <item>
      <title>Sum 3 past months (into script)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-3-past-months-into-script/m-p/223968#M76428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 149pt; border-collapse: collapse;" width="199"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 50pt; mso-width-source: userset; mso-width-alt: 2450;" width="67" /&gt;&lt;COL style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;" width="68" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="width: 48pt; height: 15pt; background-color: transparent; border: #f0f0f0;" width="64"&gt;Product&lt;/TD&gt;&lt;TD style="width: 50pt; background-color: transparent; border: #f0f0f0;" width="67"&gt;Date&lt;/TD&gt;&lt;TD style="width: 51pt; background-color: transparent; border: #f0f0f0;" width="68"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;1/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;2/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;35&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;3/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;562&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;4/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;5562&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;5/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;5423&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;6/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;7/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;8/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;466&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;9/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;216&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;10/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;129&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;11/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;2654&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;12/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;265&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product B&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;1/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;3235&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product B&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;2/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;2362&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product B&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;3/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;232&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product B&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;4/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;454&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product B&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;5/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;569&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product B&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;6/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;57&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product B&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;7/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product B&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;8/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;489&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product B&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;9/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;5489&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product B&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;10/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;5121&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to run a script in order to accumulate subtotal for the last 3 monhts, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 245pt; border-collapse: collapse;" width="327"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 50pt; mso-width-source: userset; mso-width-alt: 2450;" width="67" /&gt;&lt;COL style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;" width="68" /&gt;&lt;COL span="2" style="width: 48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="width: 48pt; height: 15pt; background-color: transparent; border: #f0f0f0;" width="64"&gt;Product&lt;/TD&gt;&lt;TD style="width: 50pt; background-color: transparent; border: #f0f0f0;" width="67"&gt;Date&lt;/TD&gt;&lt;TD style="width: 51pt; background-color: transparent; border: #f0f0f0;" width="68"&gt;Sales&lt;/TD&gt;&lt;TD style="width: 48pt; background-color: transparent; border: #f0f0f0;" width="64"&gt;&lt;/TD&gt;&lt;TD style="width: 48pt; background-color: transparent; border: #f0f0f0;" width="64"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;1/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;200&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #f0f0f0;"&gt;Sum Jan+Dec(2007)+Nov(2007)&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;2/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;35&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;6159&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;3/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;562&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;11547&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;4/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;5562&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;11017&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;5/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;5423&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;5487&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;6/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;32&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;530&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;7/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;32&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;714&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #f0f0f0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;8/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;466&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;811&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #f0f0f0;"&gt;Sum Aug+Jul+Jun (3month acculumation)&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="height: 15pt; background-color: transparent; border: #f0f0f0;"&gt;Product A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="background-color: transparent; border: #f0f0f0;"&gt;9/1/2008&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;216&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #f0f0f0;"&gt;2999&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #f0f0f0;"&gt;Sum Sep +Aug+Jul (3monht accumulation)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;-------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;LOAD Product,&lt;BR /&gt; Date,&lt;BR /&gt; Year(Date) as Year,&lt;BR /&gt; Month(Date) as Month,&lt;BR /&gt; date(Date, 'MMM-YYYY' ) as MonthYear,&lt;BR /&gt; MonthName(Date) as MonthName,&lt;BR /&gt; Sales&lt;BR /&gt;FROM&lt;BR /&gt;//I need to run a script in order to accumulate subtotal for the last 3 monhts, like this:&lt;BR /&gt;//Jan2008 would be the SUM of Jan2008+Dec2007+Nov2007&lt;BR /&gt;//Feb2008 '' '' '' '' '' Feb2008+Jan2008+Dec2007&lt;BR /&gt;//Note that I have 2 different products&lt;/P&gt;&lt;P&gt;QVD file attached.&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Oct 2009 00:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-3-past-months-into-script/m-p/223968#M76428</guid>
      <dc:creator />
      <dc:date>2009-10-24T00:12:58Z</dc:date>
    </item>
    <item>
      <title>Sum 3 past months (into script)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-3-past-months-into-script/m-p/223969#M76429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Did you test the Previous function?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;Test:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Product , &lt;P&gt;Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;FROM&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Prueba.xlsx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;I&gt;&lt;/I&gt;&lt;P style="font-style: italic"&gt;Final:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Load&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Product = Previous(Product),&lt;/P&gt;&lt;P&gt;RangeSum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Amount,Previous(Amount),Previous(Previous(Amount))), Amount) &lt;B&gt;as&lt;/B&gt; Acc&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Resident&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Drop&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;Table&lt;/B&gt; &lt;P&gt;&lt;I&gt;Test;&lt;/I&gt;&lt;/P&gt;Test;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Oct 2009 00:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-3-past-months-into-script/m-p/223969#M76429</guid>
      <dc:creator>GabrielAraya</dc:creator>
      <dc:date>2009-10-24T00:54:16Z</dc:date>
    </item>
  </channel>
</rss>

