<?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 multiple tables in a sheet and stop load script manually in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/multiple-tables-in-a-sheet-and-stop-load-script-manually/m-p/38730#M773171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I wuold your opinion about my strategy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the situation: I've an excel with one sheet and inside this there are multiple tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Each table is separated from the next one by two empty rows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want load the table from the beggining of the sheet and every time that I found an empty row I want increment a variable by 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore I want add where condition at the end of load script: when variable's value is &amp;gt;= 2 I'll stop the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;What do you think about this strategy? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;How can I force the exit from load script?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>multiple tables in a sheet and stop load script manually</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-tables-in-a-sheet-and-stop-load-script-manually/m-p/38730#M773171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I wuold your opinion about my strategy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the situation: I've an excel with one sheet and inside this there are multiple tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Each table is separated from the next one by two empty rows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want load the table from the beggining of the sheet and every time that I found an empty row I want increment a variable by 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore I want add where condition at the end of load script: when variable's value is &amp;gt;= 2 I'll stop the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;What do you think about this strategy? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;How can I force the exit from load script?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-tables-in-a-sheet-and-stop-load-script-manually/m-p/38730#M773171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: multiple tables in a sheet and stop load script manually</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-tables-in-a-sheet-and-stop-load-script-manually/m-p/38731#M773173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="font-color-meta" style="padding: 0 0 5px; font-size: 1.2em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #444444; background-color: #e6e6e6;"&gt;&lt;SPAN class="replyToName" style="font-weight: inherit; font-style: inherit; font-size: 15.6px; font-family: inherit;"&gt;Andrea,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;How can I force the exit from load script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Use Exit Script function in script level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Arvind Patil&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 10:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-tables-in-a-sheet-and-stop-load-script-manually/m-p/38731#M773173</guid>
      <dc:creator>arvind_patil</dc:creator>
      <dc:date>2018-05-16T10:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: multiple tables in a sheet and stop load script manually</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-tables-in-a-sheet-and-stop-load-script-manually/m-p/38732#M773175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This couldn't be done with single-load else you will need a multi-step approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This could be for example to load the whole sheet with all the tables into a single table, identifying each sub-table (header and data separate) with various check-statements and then splitting the tables again with the help of these identifying-data whereby you need an additional step to extract the table-header and creating a mapping table for an appropriate rename-statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another approach would be to use the FIRST statement in combination of the (... HEADER is n lines ...) from the file-format. But with this method you must also know when a table begins and end - this meant you need before a load which identified them by using recno(), rowno() and various check-statements maybe in combination with interrecord-functions like peek() or previous(). With this kind of data you creates a for loop which picked the first/header information into variables which is then used within the load-statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second approach here is in my opinion the easier one and with a quick look in the help to the mentioned statements and functions you could start and I think with a few trials you will understand the above described logic and after them it's just a matter of adjusting the identifying routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-9314"&gt;Peek() or Previous() ?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7063"&gt;RecNo or RowNo?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3274"&gt;Loops in the Script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 11:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-tables-in-a-sheet-and-stop-load-script-manually/m-p/38732#M773175</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-05-16T11:14:32Z</dc:date>
    </item>
  </channel>
</rss>

