<?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: How does QlikView execute the following Load code? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-does-QlikView-execute-the-following-Load-code/m-p/1014880#M939432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This exception from the normal load order (from top to bottom and left to right) is called &lt;A href="https://community.qlik.com/qlik-blogpost/2972"&gt;Preceding Load&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>Mon, 01 Feb 2016 16:59:01 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-02-01T16:59:01Z</dc:date>
    <item>
      <title>How does QlikView execute the following Load code?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-QlikView-execute-the-following-Load-code/m-p/1014875#M939427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming a table is already loaded into QlikView with a column "Year" with values {2010,2011,2012,2013,2014,2015}, I enter this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ALL_YEARS:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Max(FYear) as MaxYear,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Min(FYear) as MinYear;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; FieldValue('Year',IterNo()) as FYear&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AutoGenerate(1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;While not Isnull(FieldValue('Year',IterNo()));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vStartYear = Peek ('MinYear');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vEndYear&amp;nbsp; =&amp;nbsp; Peek ('MaxYear');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My understanding is thus&lt;/STRONG&gt;:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A new table called "ALL_YEARS" with a column called "FYear" is created. &lt;/LI&gt;&lt;LI&gt;The Load-While loop will populate the new table with 6 rows with values {2&lt;SPAN style="font-size: 13.3333px;"&gt;010,2011,2012,2013,2014,2015} and terminate once no data is found (Not Isnull). &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2 additional columns ("MaxYear" and "MinYear") will be created in the new table &lt;SPAN style="font-size: 13.3333px;"&gt;"ALL_YEARS" with the value of 2015 for all "MaxYear" rows and 2010 for all "MinYear" rows. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2 variables ("vStartYear" and "vEndYear") will be created with values of 2010 and 2015, respectively.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please let me know if my understanding is flawed. Please also let me know if this code can be more efficient. Thanks!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 17:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-QlikView-execute-the-following-Load-code/m-p/1014875#M939427</guid>
      <dc:creator />
      <dc:date>2016-01-29T17:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: How does QlikView execute the following Load code?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-QlikView-execute-the-following-Load-code/m-p/1014876#M939428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;3. The Max() / Min() functions will aggregate FYear values, resulting in a single row with the min resp max FYear value.&lt;/P&gt;&lt;P&gt;Also, the FYear field itself is dismissed in the preceding LOAD (so there are no 'additional' columns, only two resulting columns).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 18:14:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-QlikView-execute-the-following-Load-code/m-p/1014876#M939428</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-29T18:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: How does QlikView execute the following Load code?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-QlikView-execute-the-following-Load-code/m-p/1014877#M939429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This goes easier if you used this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;FieldValue&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;(‘Id’, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;recno&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;())) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;AUTOGENERATE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New';"&gt;FieldValueCount&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;(‘Id’);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the example here: &lt;A href="http://qlikviewcookbook.com/2013/09/fastest-method-to-read-maxfield-from-a-qvd/" title="http://qlikviewcookbook.com/2013/09/fastest-method-to-read-maxfield-from-a-qvd/"&gt;“Fastest” Method to Read max(field) From a QVD | Qlikview Cookbook&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essential by this approach is not to run through a table else through the distinct field-values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 19:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-QlikView-execute-the-following-Load-code/m-p/1014877#M939429</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-01-29T19:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: How does QlikView execute the following Load code?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-QlikView-execute-the-following-Load-code/m-p/1014878#M939430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, a follow-up beginner's question: what is the benefit of scripting in this order:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;ALL_YEARS:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp; Max(FYear) as MaxYear,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp; Min(FYear) as MinYear;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp; FieldValue('Year',IterNo()) as FYear&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;AutoGenerate(1)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;While not Isnull(FieldValue('Year',IterNo()));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Why is the "ALL_YEARS" table load script in front of the 2nd load script (with "AutoGenerate") when the 2nd load script will be executed first by QlikView? &lt;/P&gt;&lt;P&gt;2) Would it be wrong if the 2 loads are reversed (IE: the "ALL_YEARS" table load script is placed behind the load script with "AutoGenerate"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 16:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-QlikView-execute-the-following-Load-code/m-p/1014878#M939430</guid>
      <dc:creator />
      <dc:date>2016-02-01T16:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: How does QlikView execute the following Load code?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-QlikView-execute-the-following-Load-code/m-p/1014879#M939431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2972"&gt;Preceding Load&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to put the aggregations after the FYear creation, you would need to use RESIDENT LOAD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt; TMP:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp; FieldValue('Year',IterNo()) as FYear&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;AutoGenerate(1)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;While not Isnull(FieldValue('Year',IterNo()));&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;ALL_YEARS:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp; Max(FYear) as MaxYear,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp; Min(FYear) as MinYear&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;RESIDENT TMP;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;DROP TABLE TMP;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 16:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-QlikView-execute-the-following-Load-code/m-p/1014879#M939431</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-01T16:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: How does QlikView execute the following Load code?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-QlikView-execute-the-following-Load-code/m-p/1014880#M939432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This exception from the normal load order (from top to bottom and left to right) is called &lt;A href="https://community.qlik.com/qlik-blogpost/2972"&gt;Preceding Load&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>Mon, 01 Feb 2016 16:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-QlikView-execute-the-following-Load-code/m-p/1014880#M939432</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-02-01T16:59:01Z</dc:date>
    </item>
  </channel>
</rss>

