<?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: accumutative sum in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513287#M690502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raul and thanks for the quick responce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see that it works on your version but the behaviour on my impementation is not the same.&lt;/P&gt;&lt;P&gt;I use the exact same formula to calculate the running average but insted I get numbers like -6607388,-6607185&lt;/P&gt;&lt;P&gt;and so forth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not figure out why is that....&lt;/P&gt;&lt;P&gt;Can anyone help?? Has anyone had any similar issue??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 15:49:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-23T15:49:46Z</dc:date>
    <item>
      <title>accumutative sum in script</title>
      <link>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513285#M690500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi qlikview communtity,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to make a accumulative sum in the script but nothing seems to work. I have the belowtable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="392"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border: 0px solid black;" width="98"&gt;Date&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none;" width="98"&gt;EmplRef&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none;" width="98"&gt;MinutesWorked&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none;" width="98"&gt;FlexGained&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border: 0px solid black; border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-top: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl66" style="border: 0px solid black; border-top: none;"&gt;59&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="17" style="border: 0px solid black; border-top: none;"&gt;14/10/2013&lt;/TD&gt;&lt;TD class="xl68" style="border: 0px solid black; border-left: none; border-top: none;"&gt;FL238&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black; border-left: none; border-top: none;"&gt;464&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black; border-left: none; border-top: none;"&gt;-16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="17" style="border: 0px solid black; border-top: none;"&gt;15/10/2013&lt;/TD&gt;&lt;TD class="xl68" style="border: 0px solid black; border-left: none; border-top: none;"&gt;FL238&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black; border-left: none; border-top: none;"&gt;481&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black; border-left: none; border-top: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="17" style="border: 0px solid black; border-top: none;"&gt;16/10/2013&lt;/TD&gt;&lt;TD class="xl68" style="border: 0px solid black; border-left: none; border-top: none;"&gt;FL238&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black; border-left: none; border-top: none;"&gt;513&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black; border-left: none; border-top: none;"&gt;33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="17" style="border: 0px solid black; border-top: none;"&gt;17/10/2013&lt;/TD&gt;&lt;TD class="xl68" style="border: 0px solid black; border-left: none; border-top: none;"&gt;FL238&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black; border-left: none; border-top: none;"&gt;481&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black; border-left: none; border-top: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="17" style="border: 0px solid black; border-top: none;"&gt;21/10/2013&lt;/TD&gt;&lt;TD class="xl68" style="border: 0px solid black; border-left: none; border-top: none;"&gt;FL238&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black; border-left: none; border-top: none;"&gt;465&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black; border-left: none; border-top: none;"&gt;-15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="17" style="border: 0px solid black; border-top: none;"&gt;22/10/2013&lt;/TD&gt;&lt;TD class="xl68" style="border: 0px solid black; border-left: none; border-top: none;"&gt;FL238&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black; border-left: none; border-top: none;"&gt;535&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black; border-left: none; border-top: none;"&gt;55&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have managed to do it on a straight table but I need it inside the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Already tried:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(FlexGained,peek(AccumFlexGained)) as AccumFlexGained&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;but i got some lagre negative numbers back isted of an accurate result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas???&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 14:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513285#M690500</guid>
      <dc:creator />
      <dc:date>2013-10-23T14:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: accumutative sum in script</title>
      <link>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513286#M690501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im sorry for my english but this works Niko :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Primero:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;Date,EmplRef,MinutesWorked,FlexGained&lt;/P&gt;&lt;P&gt;14/10/2013, FL238 ,464, -16&lt;/P&gt;&lt;P&gt;15/10/2013 ,FL238 ,481 ,1&lt;/P&gt;&lt;P&gt;16/10/2013 ,FL238 ,513 ,33&lt;/P&gt;&lt;P&gt;17/10/2013 ,FL238 ,481 ,1&lt;/P&gt;&lt;P&gt;21/10/2013 ,FL238 ,465 ,-15&lt;/P&gt;&lt;P&gt;22/10/2013 ,FL238, 535 ,55&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Segunda:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;EmplRef,&lt;/P&gt;&lt;P&gt;MinutesWorked,&lt;/P&gt;&lt;P&gt;FlexGained,&lt;/P&gt;&lt;P&gt;RangeSum(FlexGained,peek(AccumFlexGained)) as AccumFlexGained &lt;/P&gt;&lt;P&gt; Resident Primero;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Primero;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 15:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513286#M690501</guid>
      <dc:creator />
      <dc:date>2013-10-23T15:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: accumutative sum in script</title>
      <link>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513287#M690502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raul and thanks for the quick responce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see that it works on your version but the behaviour on my impementation is not the same.&lt;/P&gt;&lt;P&gt;I use the exact same formula to calculate the running average but insted I get numbers like -6607388,-6607185&lt;/P&gt;&lt;P&gt;and so forth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not figure out why is that....&lt;/P&gt;&lt;P&gt;Can anyone help?? Has anyone had any similar issue??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 15:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513287#M690502</guid>
      <dc:creator />
      <dc:date>2013-10-23T15:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: accumutative sum in script</title>
      <link>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513288#M690503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas??? I have been trying everything but with no luck..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 07:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513288#M690503</guid>
      <dc:creator />
      <dc:date>2013-10-24T07:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: accumutative sum in script</title>
      <link>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513289#M690504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share your sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 07:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513289#M690504</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-24T07:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: accumutative sum in script</title>
      <link>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513290#M690505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I it took me a minute to hide some sensitive information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in the employee number = FL238 i what i am accually trying to achieve is to reset the flex to 480 if its more than that every friday and to keep accumulating from that flex afterwards. I would appreciate your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 07:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513290#M690505</guid>
      <dc:creator />
      <dc:date>2013-10-24T07:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: accumutative sum in script</title>
      <link>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513291#M690506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;A quick fix before going into details; try putting single quotes around field name in peek() like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeSum(FlexGained,peek(&lt;STRONG&gt;'&lt;/STRONG&gt;AccumFlexGained&lt;STRONG&gt;'&lt;/STRONG&gt;)) as AccumFlexGained&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 08:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumutative-sum-in-script/m-p/513291#M690506</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-24T08:05:50Z</dc:date>
    </item>
  </channel>
</rss>

