<?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: Rangesum not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499501#M1127237</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;Can you attach the excel file which you used, did the records is sorted by date?&amp;nbsp; The dates should be sorted in ascending order then only this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Dec 2013 05:16:53 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2013-12-18T05:16:53Z</dc:date>
    <item>
      <title>Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499496#M1127232</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'm having an issue with using rangesum in the script. Attached is an XLS extract of sample data and in column D I specified desired outcome. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use a single sales day my formula works and calculated rangesum works without a problem. However, when I add more days to my dataset, that is when rangesum gets out of whack. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Date= peek('Date', -1), rangesum(Sales, peek('RangeSum'))) as RangeSum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what I am doing wrong here? Data needs to be arranged from highest sales to lowest, by day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 02:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499496#M1127232</guid>
      <dc:creator />
      <dc:date>2013-12-18T02:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499497#M1127233</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 like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Previous(Date) &amp;lt;&amp;gt; Date, Sales, Sales + Peek('AccumulatedSum')) AS&amp;nbsp; AccumulatedSum&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 03:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499497#M1127233</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-12-18T03:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499498#M1127234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Thanks for your answer. &lt;/P&gt;&lt;P&gt;Problem with this approach is that the very last record from each day is not added to the accumulated field.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 03:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499498#M1127234</guid>
      <dc:creator />
      <dc:date>2013-12-18T03:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499499#M1127235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This works for any scenario, can you post some sample data where you are facing the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 03:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499499#M1127235</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-12-18T03:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499500#M1127236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;please see attached. Filter by a day and notice how cumulative sum breaks few records down the list.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Marko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 04:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499500#M1127236</guid>
      <dc:creator />
      <dc:date>2013-12-18T04:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499501#M1127237</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;Can you attach the excel file which you used, did the records is sorted by date?&amp;nbsp; The dates should be sorted in ascending order then only this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 05:16:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499501#M1127237</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-12-18T05:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499502#M1127238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Hi Marko,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Jagan is right! You need to sort the table else you won't get the right result. This is because we are performing row by row comparison on Dates. Please see the below script...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM style="color: #003300;"&gt;&lt;STRONG&gt;Test:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300;"&gt;&lt;EM style="font-family: 'trebuchet ms', geneva;"&gt;&lt;STRONG&gt;LOAD Sales,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300;"&gt;&lt;EM style="font-family: 'trebuchet ms', geneva;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Department,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300;"&gt;&lt;EM style="font-family: 'trebuchet ms', geneva;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300;"&gt;&lt;EM style="font-family: 'trebuchet ms', geneva;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeSum&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300;"&gt;&lt;EM style="font-family: 'trebuchet ms', geneva;"&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300;"&gt;&lt;EM style="font-family: 'trebuchet ms', geneva;"&gt;&lt;STRONG&gt;&lt;C&gt;&lt;/C&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300;"&gt;&lt;EM style="font-family: 'trebuchet ms', geneva;"&gt;&lt;STRONG&gt;(biff, embedded labels, table is Sheet1$);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300;"&gt;&lt;EM style="font-family: 'trebuchet ms', geneva;"&gt;&lt;STRONG&gt;Final:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300;"&gt;&lt;EM style="font-family: 'trebuchet ms', geneva;"&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300;"&gt;&lt;EM style="font-family: 'trebuchet ms', geneva;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Previous(Date) &amp;lt;&amp;gt; Date, Sales, Sales + Peek('AccumulatedSum')) AS&amp;nbsp; AccumulatedSum&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300;"&gt;&lt;EM style="font-family: 'trebuchet ms', geneva;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Test&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300;"&gt;&lt;EM style="font-family: 'trebuchet ms', geneva;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order by Date, Department ASC;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM style="color: #003300;"&gt;&lt;STRONG&gt;Drop Table Test;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 08:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499502#M1127238</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2013-12-18T08:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499503#M1127244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;PFA &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Premhas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 08:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499503#M1127244</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2013-12-18T08:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499504#M1127248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This almot worked for me.. Slight change on order by. One outstanding issue. When i create a straight table, select a date, and sort by Sales, I would expect the very last record from Acc..Sum colum to equal, e.g. for 2011 -1219 or for 2013 -1292. Last record from AccSum field for 2011 and 2013 are -850 and -969 respectively. Any way to sort that correctly as well?&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Key&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;tests.xls&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; [Sheet1$]);&lt;BR /&gt;&lt;BR /&gt;Final:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Previous&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('AccumulatedSum')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AccumulatedSum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Order&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;desc&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 13:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499504#M1127248</guid>
      <dc:creator />
      <dc:date>2013-12-18T13:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499505#M1127251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'trebuchet ms', geneva;"&gt;Marko - Please can you post the sample application? Where do you want to sort AccumulatedSum?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'trebuchet ms', geneva;"&gt;PS - Ignore this message... I can see the attachement now.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 13:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499505#M1127251</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2013-12-18T13:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499506#M1127253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main sort criteria are Date and Sales. Sales needs to be sorted in a descending order and for the very last Sales record my AccSum must equal total range sum of Sales for that date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 13:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499506#M1127253</guid>
      <dc:creator />
      <dc:date>2013-12-18T13:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499507#M1127256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Hi Marko,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM style="color: #003366;"&gt;"My main sort criteria are Date and Sales. Sales needs to be sorted in a descending order and for the very last Sales record my AccSum must equal total range sum of Sales for that date".&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Please can you provide sample data of end result in excel for sub set of data. I'm not following completely...sorry!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 14:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499507#M1127256</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2013-12-18T14:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499508#M1127257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;I attached qvw in my previous post and created a straight table that will give you data sorted as necessary. If you select 20131109 and export to XLS, do sum of the Sale column and you will get -881.447&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 14:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499508#M1127257</guid>
      <dc:creator />
      <dc:date>2013-12-18T14:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499509#M1127259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marko,&lt;/P&gt;&lt;P&gt;In straight table sort the data by Accumulated Sum and you will get the last row as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;-881.447&lt;/SPAN&gt; which is equal to the Sum of all Sales values.&amp;nbsp; Please check attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 03:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499509#M1127259</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-12-19T03:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499510#M1127260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your answer is in the right direction. The only problem I have now is that my keys that have 0 for sales do not get accumulated.&lt;/P&gt;&lt;P&gt;I also moved the logic from the script to a chart with rangesum(above(sum(..)),0,rowno())) expression.&lt;/P&gt;&lt;P&gt;If i didn't have randonm blanks in my table this would definitely be the correct answer.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 13:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499510#M1127260</guid>
      <dc:creator />
      <dc:date>2013-12-19T13:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Rangesum not working</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499511#M1127262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;That won't work. I cannot sort by AccSum column as the requirement is to sort primarily by sales figures.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 13:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-not-working/m-p/499511#M1127262</guid>
      <dc:creator />
      <dc:date>2013-12-19T13:17:29Z</dc:date>
    </item>
  </channel>
</rss>

