<?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: QV Script: Cycles vs Arithmetic Progression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QV-Script-Cycles-vs-Arithmetic-Progression/m-p/912676#M316702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can calculate the Sum of your Peek'ed values using an aggregation in a LOAD statement, see attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2015 17:38:49 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-08-05T17:38:49Z</dc:date>
    <item>
      <title>QV Script: Cycles vs Arithmetic Progression</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Script-Cycles-vs-Arithmetic-Progression/m-p/912675#M316701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help me to calculate the variable - X in script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't need to use cycle, because processing of a cycle takes a lot of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help to find the right way to calculate, as I said using Arithmetic Progression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example cycle:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14387901258114373 jive_text_macro" jivemacro_uid="_14387901258114373" modifiedtitle="true"&gt;
&lt;P&gt;FOR vIx = 0 to 10&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET X = X + vIx;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; NEXT vIx&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;equals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14387901542314356 jive_text_macro" jivemacro_uid="_14387901542314356" modifiedtitle="true"&gt;
&lt;P&gt;LET X = ((10+1)/2)*10;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's okay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what i'm going to do when in my calculation I need to use values of each row of one table on each iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to replace processing of that cycle: ??? Any advices ?&amp;nbsp; &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_14387903810287732" jivemacro_uid="_14387903810287732"&gt;
&lt;P&gt;FOR vIx = 0 to 10&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET l1 = Peek(FieldName(Sex,'tmp'),Age+vIx,'tmp');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET X = (X + vIx) + l1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; NEXT vIx&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm open for discussions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope for yours help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: App in attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 16:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Script-Cycles-vs-Arithmetic-Progression/m-p/912675#M316701</guid>
      <dc:creator>lylererger</dc:creator>
      <dc:date>2015-08-05T16:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: QV Script: Cycles vs Arithmetic Progression</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Script-Cycles-vs-Arithmetic-Progression/m-p/912676#M316702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can calculate the Sum of your Peek'ed values using an aggregation in a LOAD statement, see attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 17:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Script-Cycles-vs-Arithmetic-Progression/m-p/912676#M316702</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-05T17:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: QV Script: Cycles vs Arithmetic Progression</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Script-Cycles-vs-Arithmetic-Progression/m-p/912677#M316703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl, as usual you helps me! Many many thanks to you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: When from a retail you turn into insurance, it is necessary to change thinking&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 07:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Script-Cycles-vs-Arithmetic-Progression/m-p/912677#M316703</guid>
      <dc:creator>lylererger</dc:creator>
      <dc:date>2015-08-06T07:09:36Z</dc:date>
    </item>
  </channel>
</rss>

