<?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: Basic for...next loop in script, but can't make it to work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Basic-for-next-loop-in-script-but-can-t-make-it-to-work/m-p/1205214#M626887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works. Tanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2016 18:19:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-02T18:19:22Z</dc:date>
    <item>
      <title>Basic for...next loop in script, but can't make it to work</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-for-next-loop-in-script-but-can-t-make-it-to-work/m-p/1205211#M626884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone. I'm Christian, a Qlik newbie, and this is my first question &lt;/P&gt;&lt;P&gt;I have several days in a qvd file, have no problems to obtain maximun and minimun dates, and number of days between that dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is a loop that goes from 0 to that number of days. But I'm making something wrong. The loop always exits because of the 'if' condition rather than 'for' condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm doing worng? Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cotas:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LOAD &lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;min(Date(Floor(FechaAlta))) as minimo,&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;max(Date(Floor(FechaAlta))) as maximo,&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;max(Date(Floor(FechaAlta)))-min(Date(Floor(FechaAlta))) as dias&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Resident carga;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDiasInFile = 'dias';&lt;/P&gt;&lt;P&gt;LET vPasesInFile = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for vI = 0 to '$(vDiasInFile)'&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;vPasesInFile = vPasesInFile + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;IF vI &amp;gt;= 10 then&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;EXIT For;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT vI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 15:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-for-next-loop-in-script-but-can-t-make-it-to-work/m-p/1205211#M626884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-02T15:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Basic for...next loop in script, but can't make it to work</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-for-next-loop-in-script-but-can-t-make-it-to-work/m-p/1205212#M626885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LET vDiasInFile = &lt;SPAN style="color: #ff0000;"&gt;Peek&lt;/SPAN&gt;('dias');&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 16:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-for-next-loop-in-script-but-can-t-make-it-to-work/m-p/1205212#M626885</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-02T16:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Basic for...next loop in script, but can't make it to work</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-for-next-loop-in-script-but-can-t-make-it-to-work/m-p/1205213#M626886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tks sunny, will try and let you know!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 18:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-for-next-loop-in-script-but-can-t-make-it-to-work/m-p/1205213#M626886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-02T18:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Basic for...next loop in script, but can't make it to work</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-for-next-loop-in-script-but-can-t-make-it-to-work/m-p/1205214#M626887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works. Tanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 18:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-for-next-loop-in-script-but-can-t-make-it-to-work/m-p/1205214#M626887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-02T18:19:22Z</dc:date>
    </item>
  </channel>
</rss>

