<?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: Help with cumulative summary in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-cumulative-summary/m-p/433592#M161608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert for the response but it did not work. I would appreciate if you can correct where I am doing wrong in the sample QVW I attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2013 19:33:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-09T19:33:05Z</dc:date>
    <item>
      <title>Help with cumulative summary</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-cumulative-summary/m-p/433590#M161606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help with the cumulative summary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the how the data is&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;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;Count&lt;BR /&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03/30/2013&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03/31/2013&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04/01/2013&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04/02/2013&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how the end result should look like. MOST IMPORTANTLY in the running totals should be the same even if the sort order of dates is changed (It is a requirement)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; With ascending sort:&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;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;Cumulative&lt;BR /&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03/30/2013&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03/31/2013&lt;/TD&gt;&lt;TD&gt;12 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04/01/2013&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04/02/2013&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With descending sort:&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;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;Cumulative&lt;BR /&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04/02/2013&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04/01/2013&lt;/TD&gt;&lt;TD&gt;14 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03/31/2013&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03/30/2013&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with the Range sum RangeSum(Above( Sum(Count)),0, RowNo(TOTAL))) but SWITCHED to the option of creating an aggregated resident table where I am calculating the regular count of transactions and then joining it to the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help with acheving the cumulative sum in the script where the data is loaded in the above mentioned resident table format. I know how to do in SQL. I would do a self join of the data table (D1 &amp;amp; D2) with with a condition on date (D1.Date &amp;lt;= D2.Date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with how to do a self join to achieve the cumulative functionality in QLikview? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 22:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-cumulative-summary/m-p/433590#M161606</guid>
      <dc:creator />
      <dc:date>2013-04-08T22:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help with cumulative summary</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-cumulative-summary/m-p/433591#M161607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load the dates and counts in a table then calculate the cumulative using the peek function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;load Date, Count,&lt;STRONG&gt; rangesum(Count,peek(Cumulative)) as Cumulative&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;resident SomeTable&lt;/P&gt;&lt;P&gt;order by Date;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 18:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-cumulative-summary/m-p/433591#M161607</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-09T18:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with cumulative summary</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-cumulative-summary/m-p/433592#M161608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert for the response but it did not work. I would appreciate if you can correct where I am doing wrong in the sample QVW I attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 19:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-cumulative-summary/m-p/433592#M161608</guid>
      <dc:creator />
      <dc:date>2013-04-09T19:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with cumulative summary</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-cumulative-summary/m-p/433593#M161609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 11:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-cumulative-summary/m-p/433593#M161609</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-10T11:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with cumulative summary</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-cumulative-summary/m-p/433594#M161610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Gysbert &lt;/SPAN&gt;- It worked like magic. Thanks a lot for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 20:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-cumulative-summary/m-p/433594#M161610</guid>
      <dc:creator />
      <dc:date>2013-04-10T20:12:05Z</dc:date>
    </item>
  </channel>
</rss>

