<?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 Appending rows to a table in a loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Appending-rows-to-a-table-in-a-loop/m-p/455907#M484286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is frustrating me more than it reasonably should, but here is my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to append rows in a table within an IF..ELSEIF..END IF loop. I have tried several variations and the latest that made sense is this (dummy code):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INLINE_TABLE_TO_BE_APPENDED:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Col1, Col2, Col3&lt;/P&gt;&lt;P&gt;'AA','BB','CC'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=0 to &amp;lt;some number&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;business logic that calculates 3 variables&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/business logic that calculates 3 variables&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Var1 = 'DD';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Var2 = 'EE';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Var3 = 'FF';&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;INLINE_TABLE_TO_BE_APPENDED:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp; Var1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Var2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Var3&lt;/P&gt;&lt;P&gt;Autogenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect the INLINE_TABLE_TO_BE_APPENDED to look like this after a few iterations of the loop..:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Col1, Col2, Col3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;'AA','BB','CC'&lt;/P&gt;&lt;P&gt;'DD','EE','FF',&lt;/P&gt;&lt;P&gt;'44','55','66'&lt;/P&gt;&lt;P&gt;'blah','meh','moo'&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead I am greeted with a "missing/msplaced FROM" error and I just can't see it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to append rows to a table in a loop, this approach may be totally wrong, so please feel free to push me in the right direction.&lt;/P&gt;&lt;P&gt;Any help is really appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jun 2013 10:40:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-10T10:40:19Z</dc:date>
    <item>
      <title>Appending rows to a table in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Appending-rows-to-a-table-in-a-loop/m-p/455907#M484286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is frustrating me more than it reasonably should, but here is my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to append rows in a table within an IF..ELSEIF..END IF loop. I have tried several variations and the latest that made sense is this (dummy code):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INLINE_TABLE_TO_BE_APPENDED:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Col1, Col2, Col3&lt;/P&gt;&lt;P&gt;'AA','BB','CC'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=0 to &amp;lt;some number&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;business logic that calculates 3 variables&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/business logic that calculates 3 variables&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Var1 = 'DD';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Var2 = 'EE';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Var3 = 'FF';&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;INLINE_TABLE_TO_BE_APPENDED:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp; Var1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Var2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Var3&lt;/P&gt;&lt;P&gt;Autogenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect the INLINE_TABLE_TO_BE_APPENDED to look like this after a few iterations of the loop..:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Col1, Col2, Col3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;'AA','BB','CC'&lt;/P&gt;&lt;P&gt;'DD','EE','FF',&lt;/P&gt;&lt;P&gt;'44','55','66'&lt;/P&gt;&lt;P&gt;'blah','meh','moo'&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead I am greeted with a "missing/msplaced FROM" error and I just can't see it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to append rows to a table in a loop, this approach may be totally wrong, so please feel free to push me in the right direction.&lt;/P&gt;&lt;P&gt;Any help is really appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 10:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appending-rows-to-a-table-in-a-loop/m-p/455907#M484286</guid>
      <dc:creator />
      <dc:date>2013-06-10T10:40:19Z</dc:date>
    </item>
  </channel>
</rss>

