<?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: Problem with Sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949197#M954984</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 have attached a few demo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2015 09:47:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-20T09:47:43Z</dc:date>
    <item>
      <title>Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949194#M954979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a problem on my board the operation for sum not working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; color: #000000; background-color: #efefef;"&gt;Normally I leave QTY and I subtract every operation of movement of the result obtained previously.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; color: #000000; background-color: #efefef;"&gt;Except here the problem is that it&amp;nbsp; takes me all the time the value of the original stock for the subtraction instead of the result obtained after the movements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-912684-105651/Capture2.jpg" style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="Capture2.jpg" class="jive-image image-2" height="388" src="https://community.qlik.com/legacyfs/online/106178_Capture2.jpg" style="border: 0px; font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;" width="948" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The normal results are&amp;nbsp; 507 - 102 = 405 not 429&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If anyone have a solution &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 07:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949194#M954979</guid>
      <dc:creator />
      <dc:date>2015-11-20T07:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949195#M954980</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 please share sample app. It will helps to sort out the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 09:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949195#M954980</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2015-11-20T09:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949196#M954982</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;As Krishna suggest share your app or share your expression which are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 09:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949196#M954982</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-11-20T09:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949197#M954984</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 have attached a few demo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 09:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949197#M954984</guid>
      <dc:creator />
      <dc:date>2015-11-20T09:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949198#M954986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per your expression logic data is correct your&lt;/P&gt;&lt;P&gt;Qte_Stock_Inventory is 531 and&lt;/P&gt;&lt;P&gt;Qte_Mvt_Sum is -102&lt;/P&gt;&lt;P&gt;therefore final value is 531-102=429&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 10:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949198#M954986</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-11-20T10:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949199#M954988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want expression for calculate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qte_Stock_Inventory is 531 &lt;/P&gt;&lt;P&gt;1st qte_Mvt is -24 &lt;/P&gt;&lt;P&gt;531 - 24 : 507&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd qte_Mvt is -102&lt;/P&gt;&lt;P&gt;507-102 : 405 not 429&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 10:25:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949199#M954988</guid>
      <dc:creator />
      <dc:date>2015-11-20T10:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949200#M954989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is what you are looking for? see the last column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106180_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 10:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949200#M954989</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-11-20T10:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949201#M954991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this expression for stock réel:&lt;/P&gt;&lt;P&gt;Sum(Qte_Stock_Inventaire)+ rangesum(above(Qte_Mvt_sum, 0, RowNo()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106198_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 10:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949201#M954991</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-11-20T10:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949202#M954992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, the expression working but if i have many "Code_Article" the expression don't calculate for each "Code_Article" and i have this error. :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106213_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I think is missing a field in expression aggr but where i don't know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to the help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 12:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949202#M954992</guid>
      <dc:creator />
      <dc:date>2015-11-20T12:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949203#M954994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My expression only works in a straight table, in a pivot table expanding one Code_Article will break the logic with above().&lt;/P&gt;&lt;P&gt;You can try if it works using 'TOTAL':&lt;/P&gt;&lt;P&gt;Sum(Qte_Stock_Inventaire)+ rangesum(above(TOTAL Qte_Mvt_sum, 0, RowNo()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember to try expanding only one code_article, preferably in the middle (not the first or the last code_article)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 13:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949203#M954994</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-11-20T13:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949204#M954995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not Working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For explain i post an exemple;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to have this results from the expression :&lt;/P&gt;&lt;P&gt;for Code_Article D000140 normally the correct answer is 234 but i have -768&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think is the pivot table trouble my expression but i need the expression work up to the month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 14:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949204#M954995</guid>
      <dc:creator />
      <dc:date>2015-11-20T14:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949205#M954996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a pivot use Before instead of Above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 14:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949205#M954996</guid>
      <dc:creator>p_verkooijen</dc:creator>
      <dc:date>2015-11-20T14:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949206#M954997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1/ If i use this expression :&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Qte_Stock_Inventaire)+ rangesum(Above(TOTAL Qte_Mvt , 0, RowNo()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I found a good results when i select one "C&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;ode_Article" but for all "Code_Article" the results not good&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;2/ If i use this expression :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Qte_Stock_Inventaire)+&amp;nbsp; rangesum (Before(TOTAL Qte_Mvt , 0, RowNo())) my results is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;exemple for the "Code_Article" D000140&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Normally i found 234 in Stock_reel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But i found 306 with expression with BEfore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks to the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 07:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949206#M954997</guid>
      <dc:creator />
      <dc:date>2015-11-23T07:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949207#M954998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression can be:&lt;/P&gt;&lt;P&gt;Top(Qte_Stock_Inventaire)+ rangesum(above(TOTAL Sum(Qte_Mvt_sum), 0, RowNo(TOTAL)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as said before, if you expand one article it will break the 'Above' logic, condider if you can make the chart using a straight table instead of pivot table or the option to precalculate the inventory by article and date in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 08:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949207#M954998</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-11-23T08:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949208#M954999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you an exemple of script to precalculate the inventory by article and date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks to the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 09:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949208#M954999</guid>
      <dc:creator />
      <dc:date>2015-11-23T09:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949209#M955000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if having a precalculated stock can fit your requirements but you can precalculate with something like:&lt;/P&gt;&lt;P&gt;// Suppposing your fact table is called 'Facts' (in this table you have all the fields):&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(RowNo()=0, Qte_Stock_Inventaire, 0) + RangeSum(Peek([stock reel acum]), Qte_Mvt_sum) as [stock reel acum]&lt;/P&gt;&lt;P&gt;Resident Facts order by Code_Article, Date_Mvt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the pivot table yo can try this expression:&lt;/P&gt;&lt;P&gt;FirstSortedValue([stock reel acum], -Date_Mvt)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the values are precalculated so, no matter what selections you have, there will be a precalculated value for each article and date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 08:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949209#M955000</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-11-24T08:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949210#M955001</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;If this is on one table in the load script or can be put into one then you can think about doing these calculation on load.&lt;/P&gt;&lt;P&gt;Using Peek() or Previous().&lt;/P&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;IF(RowNO = 1, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Stock_reel&lt;/SPAN&gt;&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;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Previous(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Stock_reel&lt;/SPAN&gt;) - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Qte_Mvt_sum) as RunningBalance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 08:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sum/m-p/949210#M955001</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-24T08:36:17Z</dc:date>
    </item>
  </channel>
</rss>

