<?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 sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cumulative-sum/m-p/1098892#M632586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you use the GROUP BY feature in the load (check it out in the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be along the lines of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Name, SUM([Purchase Amount]) as Total_Purchase&lt;/P&gt;&lt;P&gt;FROM ....................&lt;/P&gt;&lt;P&gt;GROUP BY Name;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, in your example, this would give Bob a total of 20.&lt;/P&gt;&lt;P&gt;Do you need something different ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2016 09:15:15 GMT</pubDate>
    <dc:creator>richard_chilvers</dc:creator>
    <dc:date>2016-07-06T09:15:15Z</dc:date>
    <item>
      <title>Cumulative sum</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum/m-p/1098891#M632585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="234"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="39"&gt;Name&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="107"&gt;Purchase amount&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="88"&gt;Purchase date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/01/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/10/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/02/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Ed&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/08/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Sid&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/08/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way in my load script i can have a cumulative sum on purchase amount so the table ends up looking like this&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 146px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="39"&gt;Name&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="107"&gt;Purchase amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Ed&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Sid&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 08:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum/m-p/1098891#M632585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-06T08:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum/m-p/1098892#M632586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you use the GROUP BY feature in the load (check it out in the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be along the lines of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Name, SUM([Purchase Amount]) as Total_Purchase&lt;/P&gt;&lt;P&gt;FROM ....................&lt;/P&gt;&lt;P&gt;GROUP BY Name;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, in your example, this would give Bob a total of 20.&lt;/P&gt;&lt;P&gt;Do you need something different ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 09:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum/m-p/1098892#M632586</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2016-07-06T09:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum/m-p/1098893#M632587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum([Purchase amount]) as &lt;SPAN style="font-size: 13.3333px;"&gt;[Purchase amount]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;GROUP BY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name;&lt;/P&gt;&lt;P&gt;LOAD DISTINCT * INLINE [&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="171" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#3D3D3D&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; width: 258px; height: 161px;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="17" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="39"&gt;Name,&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit; width: 279px;" width="107"&gt;Purchase amount&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit; width: 172px;" width="88"&gt;Purchase date&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="17" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Bob,&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;5,&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;01/01/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="17" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Bob,&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;5,&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;01/10/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="17" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Bob,&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;10,&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;01/02/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="17" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Ed,&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;2,&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;01/08/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="17" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Sid,&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;5,&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;01/08/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 09:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum/m-p/1098893#M632587</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-06T09:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum/m-p/1098894#M632588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your table&amp;nbsp; "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Bob" having sum 20 like (10+5+5). how you calculated 15?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 09:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum/m-p/1098894#M632588</guid>
      <dc:creator>qlikview979</dc:creator>
      <dc:date>2016-07-06T09:24:27Z</dc:date>
    </item>
  </channel>
</rss>

