<?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: Please Help, continous rangesum 2 table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918639#M984947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry for late reply(coz I have another assignment).&lt;/P&gt;&lt;P&gt;not yet, the value in my qlikview is different. but I using script from mr/mrs Settu Perisiamy. the value is right (in table from Settu Perisiamy), but I'm still searching why value in my qlikview is different...&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2015 09:46:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-12T09:46:12Z</dc:date>
    <item>
      <title>Please Help, continous rangesum 2 table</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918634#M984937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;Can anyone help me in writing the 'Expression'&amp;nbsp; Script ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see my table (database using SQL) :&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="95627" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95627_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;the first row in credit (yellow highlight),&lt;/P&gt;&lt;P&gt;it came from&amp;nbsp; first credit = -&lt;SPAN style="color: #ff0000;"&gt;5.325.019.926(1st credit/LSALDO) - 219.242.320(1st Income) =&lt;SPAN style="color: #000000;"&gt; &lt;SPAN style="color: #ff0000;"&gt;-5.105.777.606. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;this is my script on CREDIT expression :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;rangegesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;above&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;INCOME&lt;/SPAN&gt;&amp;lt;1,(&lt;SPAN style="color: #800000;"&gt;LSALDO&lt;/SPAN&gt;-&lt;SPAN style="color: #800000;"&gt;OUTCOME),(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;LSALDO&lt;/SPAN&gt;+&lt;SPAN style="color: #800000;"&gt;INCOME&lt;/SPAN&gt;))),0,&lt;SPAN style="color: #0000ff;"&gt;rowno&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;()))&amp;nbsp; but it came wrong from my expectation..&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;LSALDO = -&lt;SPAN style="color: #ff0000;"&gt;5.325.019.926&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;1. I want the value 2nd row in the CREDIT = &lt;SPAN style="color: #ff0000;"&gt;-5.105.777.606(from the first row in 'CREDIT') - 31.822.991(from the 2nd row in 'INCOME') =&amp;nbsp; 5.073.954.615 &amp;lt;- iwant the value like this. &lt;SPAN style="color: #000000;"&gt;like continuous substraction.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then the third row value is =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt; &lt;SPAN style="color: #ff0000;"&gt;-5.073.954.615(from the 2nd row in 'CREDIT' - &lt;SPAN style="color: #ff0000;"&gt;31.822.991(from the 3rd row in 'INCOME') = &lt;SPAN style="color: #ff0000;"&gt;-5073954615&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;2. and if the income &amp;lt;1 or null the CREDIT is - OUTCOME&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I hope everybody understand what I mean and sory for my bad english&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;Thanks &amp;amp; Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="-1" style="width: 10px; height: 0px;" width="9"&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 10:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918634#M984937</guid>
      <dc:creator />
      <dc:date>2015-08-11T10:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help, continous rangesum 2 table</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918635#M984939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to provide the above data in a Excel file so that we can test load the data and check what expression will work the best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 15:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918635#M984939</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-11T15:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help, continous rangesum 2 table</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918636#M984941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Edited. I inser attachment(sample file.xls) for sample. &lt;/P&gt;&lt;P&gt;thanks for advice Mr. Sunny T &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 01:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918636#M984941</guid>
      <dc:creator />
      <dc:date>2015-08-12T01:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help, continous rangesum 2 table</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918637#M984943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;May be try this...&lt;/P&gt;&lt;P&gt;if(RowNo()=1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(INCOME&amp;lt;1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; (LSALDO-OUTCOME),&lt;/P&gt;&lt;P&gt;&amp;nbsp; (LSALDO+INCOME)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(INCOME&amp;lt;1,Rangesum(Above(Column(4)),-Sum(OUTCOME)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Rangesum(Above(Column(4)),Sum(INCOME))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, i created the variable LSALDO&amp;nbsp; value as -5325019926&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/95707_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 03:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918637#M984943</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-08-12T03:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help, continous rangesum 2 table</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918638#M984945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nice Guy, Did you resolve the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 06:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918638#M984945</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-08-12T06:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help, continous rangesum 2 table</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918639#M984947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry for late reply(coz I have another assignment).&lt;/P&gt;&lt;P&gt;not yet, the value in my qlikview is different. but I using script from mr/mrs Settu Perisiamy. the value is right (in table from Settu Perisiamy), but I'm still searching why value in my qlikview is different...&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 09:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918639#M984947</guid>
      <dc:creator />
      <dc:date>2015-08-12T09:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help, continous rangesum 2 table</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918640#M984949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in your script : &lt;/P&gt;&lt;P&gt;if(RowNo()=1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(INCOME&amp;lt;1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; (LSALDO-OUTCOME),&lt;/P&gt;&lt;P&gt;&amp;nbsp; (LSALDO+INCOME)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(INCOME&amp;lt;1,Rangesum(Above(Column(4)),-Sum(OUTCOME)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Rangesum(Above(Column(4)),Sum(INCOME))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at column(4), what '4' is ? sum(CREDIT) or if(RowNo()=1, ? are column Row Count?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks before.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 09:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918640#M984949</guid>
      <dc:creator />
      <dc:date>2015-08-12T09:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help, continous rangesum 2 table</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918641#M984951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;for the first row, you need to calculate based on your LSALDO value .&lt;/P&gt;&lt;P&gt;Column(4) is your current expression Column Number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 09:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918641#M984951</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-08-12T09:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help, continous rangesum 2 table</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918642#M984953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mr/Mrs Settu periasamy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using ur script, and matching with my table. but the value(answer) still with the script I make before. I think&lt;/P&gt;&lt;P&gt;script "above" doesn't work in the table,coz the first row value is right,then, second row the value not using value in the first row (still using first value of &lt;SPAN style="color: #800000; font-size: 10pt;"&gt;LSALDO = -&lt;SPAN style="color: #ff0000;"&gt;5.325.019.926)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(RowNo()=1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(INCOME&amp;lt;1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; (LSALDO-OUTCOME),&lt;/P&gt;&lt;P&gt;&amp;nbsp; (LSALDO+INCOME)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(INCOME&amp;lt;1,Rangesum(Above(Column(4)),-Sum(OUTCOME)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Rangesum(Above(Column(4)),Sum(INCOME))))&lt;/P&gt;&lt;P&gt; &lt;IMG alt="asd.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96191_asd.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;row,income,outcome,rangesum is 'Expression'&lt;/P&gt;&lt;P&gt;I'm still confuse, I use your script, but the value doesn't same : (&lt;/P&gt;&lt;P&gt;is SQL database take effect with this script? because I'm copy the sql database to Excel, then I create same table in qlikview ,same script, and voila the answer is right.. but I don't want to use Excel, I still want to use SQL database..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx before&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2015 15:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918642#M984953</guid>
      <dc:creator />
      <dc:date>2015-08-16T15:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help, continous rangesum 2 table</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918643#M984955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mr/mrs Settu Periasamy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think i found the error problem. it becouse i dont have RowNo() in my qlikview. why 'rowno()' , becouse i try reload data in excel, with the same value, script expression from u, and also 'LOAD RowNo() in main script. then the answer is right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any script for SQL database to create rowno() like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&amp;nbsp; RowNo(),​&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INCOME,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTCOME,&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;D:\asdf.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 05:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918643#M984955</guid>
      <dc:creator />
      <dc:date>2015-08-18T05:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help, continous rangesum 2 table</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918644#M984957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikviewwizard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think i found the error problem. it becouse i dont have RowNo() in my qlikview. why 'rowno()' , becouse i try reload data in excel, with the same value, script expression from u, and also 'LOAD RowNo() in main script. then the answer is right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any script for SQL database to create rowno() like this?&lt;/P&gt;&lt;P&gt; (reload excel table)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&amp;nbsp; RowNo(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INCOME,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTCOME,&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;D:\asdf.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 09:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918644#M984957</guid>
      <dc:creator />
      <dc:date>2015-08-18T09:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help, continous rangesum 2 table</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918645#M984959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use excel table or database you can use script from mr/mrs. &lt;A href="https://community.qlik.com/qlik-users/133561"&gt;settu_periasamy&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;if(RowNo()=1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(INCOME&amp;lt;1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; (LSALDO-OUTCOME),&lt;/P&gt;&lt;P&gt;&amp;nbsp; (LSALDO+INCOME)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(INCOME&amp;lt;1,Rangesum(Above(Column(4)),-Sum(OUTCOME)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Rangesum(Above(Column(4)),Sum(INCOME))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if you use SQL Database you can use my script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Row=1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(INCOME&amp;lt;1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vsaldo-outcome),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vsaldo+income)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(INCOME&amp;lt;1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeSum(above(TOTAL Column(4)), - Column(3)) ,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeSum(above(TOTAL Column(4)), + Column(2))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in first line 'Row' is expression. you must create this expression for main 'IF'&lt;/P&gt;&lt;P&gt;the expression is&amp;nbsp; 'RowNo(TOTAL)' to count your total row.&lt;/P&gt;&lt;P&gt;vsaldo=LSALDO&lt;/P&gt;&lt;P&gt;LSALDO=my 1st value of credit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks all for the support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 07:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-continous-rangesum-2-table/m-p/918645#M984959</guid>
      <dc:creator />
      <dc:date>2015-08-26T07:53:09Z</dc:date>
    </item>
  </channel>
</rss>

