<?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: Recursive calculation in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Recursive-calculation-in-script/m-p/1211882#M388626</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;one example using your first table (Table-A):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_238928_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143318_QlikCommunity_Thread_238928_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_238928_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/143319_QlikCommunity_Thread_238928_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_238928_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/143320_QlikCommunity_Thread_238928_Pic3.JPG" style="height: 139px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_238928_Pic4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/143321_QlikCommunity_Thread_238928_Pic4.JPG" style="height: 313px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1478638879927293" jivemacro_uid="_1478638879927293"&gt;
&lt;P&gt;TableA:&lt;/P&gt;
&lt;P&gt;CrossTable(attribute, data)&lt;/P&gt;
&lt;P&gt;LOAD Row,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; E,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; G&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="238928" data-objecttype="1" href="https://community.qlik.com/thread/238928"&gt;https://community.qlik.com/thread/238928&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2016 21:02:03 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2016-11-08T21:02:03Z</dc:date>
    <item>
      <title>Recursive calculation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-calculation-in-script/m-p/1211877#M388621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anyone tell me how can i do it (following) in Qlikview? As per my finding it can not be done, if so what are the workarounds that anyone suggest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table-A&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid rgb(0, 0, 0); width: 187px; height: 45px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Row&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;E&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;F&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;G&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.0111&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.2222&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.1222&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.3333&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.4444&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.2322&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table-B&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid rgb(0, 0, 0); width: 364px; height: 44px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Row&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;A&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;B&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;C&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;D&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A+(A*E)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B+(B*F)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C+(C*G)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 17:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-calculation-in-script/m-p/1211877#M388621</guid>
      <dc:creator />
      <dc:date>2016-11-07T17:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive calculation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-calculation-in-script/m-p/1211878#M388622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what your real requirement is, but if you are worried about recursive calculations and looking for a way to perform them only once (instead of getting a lengthy formula for D, with calculations already done in C,B and A) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use preceding loads:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD Row, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; G&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="238928" data-objecttype="1" href="https://community.qlik.com/thread/238928"&gt;https://community.qlik.com/thread/238928&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load Row,A,B,C,D;&lt;/P&gt;&lt;P&gt;Load *, C+(C*G) as D;&lt;/P&gt;&lt;P&gt;Load *, B+(B*F) as C;&lt;/P&gt;&lt;P&gt;Load *, A+(A*E) as B;&lt;/P&gt;&lt;P&gt;Load *,100 As A Resident Table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 17:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-calculation-in-script/m-p/1211878#M388622</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2016-11-07T17:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive calculation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-calculation-in-script/m-p/1211879#M388623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qvw attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 17:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-calculation-in-script/m-p/1211879#M388623</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2016-11-07T17:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive calculation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-calculation-in-script/m-p/1211880#M388624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Piet for your reply.&lt;/P&gt;&lt;P&gt;Please refer to the snapshot pasted below:&lt;/P&gt;&lt;P&gt;Table A - from row 4-6 (few selected rows)&lt;/P&gt;&lt;P&gt;Table B - from row 50 - 53 (few selected rows)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="143142" alt="analysis.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143142_analysis.png" style="height: 196px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I have approx 300 columns (date) which are dynamic and grows with time.&lt;/P&gt;&lt;P&gt;Now, the recursive calculation occurs in the second table starting from row 49. The calculation refers to data in table A than a cell value is calculated than that value is used in the next cell of table B which can be expressed like this for cell D and E in table B and carried forward in the same manner for the remaining columns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B, Cell &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =C50+C50*D4&lt;/P&gt;&lt;P&gt;Table B, Cell E:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =D50+D50*E4 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope i've made myself clear; as you might note i have created a cross table of the above, so the date and sectors are rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 18:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-calculation-in-script/m-p/1211880#M388624</guid>
      <dc:creator />
      <dc:date>2016-11-07T18:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive calculation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-calculation-in-script/m-p/1211881#M388625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post some sample data as file not as screenshot to test with.&lt;/P&gt;&lt;P&gt;I guess you want to crosstable load your table at first instead of dealing with constantly growing column/field numbers?!?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 21:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-calculation-in-script/m-p/1211881#M388625</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-11-07T21:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive calculation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-calculation-in-script/m-p/1211882#M388626</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;one example using your first table (Table-A):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_238928_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143318_QlikCommunity_Thread_238928_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_238928_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/143319_QlikCommunity_Thread_238928_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_238928_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/143320_QlikCommunity_Thread_238928_Pic3.JPG" style="height: 139px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_238928_Pic4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/143321_QlikCommunity_Thread_238928_Pic4.JPG" style="height: 313px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1478638879927293" jivemacro_uid="_1478638879927293"&gt;
&lt;P&gt;TableA:&lt;/P&gt;
&lt;P&gt;CrossTable(attribute, data)&lt;/P&gt;
&lt;P&gt;LOAD Row,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; E,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; G&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="238928" data-objecttype="1" href="https://community.qlik.com/thread/238928"&gt;https://community.qlik.com/thread/238928&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 21:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-calculation-in-script/m-p/1211882#M388626</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-11-08T21:02:03Z</dc:date>
    </item>
  </channel>
</rss>

