<?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: Calculate Cumulative Sales in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-Cumulative-Sales-in-Script/m-p/710440#M255932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duplicate post &lt;A href="https://community.qlik.com/thread/139746"&gt;Cumulative total in script&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 13:18:10 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2014-10-28T13:18:10Z</dc:date>
    <item>
      <title>Calculate Cumulative Sales in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Cumulative-Sales-in-Script/m-p/710436#M255928</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;I am trying to get the cumulative sales per Booking Date per Service Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="548"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="170"&gt;Service Month&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="118"&gt;Booking Date&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="117"&gt;Sales&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="143"&gt;Cumulative Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="17" style="border-top: none;"&gt;Jul-14&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top: none; border-left: none;"&gt;2014-01-15&lt;/TD&gt;&lt;TD align="right" class="xl91" style="border-top: none; border-left: none;"&gt;851&lt;/TD&gt;&lt;TD align="right" class="xl91" style="border-top: none; border-left: none;"&gt;851&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17"&gt;Jul-14&lt;/TD&gt;&lt;TD align="right" class="xl80" style="border-left: none;"&gt;2014-02-01&lt;/TD&gt;&lt;TD align="right" class="xl92" style="border-left: none;"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl92" style="border-left: none;"&gt;951&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17"&gt;Jul-14&lt;/TD&gt;&lt;TD align="right" class="xl80" style="border-left: none;"&gt;2014-04-10&lt;/TD&gt;&lt;TD align="right" class="xl92" style="border-left: none;"&gt;150&lt;/TD&gt;&lt;TD align="right" class="xl92" style="border-left: none;"&gt;1101&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17"&gt;Jul-14&lt;/TD&gt;&lt;TD align="right" class="xl80" style="border-left: none;"&gt;2014-07-15&lt;/TD&gt;&lt;TD align="right" class="xl92" style="border-left: none;"&gt;292&lt;/TD&gt;&lt;TD align="right" class="xl92" style="border-left: none;"&gt;1393&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl69" height="17"&gt;Jul-14&lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-left: none;"&gt;2014-07-18&lt;/TD&gt;&lt;TD align="right" class="xl93" style="border-left: none;"&gt;356&lt;/TD&gt;&lt;TD align="right" class="xl93" style="border-left: none;"&gt;1749&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl70" height="17" style="border-top: none;"&gt;Aug-14&lt;/TD&gt;&lt;TD align="right" class="xl82" style="border-top: none; border-left: none;"&gt;2014-03-23&lt;/TD&gt;&lt;TD align="right" class="xl94" style="border-top: none; border-left: none;"&gt;659&lt;/TD&gt;&lt;TD align="right" class="xl94" style="border-top: none; border-left: none;"&gt;659&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl71" height="17"&gt;Aug-14&lt;/TD&gt;&lt;TD align="right" class="xl83" style="border-left: none;"&gt;2014-08-23&lt;/TD&gt;&lt;TD align="right" class="xl95" style="border-left: none;"&gt;784&lt;/TD&gt;&lt;TD align="right" class="xl95" style="border-left: none;"&gt;1443&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl71" height="17"&gt;Aug-14&lt;/TD&gt;&lt;TD align="right" class="xl83" style="border-left: none;"&gt;2014-08-25&lt;/TD&gt;&lt;TD align="right" class="xl95" style="border-left: none;"&gt;254&lt;/TD&gt;&lt;TD align="right" class="xl95" style="border-left: none;"&gt;1697&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl72" height="17"&gt;Aug-14&lt;/TD&gt;&lt;TD align="right" class="xl84" style="border-left: none;"&gt;2014-08-28&lt;/TD&gt;&lt;TD align="right" class="xl96" style="border-left: none;"&gt;169&lt;/TD&gt;&lt;TD align="right" class="xl96" style="border-left: none;"&gt;1866&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl73" height="17" style="border-top: none;"&gt;Sep-14&lt;/TD&gt;&lt;TD align="right" class="xl85" style="border-top: none; border-left: none;"&gt;2014-04-19&lt;/TD&gt;&lt;TD align="right" class="xl97" style="border-top: none; border-left: none;"&gt;32&lt;/TD&gt;&lt;TD align="right" class="xl97" style="border-top: none; border-left: none;"&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="17"&gt;Sep-14&lt;/TD&gt;&lt;TD align="right" class="xl86" style="border-left: none;"&gt;2014-05-12&lt;/TD&gt;&lt;TD align="right" class="xl98" style="border-left: none;"&gt;524&lt;/TD&gt;&lt;TD align="right" class="xl98" style="border-left: none;"&gt;556&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="17"&gt;Sep-14&lt;/TD&gt;&lt;TD align="right" class="xl86" style="border-left: none;"&gt;2014-05-28&lt;/TD&gt;&lt;TD align="right" class="xl98" style="border-left: none;"&gt;94&lt;/TD&gt;&lt;TD align="right" class="xl98" style="border-left: none;"&gt;650&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl74" height="17"&gt;Sep-14&lt;/TD&gt;&lt;TD align="right" class="xl86" style="border-left: none;"&gt;2014-08-09&lt;/TD&gt;&lt;TD align="right" class="xl98" style="border-left: none;"&gt;863&lt;/TD&gt;&lt;TD align="right" class="xl98" style="border-left: none;"&gt;1513&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl75" height="17"&gt;Sep-14&lt;/TD&gt;&lt;TD align="right" class="xl87" style="border-left: none;"&gt;2014-09-21&lt;/TD&gt;&lt;TD align="right" class="xl99" style="border-left: none;"&gt;97&lt;/TD&gt;&lt;TD align="right" class="xl99" style="border-left: none;"&gt;1610&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl76" height="17" style="border-top: none;"&gt;Oct-14&lt;/TD&gt;&lt;TD align="right" class="xl88" style="border-top: none; border-left: none;"&gt;2014-10-01&lt;/TD&gt;&lt;TD align="right" class="xl100" style="border-top: none; border-left: none;"&gt;899&lt;/TD&gt;&lt;TD align="right" class="xl100" style="border-top: none; border-left: none;"&gt;899&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl77" height="17"&gt;Oct-14&lt;/TD&gt;&lt;TD align="right" class="xl89" style="border-left: none;"&gt;2014-10-13&lt;/TD&gt;&lt;TD align="right" class="xl101" style="border-left: none;"&gt;966&lt;/TD&gt;&lt;TD align="right" class="xl101" style="border-left: none;"&gt;1865&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl78" height="17"&gt;Oct-14&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-left: none;"&gt;2014-10-16&lt;/TD&gt;&lt;TD align="right" class="xl102" style="border-left: none;"&gt;444&lt;/TD&gt;&lt;TD align="right" class="xl102" style="border-left: none;"&gt;2309&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get field 'Cumulative Sales' ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Magen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 11:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Cumulative-Sales-in-Script/m-p/710436#M255928</guid>
      <dc:creator />
      <dc:date>2014-10-28T11:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Cumulative Sales in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Cumulative-Sales-in-Script/m-p/710437#M255929</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;try this it would be helpful to you&lt;/P&gt;&lt;P&gt;Load *,numsum(Sales+peek([Cumm Sales]) as [Cumm Sales]&lt;/P&gt;&lt;P&gt;resident Table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 12:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Cumulative-Sales-in-Script/m-p/710437#M255929</guid>
      <dc:creator />
      <dc:date>2014-10-28T12:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Cumulative Sales in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Cumulative-Sales-in-Script/m-p/710438#M255930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;tmp:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Service Month], date(date#([Booking Date],'YYYY-MM-DD')) as [Booking Date], Sales, [Cumulative Sales]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="139744" data-objecttype="1" href="http://community.qlik.com/thread/139744"&gt;http://community.qlik.com/thread/139744&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if(peek([Service Month])&amp;lt;&amp;gt;[Service Month], Sales, Sales + peek(NewCumSales)) as NewCumSales&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident tmp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;order by [Service Month], [Booking Date];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table tmp;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 12:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Cumulative-Sales-in-Script/m-p/710438#M255930</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-28T12:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Cumulative Sales in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Cumulative-Sales-in-Script/m-p/710439#M255931</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 for my solution in the below link.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/139746"&gt;http://community.qlik.com/thread/139746&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 13:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Cumulative-Sales-in-Script/m-p/710439#M255931</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-10-28T13:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Cumulative Sales in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Cumulative-Sales-in-Script/m-p/710440#M255932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duplicate post &lt;A href="https://community.qlik.com/thread/139746"&gt;Cumulative total in script&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 13:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Cumulative-Sales-in-Script/m-p/710440#M255932</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-28T13:18:10Z</dc:date>
    </item>
  </channel>
</rss>

