<?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: Loop with variable. but the loop keeps running in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-with-variable-but-the-loop-keeps-running/m-p/1138581#M630715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Single Quotes...&lt;/P&gt;&lt;P&gt;May be &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #edf8ca;"&gt;Let VarRow = Num(Peek('MaxRow',0,'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Rownr'));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2016 09:08:17 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2016-06-29T09:08:17Z</dc:date>
    <item>
      <title>Loop with variable. but the loop keeps running</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-with-variable-but-the-loop-keeps-running/m-p/1138577#M630711</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;I use a loop together with a variable VarRow. The table conains 5 rows and VarRow =5. But When I run below script (part of) the loops just keeps on going.&lt;/P&gt;&lt;P&gt;Any tips? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rownr:&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load Max(Rows) as MaxRow&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Tmp_Agreements1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set VarRow = MaxRow;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;For I =0 to VarRow&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tmp_BridgeTable: &lt;/STRONG&gt;&lt;BR /&gt;Load &lt;BR /&gt; distinct Productgroep as Bonus_Productgroep ,&lt;BR /&gt; Peek('Agree_End_Date',$(I),'Tmp_Agreements1') as Agree_End_Date ,&lt;BR /&gt; Peek('Agree_Start_Date',$(I),'Tmp_Agreements1') as Agree_Start_Date ,&lt;BR /&gt; Peek('Bonus_Hoofdorganisatie',$(I),'Tmp_Agreements1')as Bonus_Hoofdorganisatie,&lt;BR /&gt; Peek('Bonus_Abs',$(I),'Tmp_Agreements1')as Bonus_Abs,&lt;BR /&gt; Peek('Bonus_%',$(I),'Tmp_Agreements1')as Bonus_%,&lt;BR /&gt; Peek('Bonus_Base',$(I),'Tmp_Agreements1') as Bonus_Base,&lt;BR /&gt; Peek('Bonus_Artnr',$(I),'Tmp_Agreements1') as Bonus_Artnr,&lt;BR /&gt; Peek('Agreement_Description',$(I),'Tmp_Agreements1')as Agreement_Description,&lt;BR /&gt; Peek('Overeenkomst',$(I),'Tmp_Agreements1')as Overeenkomst&lt;BR /&gt;Resident Sales_Lines ; &lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Next I&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 08:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-with-variable-but-the-loop-keeps-running/m-p/1138577#M630711</guid>
      <dc:creator>joris_lansdaal</dc:creator>
      <dc:date>2016-06-29T08:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Loop with variable. but the loop keeps running</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-with-variable-but-the-loop-keeps-running/m-p/1138578#M630712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Set VarRow = Peek('MaxRow',0,'&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Rownr');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Drop Table &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Rownr;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3366ff; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;For I =0 to '$(VarRow)'-1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 08:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-with-variable-but-the-loop-keeps-running/m-p/1138578#M630712</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-06-29T08:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Loop with variable. but the loop keeps running</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-with-variable-but-the-loop-keeps-running/m-p/1138579#M630713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="error.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/129524_error.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks, but i get an error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 09:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-with-variable-but-the-loop-keeps-running/m-p/1138579#M630713</guid>
      <dc:creator>joris_lansdaal</dc:creator>
      <dc:date>2016-06-29T09:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Loop with variable. but the loop keeps running</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-with-variable-but-the-loop-keeps-running/m-p/1138580#M630714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But with Let instead of Set it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 09:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-with-variable-but-the-loop-keeps-running/m-p/1138580#M630714</guid>
      <dc:creator>joris_lansdaal</dc:creator>
      <dc:date>2016-06-29T09:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loop with variable. but the loop keeps running</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-with-variable-but-the-loop-keeps-running/m-p/1138581#M630715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Single Quotes...&lt;/P&gt;&lt;P&gt;May be &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #edf8ca;"&gt;Let VarRow = Num(Peek('MaxRow',0,'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Rownr'));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 09:08:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-with-variable-but-the-loop-keeps-running/m-p/1138581#M630715</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-06-29T09:08:17Z</dc:date>
    </item>
  </channel>
</rss>

