<?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: Cumulative Quantity in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cumulative-Quantity-in-the-script/m-p/389003#M700537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *, (Alt(Previous(RollingQty),0)+Qty) AS RollingQty;&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Week,Qty&lt;/P&gt;&lt;P&gt;1,30&lt;/P&gt;&lt;P&gt;2,32&lt;/P&gt;&lt;P&gt;3,45&lt;/P&gt;&lt;P&gt;4,70&lt;/P&gt;&lt;P&gt;5,31];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 15:05:09 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2012-10-31T15:05:09Z</dc:date>
    <item>
      <title>Cumulative Quantity in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Quantity-in-the-script/m-p/389002#M700536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a cumulative total within the script and I can't recall how to do it. Essentially I want to create a new field to show the rolling total for the year, see the below example. I can do it within a chart but require it to be added as a new field in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ralph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Week&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Qty&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;P&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Rolling Qty&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;TD&gt;62&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;TD&gt;107&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;177&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;31&lt;/TD&gt;&lt;TD&gt;208&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 15:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Quantity-in-the-script/m-p/389002#M700536</guid>
      <dc:creator />
      <dc:date>2012-10-31T15:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Quantity in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Quantity-in-the-script/m-p/389003#M700537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *, (Alt(Previous(RollingQty),0)+Qty) AS RollingQty;&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Week,Qty&lt;/P&gt;&lt;P&gt;1,30&lt;/P&gt;&lt;P&gt;2,32&lt;/P&gt;&lt;P&gt;3,45&lt;/P&gt;&lt;P&gt;4,70&lt;/P&gt;&lt;P&gt;5,31];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 15:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Quantity-in-the-script/m-p/389003#M700537</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-10-31T15:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Quantity in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Quantity-in-the-script/m-p/389004#M700538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get a field not found error for RollingQty. For clarity in my example I want to create the Rolling Qty field, currently I only have week and Qty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ralph &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 15:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Quantity-in-the-script/m-p/389004#M700538</guid>
      <dc:creator />
      <dc:date>2012-10-31T15:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Quantity in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Quantity-in-the-script/m-p/389005#M700539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *, if(rowno()=1,Qty,Peek(RollingQty)+Qty) AS RollingQty&lt;/P&gt;&lt;P&gt;Inline [&lt;/P&gt;&lt;P&gt;Week,Qty&lt;/P&gt;&lt;P&gt;1,30&lt;/P&gt;&lt;P&gt;2,32&lt;/P&gt;&lt;P&gt;3,45&lt;/P&gt;&lt;P&gt;4,70&lt;/P&gt;&lt;P&gt;5,31];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 15:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Quantity-in-the-script/m-p/389005#M700539</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-31T15:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Quantity in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Quantity-in-the-script/m-p/389006#M700540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works brilliant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ralph &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 15:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Quantity-in-the-script/m-p/389006#M700540</guid>
      <dc:creator />
      <dc:date>2012-10-31T15:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Quantity in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Quantity-in-the-script/m-p/389007#M700541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check with this&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Load *, (Alt(Peek('RollingQty'),0)+Qty) AS RollingQty;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Load * Inline [&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Week,Qty&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;1,30&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;2,32&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;3,45&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;4,70&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;5,31];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 15:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Quantity-in-the-script/m-p/389007#M700541</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-10-31T15:41:49Z</dc:date>
    </item>
  </channel>
</rss>

