<?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: For to loop not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/For-to-loop-not-working/m-p/1456718#M35871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is the part which is a problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188464_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't really use Sum/Min/Max in your variable directly... may be you can do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Sum(Aantal) as SumAantal&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident ....;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vAantal1 = Peek('SumAantal');&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Dec 2017 12:47:59 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-12-29T12:47:59Z</dc:date>
    <item>
      <title>For to loop not working</title>
      <link>https://community.qlik.com/t5/App-Development/For-to-loop-not-working/m-p/1456717#M35870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a for loop which partially looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vAantal1 = sum(num(Aantal));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO xxxxx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set Counter =&amp;nbsp; 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Counter = 0 to $(vAantal)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field Aantal is coming from a previous loaded table and contains the total number of records in the table. The second loop should load all the details in a loop which runs from 0 to the total number of records. But it keeps giving me the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following error occured:&lt;/P&gt;&lt;P&gt;for Counter = 0 to &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 11:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-to-loop-not-working/m-p/1456717#M35870</guid>
      <dc:creator>pauldamen</dc:creator>
      <dc:date>2017-12-29T11:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: For to loop not working</title>
      <link>https://community.qlik.com/t5/App-Development/For-to-loop-not-working/m-p/1456718#M35871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is the part which is a problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188464_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't really use Sum/Min/Max in your variable directly... may be you can do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Sum(Aantal) as SumAantal&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident ....;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vAantal1 = Peek('SumAantal');&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 12:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/For-to-loop-not-working/m-p/1456718#M35871</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-29T12:47:59Z</dc:date>
    </item>
  </channel>
</rss>

