<?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: Complexe sum script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156663#M377239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could not get your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;question1:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Didier Agonvonon wrote:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;...While ignoring the minimum dates up to where the SUM of price is &lt;STRONG&gt;&amp;gt;=600 and &amp;lt;=700.&lt;/STRONG&gt; The result will be :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG __jive_id="131250" alt="600.PNG" class="jive-image image-1" height="293" src="https://community.qlik.com/legacyfs/online/131250_600.PNG" style="width: 413.77px;" width="414" /&gt;&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How does your logic give the output? Could you please explain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2016 09:57:08 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2016-07-14T09:57:08Z</dc:date>
    <item>
      <title>Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156661#M377237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am faced with a small challenge. I have the table below which holds ID;DATE; PRICE.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="324" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 317px; height: 280px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;DATE&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;PRICE&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15/02/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;125&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;21/03/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;22/03/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;28/03/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17/04/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;900&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25/04/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05/05/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15/05/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;21/05/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;750&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;06/06/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20/06/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;120&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;00234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/07/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;question1: while loading the table I would like to return only the id;date;price While ignoring the minimum dates up to where the SUM of price is &amp;gt;=600 and &amp;lt;=700. The result will be :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="600.PNG" class="jive-image image-1" height="293" src="https://community.qlik.com/legacyfs/online/131239_600.PNG" style="width: 413.77px; height: 293px;" width="414" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question2: From the original I would like to load only the id;date;price where the Sum of Price for any consecutive 3 dates is &amp;gt;=10000.&lt;/P&gt;&lt;P&gt;the expected result will be.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="10000.PNG" class="jive-image image-2" height="115" src="https://community.qlik.com/legacyfs/online/131252_10000.PNG" style="width: 457.58px; height: 115px;" width="458" /&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 09:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156661#M377237</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2016-07-14T09:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156662#M377238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think its difficult to understand your output here. How is 45 included in your first screenshot. Can you elaborate on the thinking behind the two questions you have here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 09:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156662#M377238</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-14T09:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156663#M377239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could not get your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;question1:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Didier Agonvonon wrote:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;...While ignoring the minimum dates up to where the SUM of price is &lt;STRONG&gt;&amp;gt;=600 and &amp;lt;=700.&lt;/STRONG&gt; The result will be :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG __jive_id="131250" alt="600.PNG" class="jive-image image-1" height="293" src="https://community.qlik.com/legacyfs/online/131250_600.PNG" style="width: 413.77px;" width="414" /&gt;&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How does your logic give the output? Could you please explain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 09:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156663#M377239</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-07-14T09:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156664#M377240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying this is actually a sample of a very large table. so I would like to ignore the &lt;STRONG&gt;FIRST dates for all IDs up to &amp;gt;=600 and &amp;lt;=700. So the load will ignore 125;250;300 (with their corresponding id and dates)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly it is suspicious to have consecutive amount up to &amp;gt;=10000 . so I would like to identify any consecutive sum that equals to &amp;gt;=10000 which is the result is the 3rd snapshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it is clearer now otherwise please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 09:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156664#M377240</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2016-07-14T09:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156665#M377241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check my reply to Sunny, I am only ignoring the beginning (first rows) up to the sum of &amp;gt;=600 and &amp;lt;=700.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156665#M377241</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2016-07-14T10:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156666#M377242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But the first value - (after &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;125;250;300)&lt;STRONG&gt; 400 &lt;/STRONG&gt;&lt;/SPAN&gt;doesn't satisfy the condition &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;gt;=600 and &amp;lt;=700&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156666#M377242</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-07-14T10:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156667#M377243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess 125;250;300 are getting ignored, but how is 400 meeting the condition? &amp;gt;=600 and&amp;nbsp; &amp;lt;= 700?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156667#M377243</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-14T10:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156668#M377244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the sum of 125;250;300 is &lt;STRONG&gt;675. so am ignoring those 3 rows before the load.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156668#M377244</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2016-07-14T10:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156669#M377245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, am not ignoring 400. you can see it is showing up the result in the second snapshot( result 1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:09:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156669#M377245</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2016-07-14T10:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156670#M377246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you want a cumulative sum of price:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRICE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...source...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp2:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRICE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(ID = Previous(ID), Rangesum(PRICE, peek(CUM_PRICE)) , PRICE) as CUM_PRICE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(ID = Previous(ID), Rangesum(PRICE, Peek(PRICE, -1), Peek(PRICE, -2))) as CONSEC_3DAY_SUM&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Temp1&lt;/P&gt;&lt;P&gt;ORDER BY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, DATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Temp1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;SPAN style="font-size: 13.3333px;"&gt;CONSEC_3DAY_SUM&amp;gt;=10000 or Peek(&lt;SPAN style="font-size: 13.3333px;"&gt;CONSEC_3DAY_SUM,-1) &amp;gt;= 10000 or Peek(&lt;SPAN style="font-size: 13.3333px;"&gt;CONSEC_3DAY_SUM,-2) &amp;gt;= 10000, 1, 0) as &lt;SPAN style="font-size: 13.3333px;"&gt;CONSEC_3DAY_FLAG&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RESIDENT&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Temp2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ORDER BY&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, DATE desc&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DROP TABLE Temp2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have this you should do the rest in chart objects imho. For example a straight table with ID and DATE as dimensions and as expression sum({&amp;lt;CUM_PRICE={'&amp;gt;700'}&amp;gt;}PRICE). For the second question use &lt;SPAN style="font-size: 13.3333px;"&gt;sum({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;CONSEC_3DAY_FLAG&lt;/SPAN&gt;={1}&amp;gt;}PRICE)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156670#M377246</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-14T10:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156671#M377247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If for some reason your first 3 data points were like this:&lt;/P&gt;&lt;P&gt;125;250;400 totaling to 775, nothing would have been ignored?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156671#M377247</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-14T10:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156672#M377248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Sunny that is correct the requirement is such that if it is above 700 then it should be ignored.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156672#M377248</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2016-07-14T10:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156673#M377249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi GD,&lt;/P&gt;&lt;P&gt;I will try this and confirm . at first look I think it could fix the second question. for the first question we are dealing only with the beginning row where the total is &amp;gt;=600 and &amp;lt;=700.&amp;nbsp; So if any other rows on the table were to be equal to 600 they won't be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156673#M377249</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2016-07-14T10:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156674#M377250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should meet your first requirement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ID, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRICE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="225056" data-objecttype="1" href="https://community.qlik.com/thread/225056"&gt;https://community.qlik.com/thread/225056&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TEMP_TABLE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; DATE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; PRICE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(ID = Previous(ID), RangeSum(Peek('CUM_PRICE'), PRICE), PRICE) as CUM_PRICE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(If(ID = Previous(ID), RangeSum(Peek('CUM_PRICE'), PRICE), PRICE) &amp;gt;= 600 and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(ID = Previous(ID), RangeSum(Peek('CUM_PRICE'), PRICE), PRICE) &amp;lt;= 700, 1, 0) as FLAG&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By ID, DATE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TEMP2_TABLE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(ID = Previous(ID), If(FLAG = 1, FLAG, Peek('NEW_FLAG')), FLAG) as NEW_FLAG&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident TEMP_TABLE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By ID, DATE desc;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FINAL_TABLE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident TEMP2_TABLE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where NEW_FLAG = 0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table, TEMP_TABLE, TEMP2_TABLE;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156674#M377250</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-14T10:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156675#M377251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps a peek() is missing:&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; If(ID = Previous(ID), Rangesum(PRICE, &lt;STRONG&gt;peek&lt;/STRONG&gt;(CUM_PRICE)) , PRICE) as CUM_PRICE,&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156675#M377251</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-07-14T10:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Complexe sum script</title>
      <link>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156676#M377252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Fixed above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complexe-sum-script/m-p/1156676#M377252</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-14T10:54:08Z</dc:date>
    </item>
  </channel>
</rss>

