<?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 each loop while add load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/For-each-loop-while-add-load/m-p/826895#M667750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have studied the related topics to my Theme, but still don't have a clear answer for my question. Is it possible to make the for each loop work, if you have add load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let var = file1, file2, file3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each file in $(var)&lt;/P&gt;&lt;P&gt;tabletemp:&lt;/P&gt;&lt;P&gt;add load *&lt;/P&gt;&lt;P&gt;FROM $(var);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish you a nice day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Dec 2014 12:25:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-15T12:25:44Z</dc:date>
    <item>
      <title>For each loop while add load</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-loop-while-add-load/m-p/826895#M667750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have studied the related topics to my Theme, but still don't have a clear answer for my question. Is it possible to make the for each loop work, if you have add load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let var = file1, file2, file3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each file in $(var)&lt;/P&gt;&lt;P&gt;tabletemp:&lt;/P&gt;&lt;P&gt;add load *&lt;/P&gt;&lt;P&gt;FROM $(var);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish you a nice day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 12:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-loop-while-add-load/m-p/826895#M667750</guid>
      <dc:creator />
      <dc:date>2014-12-15T12:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: For each loop while add load</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-loop-while-add-load/m-p/826896#M667751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will be concatenated to the same table automatically by a QlikView phenomenon called ... AutoConcatenate. When the next LOAD detects a similar table layout as the last one, the new data will be concatenated to the resident table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW to make it work, drop the add keyword, change FROM $(var) into FROM $(file) and add a NEXT keyword to the end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, there may be situations where this trick refuses to work (I got a couple of cases that were very RAM-dependent, and some may have been hampered by other things in QlikView not working altogether well)). To make sure that it works under all circumstanctes, you can force concatenation by using a $-sign expansion variable, like in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET var = 'file1', 'file2', 'file3'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vPrefix = 'tabletemp:';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FOR EACH file IN $(var)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; $(vPrefix)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; LOAD *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; FROM $(var);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; LET vPrefix = 'CONCATENATE (tabletemp)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NEXT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax checker will go crazy on the free variable. Don't worry, it'll still work out ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 13:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-loop-while-add-load/m-p/826896#M667751</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-12-15T13:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: For each loop while add load</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-loop-while-add-load/m-p/826897#M667752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for the answer, Peter! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; sorry for mistakes... I thought that when we use partial reload, we need to add ADD before loading -&amp;gt; add load, otherwise it won't work? My problem is that when I use partial reload, only first document from $(var) is opened but not the other two...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 13:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-loop-while-add-load/m-p/826897#M667752</guid>
      <dc:creator />
      <dc:date>2014-12-15T13:44:59Z</dc:date>
    </item>
  </channel>
</rss>

