<?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 For...next goes beyond high limit in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/For-next-goes-beyond-high-limit/m-p/171630#M41554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try this script change&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;SQL SELECT StartDate, EndDate FROM db1.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LET B = num(EndDate - StartDate); //just in case &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;FOR i=0 TO $(B)&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Load //why you don't have a load statement if you have a &lt;B&gt;From&lt;/B&gt;??&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;StartDate + $(i) AS Day&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;FROM db1 //where is the select/load of this &lt;B&gt;from&lt;/B&gt;??&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;you can use the trace $(B), and with the option "Generate Log File" in "Document Properties", you will see the B value&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 May 2010 23:01:03 GMT</pubDate>
    <dc:creator>hector</dc:creator>
    <dc:date>2010-05-31T23:01:03Z</dc:date>
    <item>
      <title>For...next goes beyond high limit</title>
      <link>https://community.qlik.com/t5/QlikView/For-next-goes-beyond-high-limit/m-p/171629#M41553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All, I'm trying to create a table o records being single days out of given periods. To do so, I'm using for...next loop but get stuck with defining "TO" value in the counter. The script looks like below:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SQL SELECT StartDate, EndDate FROM db1.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LET B = EndDate - StartDate&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;FOR i=0 TO '$(B)'&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;StartDate + '(i)' AS Day&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;FROM db1&lt;/P&gt;&lt;P&gt;When I put marks to B i.e. B = 'EndDate - StartDate' the script starts off but goes beyond the high limit. Could you please help with the code?&lt;/P&gt;&lt;P&gt;BR, Przemek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 22:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-next-goes-beyond-high-limit/m-p/171629#M41553</guid>
      <dc:creator />
      <dc:date>2010-05-31T22:40:41Z</dc:date>
    </item>
    <item>
      <title>For...next goes beyond high limit</title>
      <link>https://community.qlik.com/t5/QlikView/For-next-goes-beyond-high-limit/m-p/171630#M41554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try this script change&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;SQL SELECT StartDate, EndDate FROM db1.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LET B = num(EndDate - StartDate); //just in case &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;FOR i=0 TO $(B)&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Load //why you don't have a load statement if you have a &lt;B&gt;From&lt;/B&gt;??&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;StartDate + $(i) AS Day&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;FROM db1 //where is the select/load of this &lt;B&gt;from&lt;/B&gt;??&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;you can use the trace $(B), and with the option "Generate Log File" in "Document Properties", you will see the B value&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 23:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-next-goes-beyond-high-limit/m-p/171630#M41554</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-05-31T23:01:03Z</dc:date>
    </item>
  </channel>
</rss>

