<?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 manipulating data in table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/manipulating-data-in-table/m-p/188680#M51840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mukund,&lt;/P&gt;&lt;P&gt;Many thanks for the reply, the code you supplied is really helpful for something else I'm working on &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For this though I need to keep the underlying data at the payment level and calculate the balance in the chart... as there's a lot of underlying data that builds up to the totals.&lt;/P&gt;&lt;P&gt;I found something on the Qlik help for chart inter record functions and used the following to create an expression called Payment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if(rowno()=1,sum( {1} Total Payment ), above( Balance ) - Payment )&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Kind Regards,&lt;BR /&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Mar 2010 14:20:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-22T14:20:22Z</dc:date>
    <item>
      <title>manipulating data in table</title>
      <link>https://community.qlik.com/t5/QlikView/manipulating-data-in-table/m-p/188676#M51836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have a simple table with 3 fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 125pt; border-collapse: collapse;" width="167"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 42pt;" width="56" /&gt;&lt;COL style="width: 39pt; mso-width-source: userset; mso-width-alt: 2218;" width="52" /&gt;&lt;COL style="width: 44pt; mso-width-source: userset; mso-width-alt: 2517;" width="59" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="width: 42pt; height: 11.25pt; background-color: transparent; border: #d4d0c8;" width="56"&gt;Year&lt;/TD&gt;&lt;TD class="xl22" style="width: 39pt; background-color: transparent; border: #d4d0c8;" width="52"&gt;Month&lt;/TD&gt;&lt;TD class="xl22" style="width: 44pt; background-color: transparent; border: #d4d0c8;" width="59"&gt;Payment&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;3&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;4&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;5&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;6&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;7&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;8&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;9&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;10&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;11&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;12&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2011&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;1&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2011&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;2&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2011&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;3&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl22" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2011&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;4&lt;/TD&gt;&lt;TD class="xl22" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;What I'm trying to do in Qlik is get the total balance (7000) then reduce the balance by the monthly payment, so the table will end up looking like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 125pt; border-collapse: collapse;" width="167"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 42pt;" width="56" /&gt;&lt;COL style="width: 39pt; mso-width-source: userset; mso-width-alt: 2218;" width="52" /&gt;&lt;COL style="width: 44pt; mso-width-source: userset; mso-width-alt: 2517;" width="59" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="width: 42pt; height: 11.25pt; background-color: transparent; border: #d4d0c8;" width="56"&gt;Year&lt;/TD&gt;&lt;TD class="xl24" style="width: 39pt; background-color: transparent; border: #d4d0c8;" width="52"&gt;Month&lt;/TD&gt;&lt;TD class="xl24" style="width: 44pt; background-color: transparent; border: #d4d0c8;" width="59"&gt;Balance&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #d4d0c8;"&gt;3&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;6500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #d4d0c8;"&gt;4&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;6000&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #d4d0c8;"&gt;5&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;5500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #d4d0c8;"&gt;6&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;5000&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #d4d0c8;"&gt;7&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;4500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #d4d0c8;"&gt;8&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;4000&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #d4d0c8;"&gt;9&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;3500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #d4d0c8;"&gt;10&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;3000&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #d4d0c8;"&gt;11&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;2500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2010&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #d4d0c8;"&gt;12&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2011&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #d4d0c8;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2011&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #d4d0c8;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2011&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #d4d0c8;"&gt;3&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="15" style="height: 11.25pt;"&gt;&lt;TD class="xl24" height="15" style="height: 11.25pt; background-color: transparent; border: #d4d0c8;"&gt;2011&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #d4d0c8;"&gt;4&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Though I'm fairly new to Qlik and am not sure of the best way to do this, if anyone can point me in the right direction it would be much appreciated.&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Phil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 10:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/manipulating-data-in-table/m-p/188676#M51836</guid>
      <dc:creator />
      <dc:date>2010-03-22T10:49:10Z</dc:date>
    </item>
    <item>
      <title>manipulating data in table</title>
      <link>https://community.qlik.com/t5/QlikView/manipulating-data-in-table/m-p/188677#M51837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;I think u might have used the expression like this i.e TOTAL BALANCE,instead of this u try with this&lt;/P&gt;&lt;P&gt;Sum(Payment).Try this one in cse if u find any problem u please attach the sample file then i can solve ur problem.&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 11:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/manipulating-data-in-table/m-p/188677#M51837</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2010-03-22T11:30:43Z</dc:date>
    </item>
    <item>
      <title>manipulating data in table</title>
      <link>https://community.qlik.com/t5/QlikView/manipulating-data-in-table/m-p/188678#M51838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;Many thanks for the reply.&lt;/P&gt;&lt;P&gt;I have 2 dimensions (year,month) and only one expression (payment) from this I'm trying to calculate the balance in Qlik.&lt;/P&gt;&lt;P&gt;I'm guessing I need to use set analysis or aggregation but am struggling at the moment... I can't even get a running sum for the payment at the moment &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 11:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/manipulating-data-in-table/m-p/188678#M51838</guid>
      <dc:creator />
      <dc:date>2010-03-22T11:55:13Z</dc:date>
    </item>
    <item>
      <title>manipulating data in table</title>
      <link>https://community.qlik.com/t5/QlikView/manipulating-data-in-table/m-p/188679#M51839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;You can try the following. This will give you what you need at load time. I hope this is what you need.&lt;/P&gt;&lt;P&gt;pymt_tmp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;PYear, PMonth, PPayment&lt;BR /&gt;2010, 3, 500&lt;BR /&gt;2010, 4, 500&lt;BR /&gt;2010, 5, 500&lt;BR /&gt;2010, 6, 500&lt;BR /&gt;2010, 7, 500&lt;BR /&gt;2010, 8, 500&lt;BR /&gt;2010, 9, 500&lt;BR /&gt;2010, 10, 500&lt;BR /&gt;2010, 11, 500&lt;BR /&gt;2010, 12, 500&lt;BR /&gt;2011, 1, 500&lt;BR /&gt;2011, 2, 500&lt;BR /&gt;2011, 3, 500&lt;BR /&gt;2011, 4, 500&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;A1:&lt;BR /&gt;load PYear as Year1, PMonth as Month1, PPayment as Payment1 , 1 as PK&lt;BR /&gt;resident pymt_tmp;&lt;/P&gt;&lt;P&gt;drop table pymt_tmp;&lt;/P&gt;&lt;P&gt;A2:&lt;BR /&gt;load PK, sum(Payment1) as TPayment2&lt;BR /&gt;resident A1&lt;BR /&gt;GROUP BY PK;&lt;/P&gt;&lt;P&gt;A3:&lt;BR /&gt;Left join (A1)&lt;BR /&gt;load TPayment2 as TPayment3&lt;BR /&gt;resident A2;&lt;/P&gt;&lt;P&gt;pymt:&lt;/P&gt;&lt;P&gt;load Year1 as Year3, Month1 as Month3, (TPayment3 - (Payment1 * rowno())) as Payment3&lt;BR /&gt;resident A1;&lt;/P&gt;&lt;P&gt;drop table A2&lt;/P&gt;&lt;P&gt;This will create two table, you can ignor table A1, the table Pymt is the one what you need.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukund&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 13:28:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/manipulating-data-in-table/m-p/188679#M51839</guid>
      <dc:creator />
      <dc:date>2010-03-22T13:28:09Z</dc:date>
    </item>
    <item>
      <title>manipulating data in table</title>
      <link>https://community.qlik.com/t5/QlikView/manipulating-data-in-table/m-p/188680#M51840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mukund,&lt;/P&gt;&lt;P&gt;Many thanks for the reply, the code you supplied is really helpful for something else I'm working on &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For this though I need to keep the underlying data at the payment level and calculate the balance in the chart... as there's a lot of underlying data that builds up to the totals.&lt;/P&gt;&lt;P&gt;I found something on the Qlik help for chart inter record functions and used the following to create an expression called Payment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if(rowno()=1,sum( {1} Total Payment ), above( Balance ) - Payment )&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Kind Regards,&lt;BR /&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 14:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/manipulating-data-in-table/m-p/188680#M51840</guid>
      <dc:creator />
      <dc:date>2010-03-22T14:20:22Z</dc:date>
    </item>
  </channel>
</rss>

