<?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 Resolving partial sums - For loop? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Resolving-partial-sums-For-loop/m-p/912830#M652713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an interesting issue I am about to take on. I need to calculate a partial sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y = T - a&lt;SPAN style="font-family: symbol;"&gt; +&amp;nbsp; &lt;STRONG&gt;&lt;EM style="color: #434343; font-size: 14.0pt; font-family: Calibri;"&gt;Σ &lt;/EM&gt;&lt;/STRONG&gt;x/(1+b)^i&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;Where the partial sum (&lt;STRONG style="font-family: symbol; font-size: 13.3333330154419px;"&gt;&lt;EM style="color: #434343; font-size: 14.0pt; font-family: Calibri;"&gt;Σ&lt;/EM&gt;&lt;/STRONG&gt;) is from i=1 to n and varies for each record between 1 and 25. Basically all of the terms of the equation are known and are in a single row of a table except for y. Each record has this single row of known terms. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;I would like to add a column to the table for y using the data from that single row into this equation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;How do I get this partial sum to resolve? Is a For loop in the script my best option?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 01:10:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-06T01:10:20Z</dc:date>
    <item>
      <title>Resolving partial sums - For loop?</title>
      <link>https://community.qlik.com/t5/QlikView/Resolving-partial-sums-For-loop/m-p/912830#M652713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an interesting issue I am about to take on. I need to calculate a partial sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y = T - a&lt;SPAN style="font-family: symbol;"&gt; +&amp;nbsp; &lt;STRONG&gt;&lt;EM style="color: #434343; font-size: 14.0pt; font-family: Calibri;"&gt;Σ &lt;/EM&gt;&lt;/STRONG&gt;x/(1+b)^i&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;Where the partial sum (&lt;STRONG style="font-family: symbol; font-size: 13.3333330154419px;"&gt;&lt;EM style="color: #434343; font-size: 14.0pt; font-family: Calibri;"&gt;Σ&lt;/EM&gt;&lt;/STRONG&gt;) is from i=1 to n and varies for each record between 1 and 25. Basically all of the terms of the equation are known and are in a single row of a table except for y. Each record has this single row of known terms. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;I would like to add a column to the table for y using the data from that single row into this equation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;How do I get this partial sum to resolve? Is a For loop in the script my best option?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 01:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resolving-partial-sums-For-loop/m-p/912830#M652713</guid>
      <dc:creator />
      <dc:date>2015-08-06T01:10:20Z</dc:date>
    </item>
  </channel>
</rss>

