<?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: First 1 load loading multiple rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899282#M312854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume the optimized load is causing the issue with FIRST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried a where clause with FIRST I would have assumed that it's &lt;EM&gt;not &lt;/EM&gt;doing the comparison on the complete records set?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2015 12:30:55 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-07-20T12:30:55Z</dc:date>
    <item>
      <title>First 1 load loading multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899275#M312847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we encountered this weird behavior in QV where we wanted to load a specific field of the first row from 12 QVDs.&amp;nbsp; It ended up loading multiple rows (progressively) from succeeding files.&lt;/P&gt;&lt;P&gt;here is a simplified test script we ran:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;Calendar2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; load '' as [KeyFiscalYearWeek2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; AutoGenerate 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Concatenate(Calendar2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; first 1 load &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; [Fiscal Year Week] as KeyFiscalYearWeek2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from $(vSourceTable_VendorSales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;where the from is a path with *.qvd pointing to 12 files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the reload:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="load.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93210_load.png" style="height: auto;" /&gt; &lt;/P&gt;&lt;P&gt;this is the table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015_07_17_10_38_00_.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/93211_2015_07_17_10_38_00_.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one work around we did (as the field is unique per file) is:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;Concatenate(Calendar2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; first 1 load distinct&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; [Fiscal Year Week] as KeyFiscalYearWeek2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from $(vSourceTable_VendorSales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where it apparently read only 2 rows per file:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015_07_17_10_40_48_Script_Execution_Progress.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/93212_2015_07_17_10_40_48_Script_Execution_Progress.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It just so happened that the field we are loading is unique per file so the work around is ok.&amp;nbsp; if for a different test case this may not apply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weve tried other work around(s) but i think a simple first 1 load should work the way it is intended.&amp;nbsp; Some of our work arounds included adding fields to the autogenerate script, adding expressions in the first 1 load script (just mind boggling!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone experienced this?&amp;nbsp; is there anything we are missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;edwin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 14:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899275#M312847</guid>
      <dc:creator />
      <dc:date>2015-07-17T14:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: First 1 load loading multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899276#M312848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why it is behaving like that. This is happening when the tables are being concatenated. Otherwise it is working as expected. Somebody from Qlik should explain this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using FIRST 1, use WHERE condition like RecNo()=1 as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FYW:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Fiscal Year Week] as KeyFiscalYearWeek2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from $(vSourceTable_VendorSales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(qvd) Where RecNo()=1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KKR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 19:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899276#M312848</guid>
      <dc:creator />
      <dc:date>2015-07-17T19:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: First 1 load loading multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899277#M312849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it seems as the file is duplicating itself, what for were you using before adding the variable or what is inside the variable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also try using a distinct &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 20:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899277#M312849</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-07-17T20:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: First 1 load loading multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899278#M312850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens when you do an unoptimized LOAD? Performance shouldn't matter much because you want the first row anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;Calendar2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; load '' as [KeyFiscalYearWeek2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; AutoGenerate 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;Concatenate(Calendar2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; first 1 load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; [Fiscal Year Week] as KeyFiscalYearWeek2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from $(vSourceTable_VendorSales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Where 1 = 1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 20:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899278#M312850</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-17T20:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: First 1 load loading multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899279#M312851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we did try a where clause (Where not exists).&amp;nbsp; we got the correct result as the field is unique per file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;for a different requirement this may not work.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can see multiple variations of solutions using a where clause.&amp;nbsp; the issue there though is that this was an optimization exercise.&amp;nbsp; using a where clause apparently loads the whole QVD (understandably QV would need to load all rows to figure which ones would satisfy the where clause).&amp;nbsp; and we have QVDs with multiple million records, hence we wanted to use the first 1 load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 12:22:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899279#M312851</guid>
      <dc:creator />
      <dc:date>2015-07-20T12:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: First 1 load loading multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899280#M312852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we tried a distinct already and it does work, though it apparently loads multiple records prior to applying the distinct - which defeats the purpose of the first 1 load.&amp;nbsp; again, this was an optimization exercise.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure i got the question re the variable.&amp;nbsp; the only variable used is the QVD directory which points to multiple QVDs.&amp;nbsp; we need this to be a variable.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i havent tested using a string in the FROM clause but that shouldnt matter.&amp;nbsp; if it does then thats another question WHY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 12:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899280#M312852</guid>
      <dc:creator />
      <dc:date>2015-07-20T12:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: First 1 load loading multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899281#M312853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please see my reply to the suggestion to use WHERE clause.&amp;nbsp; we are optimizing the load and this defeats the purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 12:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899281#M312853</guid>
      <dc:creator />
      <dc:date>2015-07-20T12:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: First 1 load loading multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899282#M312854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume the optimized load is causing the issue with FIRST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried a where clause with FIRST I would have assumed that it's &lt;EM&gt;not &lt;/EM&gt;doing the comparison on the complete records set?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 12:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899282#M312854</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-20T12:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: First 1 load loading multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899283#M312855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just to summarize what weve done that kinda works:&lt;/P&gt;&lt;P&gt;1. we added fields to the autogenerate (by accident we found that if the autogenerate (target table) had multiple fields - the target field + any other field, the FIRST 1 LOAD clause works):&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;Calendar2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; load '' as [KeyFiscalYearWeek2],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; load '' as anotherField&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; AutoGenerate 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;Concatenate(Calendar2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; first 1 load .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;2. we added calculated fields to the load statement - the FIRST 1 LOAD clause works:&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;Calendar2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; load '' as [KeyFiscalYearWeek2],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; load '' as anotherField&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; AutoGenerate 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;Concatenate(Calendar2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 10.6666669845581px; font-family: 'courier new', courier; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp; first 1 load &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 10.6666669845581px;"&gt;[Fiscal Year Week] as KeyFiscalYearWeek2,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 10.6666669845581px; font-family: 'courier new', courier; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; left([&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 10.6666669845581px;"&gt;Fiscal Year Week],4) as [anotherField]...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;3. one more thing we tested but was not successful.&amp;nbsp; we also removed the rename in the the load statement&lt;SPAN style="font-size: 13.3333330154419px;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;Calendar2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; load '' as [&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 10.6666669845581px;"&gt;Fiscal Year Week&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; AutoGenerate 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;Concatenate(Calendar2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; first 1 load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 10.6666669845581px;"&gt;[Fiscal Year Week] &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;from $(vSourceTable_VendorSales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;this resulted in progressive fetches of multiple rows:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;Calendar2 &amp;lt;&amp;lt; AUTOGENERATE(0) 0 lines fetched&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Calendar2 &amp;lt;&amp;lt; 201450 (qvd optimized) 1 lines fetched&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Calendar2 &amp;lt;&amp;lt; 201451 (qvd optimized) 3 lines fetched&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Calendar2 &amp;lt;&amp;lt; 201452 (qvd optimized) 7 lines fetched&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Calendar2 &amp;lt;&amp;lt; 201453 (qvd optimized) 15 lines fetched&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Calendar2 &amp;lt;&amp;lt; 201501 (qvd optimized) 31 lines fetched&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Calendar2 &amp;lt;&amp;lt; 201502 (qvd optimized) 63 lines fetched&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Calendar2 &amp;lt;&amp;lt; 201503 (qvd optimized) 127 lines fetched&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Calendar2 &amp;lt;&amp;lt; 201504 (qvd optimized) 255 lines fetched&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Calendar2 &amp;lt;&amp;lt; 201505 (qvd optimized) 511 lines fetched&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Calendar2 &amp;lt;&amp;lt; 201506 (qvd optimized) 1,023 lines fetched&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Calendar2 &amp;lt;&amp;lt; 201507 (qvd optimized) 2,047 lines fetched&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;Calendar2 &amp;lt;&amp;lt; 201508 (qvd optimized) 4,095 lines fetched&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 12:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899283#M312855</guid>
      <dc:creator />
      <dc:date>2015-07-20T12:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: First 1 load loading multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899284#M312856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl, &lt;/P&gt;&lt;P&gt;yes, weve tried the WHERE clause and it does load the whole QVD.&amp;nbsp; i just tried using a WHERE recno() =1 and it loaded the whole QVD unoptimized.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 12:41:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899284#M312856</guid>
      <dc:creator />
      <dc:date>2015-07-20T12:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: First 1 load loading multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899285#M312857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do see something different:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20.07.2015 14:54:31&lt;/P&gt;&lt;P&gt;Table1 &amp;lt;&amp;lt; AUTOGENERATE(50000000) 50.000.000 lines fetched&lt;/P&gt;&lt;P&gt;20.07.2015 14:56:57&lt;/P&gt;&lt;P&gt;20.07.2015 14:56:58&lt;/P&gt;&lt;P&gt;ALL &amp;lt;&amp;lt; TestFIRST (qvd optimized) 50.000.000 lines fetched&lt;/P&gt;&lt;P&gt;20.07.2015 14:57:56&lt;/P&gt;&lt;P&gt;20.07.2015 14:57:57&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;&amp;lt; TestFIRST 1 lines fetched&lt;/P&gt;&lt;P&gt;20.07.2015 14:58:15&lt;/P&gt;&lt;P&gt;20.07.2015 14:58:15&lt;/P&gt;&lt;P&gt;FIRST &amp;lt;&amp;lt; TestFIRST 1 lines fetched&lt;/P&gt;&lt;P&gt;20.07.2015 14:58:16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First created 50 Mill records in the script, then stored in a QVD.&lt;/P&gt;&lt;P&gt;ALL: optimized LOAD of the QVD, ca. 58 seconds&lt;/P&gt;&lt;P&gt;WHERE recno()=1: 1 record, ca. 18 seconds&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FIRST 1 ... WHERE 1=1: 1 record, ca.1 second&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 13:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899285#M312857</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-20T13:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: First 1 load loading multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899286#M312858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;thank you for your time.&amp;nbsp; adding the the where 1=1 does load 1 records per QVD.&amp;nbsp; however, it appears to be slower than using other variations of the FIRST 1 LOAD we are using for now.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;i "think" using a WHERE clause loads the whole QVD but i could be wrong - however, thats the only explanation i can think of why it is slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of the day, we expect QLIK to live up to what it is advertising.&amp;nbsp; IF the intent of the FIRST 1 LOAD is to load (or fetch) only 1 record (first record hopefully) then thats what it should do.&amp;nbsp; design strategies are built around what is advertised and if the product deviates from that then the design foundation is built on sand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 13:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899286#M312858</guid>
      <dc:creator />
      <dc:date>2015-07-20T13:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: First 1 load loading multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899287#M312859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All I am saying is that the issue is apparently caused by the optimized load. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my testing, I am fine with a 1 second LOAD time for a FIRST 1 in combination with WHERE 1=1 (and you don't need to drop any calculated &lt;EM&gt;anotherField&lt;/EM&gt; you may only have created to make the LOAD unoptimized).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would agree that there seems to be an issue with FIRST LOAD prefix on optimized qvd load (similar to other issues we have seen), I am not defending the behaviour. Have you created a ticket with QT support?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 13:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899287#M312859</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-20T13:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: First 1 load loading multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899288#M312860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;again, thanks for your time.&amp;nbsp; &lt;/P&gt;&lt;P&gt;we havent forwarded this as an issue and wanted to see first if the community has experienced this and what it thinks.&lt;/P&gt;&lt;P&gt;as we do have an acceptable work around, we might use that prior to approaching support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 13:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-1-load-loading-multiple-rows/m-p/899288#M312860</guid>
      <dc:creator />
      <dc:date>2015-07-20T13:38:32Z</dc:date>
    </item>
  </channel>
</rss>

