<?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: Help on Generic Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-on-Generic-Load/m-p/676722#M668649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you have provided has the following descriptions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1)&amp;nbsp; It loads distinct id and name from Table1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2)&amp;nbsp; Then with the help of 'for loop'&amp;nbsp; it loads only that tablename which starts with 'Table2.' in the field 'Tablename'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3)&amp;nbsp; With the help of next for loop, it loads all the contents from the tables iteratively, table name are retrieved from the variable 'vTable'&amp;nbsp; which will loop till the last value of the field 'Tablename' and then&amp;nbsp; the corresponding contents are left join to the table 'ResultTable' and then tables are dropped (since their contents are saved into another table named ResultTable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 4)&amp;nbsp; Then it drop the tables (Table1,TableList) to avoid the generation of&amp;nbsp; synthetic keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and to know the concept of Generic Load you can refer the following thread&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/66833"&gt;http://community.qlik.com/thread/66833&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Geeta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Oct 2014 11:50:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-10-22T11:50:55Z</dc:date>
    <item>
      <title>Help on Generic Load</title>
      <link>https://community.qlik.com/t5/QlikView/Help-on-Generic-Load/m-p/676720#M668644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ALl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen so many posts on Generic Load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After writting Generic load statement (&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table2:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;generic load *&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;resident Table1&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i see the below code &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;ResultTable: &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Distinct ID, name Resident Table1; &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;FOR i = 0 to NoOfTables() &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; TableList: &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; LOAD TableName($(i)) as Tablename AUTOGENERATE 1 &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; WHERE WildMatch(TableName($(i)), 'Table2.*'); &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NEXT i &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;FOR i = 1 to FieldValueCount('Tablename') &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; LET vTable = FieldValue('Tablename', $(i)); &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; LEFT JOIN (ResultTable) LOAD * RESIDENT [$(vTable)]; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; DROP TABLE [$(vTable)]; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NEXT i &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;Drop Tables Table1, TableList&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;Can anyone please make me understand the above code step by step what it is actually doing?&amp;nbsp; Is above mentioned code is common one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 09:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-on-Generic-Load/m-p/676720#M668644</guid>
      <dc:creator />
      <dc:date>2014-10-22T09:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Generic Load</title>
      <link>https://community.qlik.com/t5/QlikView/Help-on-Generic-Load/m-p/676721#M668646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Generic loads generate multiple tables associated by at least one common field.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The code fragement you posted recombines those tables into one and drops the corresponding source tables, i.e. it generates one table that includes all fields generated by the generic load.&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;For pros and cons see also:&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;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/03/31/generic" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/03/31/generic&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;by &lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="4003" data-objecttype="3" href="https://community.qlik.com/people/hic" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Henric Cronström&lt;/A&gt;&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;A class="jive-link-external-small" href="http://qlikviewcookbook.com/2010/05/use-cases-for-generic-load/" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Use cases for Generic Load | Qlikview Cookbook&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;by &lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="2286" data-objecttype="3" href="https://community.qlik.com/people/rwunderlich" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Rob Wunderlich&lt;/A&gt;&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;hope this helps&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;regards&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 10:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-on-Generic-Load/m-p/676721#M668646</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-10-22T10:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Generic Load</title>
      <link>https://community.qlik.com/t5/QlikView/Help-on-Generic-Load/m-p/676722#M668649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you have provided has the following descriptions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1)&amp;nbsp; It loads distinct id and name from Table1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2)&amp;nbsp; Then with the help of 'for loop'&amp;nbsp; it loads only that tablename which starts with 'Table2.' in the field 'Tablename'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3)&amp;nbsp; With the help of next for loop, it loads all the contents from the tables iteratively, table name are retrieved from the variable 'vTable'&amp;nbsp; which will loop till the last value of the field 'Tablename' and then&amp;nbsp; the corresponding contents are left join to the table 'ResultTable' and then tables are dropped (since their contents are saved into another table named ResultTable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 4)&amp;nbsp; Then it drop the tables (Table1,TableList) to avoid the generation of&amp;nbsp; synthetic keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and to know the concept of Generic Load you can refer the following thread&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/66833"&gt;http://community.qlik.com/thread/66833&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Geeta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 11:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-on-Generic-Load/m-p/676722#M668649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-22T11:50:55Z</dc:date>
    </item>
  </channel>
</rss>

