<?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 Load only specified tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-only-specified-tables/m-p/241312#M714595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;I am wondering if there is someway to only load specific tables into a QVD. I have a text file that has the Table Name I want to load and a variable Y/N that is yes this should be loaded or no this should not be loaded. I want to be able to call the name of a specific table in my load, but I do not know of a command that simply calls a table and then that table has the values of how it will be loaded. Here is some of my code so far:&lt;/P&gt;&lt;P&gt;TextLoad:&lt;BR /&gt;LOAD [Data Load],&lt;BR /&gt; [Load (Y/N)]&lt;BR /&gt;FROM load.txt (ansi, txt, delimiter is '\t', embedded labels, msq);&lt;BR /&gt;&lt;BR /&gt;Let RowCount = NumMax(NoOfRows('TextLoad'),0)-1;&lt;BR /&gt;&lt;BR /&gt;For i = 0 to '$(RowCount)'&lt;BR /&gt; Let TempLoadVal = peek('Load (Y/N)', $(i), 'TextLoad');&lt;BR /&gt; Let TempDataField = peek('Data Load', $(i), 'TextLoad');&lt;BR /&gt; if TempLoadVal = 'Y' then&lt;/P&gt;&lt;P&gt;\\\\Call the Table Load where the table is = TempDataField (ie ExampleTable = TempDataField)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; endif&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;ExampleTable:&lt;BR /&gt;Load RecordNum as Index,&lt;BR /&gt; [Attribute 1] as Attr1,&lt;BR /&gt; [Attribute2] as Attr2&lt;BR /&gt;From...&lt;/P&gt;&lt;P&gt;I would want to be able to load or call ExampleTable if the value from the txt file read Y. Is there any way to do this or is there a better way to go about this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Oct 2010 16:35:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-19T16:35:23Z</dc:date>
    <item>
      <title>Load only specified tables</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-specified-tables/m-p/241312#M714595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;I am wondering if there is someway to only load specific tables into a QVD. I have a text file that has the Table Name I want to load and a variable Y/N that is yes this should be loaded or no this should not be loaded. I want to be able to call the name of a specific table in my load, but I do not know of a command that simply calls a table and then that table has the values of how it will be loaded. Here is some of my code so far:&lt;/P&gt;&lt;P&gt;TextLoad:&lt;BR /&gt;LOAD [Data Load],&lt;BR /&gt; [Load (Y/N)]&lt;BR /&gt;FROM load.txt (ansi, txt, delimiter is '\t', embedded labels, msq);&lt;BR /&gt;&lt;BR /&gt;Let RowCount = NumMax(NoOfRows('TextLoad'),0)-1;&lt;BR /&gt;&lt;BR /&gt;For i = 0 to '$(RowCount)'&lt;BR /&gt; Let TempLoadVal = peek('Load (Y/N)', $(i), 'TextLoad');&lt;BR /&gt; Let TempDataField = peek('Data Load', $(i), 'TextLoad');&lt;BR /&gt; if TempLoadVal = 'Y' then&lt;/P&gt;&lt;P&gt;\\\\Call the Table Load where the table is = TempDataField (ie ExampleTable = TempDataField)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; endif&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;ExampleTable:&lt;BR /&gt;Load RecordNum as Index,&lt;BR /&gt; [Attribute 1] as Attr1,&lt;BR /&gt; [Attribute2] as Attr2&lt;BR /&gt;From...&lt;/P&gt;&lt;P&gt;I would want to be able to load or call ExampleTable if the value from the txt file read Y. Is there any way to do this or is there a better way to go about this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 16:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-specified-tables/m-p/241312#M714595</guid>
      <dc:creator />
      <dc:date>2010-10-19T16:35:23Z</dc:date>
    </item>
    <item>
      <title>Load only specified tables</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-specified-tables/m-p/241313#M714597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doug, Here's an example using a variable to load from various MSSQL databases that the user defines in QlikView in a list defined in the variable "bds." The same method should apply for dynamic tables and using the loop and peek() that you are using and you just call the table with a $(TempDataField). The double quotes might be necessary. Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//******************************Business Partners Catalog***************************************FULL/PARTIAL RELOAD&lt;BR /&gt;for each bd in $(bds);&lt;BR /&gt;OCRD:&lt;BR /&gt;ADD LOAD '$(bd)' as Database, '$(bd)'&amp;amp;'_'&amp;amp;CardCode as LineID,&lt;BR /&gt; CardCode, CardName, LicTradNum, GroupCode, Address, ZipCode, Phone1, Fax, CntctPrsn, City, Country, Balance, CardType,&lt;BR /&gt; DebPayAcct, Territory, State1, State2, ExtraDays, CredLimit, SlpCode;&lt;BR /&gt;SQL Select T0.CardCode as CardCode, T0.CardName, T0.GroupCode as GroupCode, T0.LicTradNum, T0.Address, T0.ZipCode, T0.Phone1,&lt;BR /&gt;T0.Fax, T0.CntctPrsn, T0.City, T0.Country, T0.Balance, T0.CardType, T0.DebPayAcct, T0.Territory, T0.State1, T0.State2,&lt;BR /&gt;T1.ExtraDays, T1.CredLimit, T0.SlpCode&lt;BR /&gt;FROM "$(bd)".dbo.OCRD T0 JOIN "$(bd)".dbo.OCTG T1 on T0.GroupNum = T1.GroupNum;&lt;BR /&gt;next bd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 18:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-specified-tables/m-p/241313#M714597</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-10-19T18:15:50Z</dc:date>
    </item>
  </channel>
</rss>

