<?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 loading multiple files with wildcard in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329005#M710740</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;I agree with Steve (who has a &lt;A href="http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/"&gt;very interesting post on mapping tables&lt;/A&gt;, by the way). The mapping load has some limitations the "normal" load does not. One of them is that it doesn't allow optimized loads and another one is that it doesn't allow either loading from multiple files using a wildcard, or joins, or so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2011 15:58:17 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-06-29T15:58:17Z</dc:date>
    <item>
      <title>loading multiple files with wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329000#M710735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi!&lt;BR /&gt;Loading multiple transaction files using from c:/filename*.txt.&lt;BR /&gt;filename have a suffix depending on company within a large organization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem occur when I want to ApplyMap, only the last filename gets mapped.&lt;BR /&gt;How to handle this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds thomas &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 10:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329000#M710735</guid>
      <dc:creator />
      <dc:date>2011-06-29T10:15:18Z</dc:date>
    </item>
    <item>
      <title>loading multiple files with wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329001#M710736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thomas,&lt;/P&gt;&lt;P&gt;didn't&amp;nbsp; understand you exactly when you say:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The problem occur when I want to ApplyMap, only the last filename gets mapped.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless: may be the use of a For-Each-Loop is what you need:&lt;/P&gt;&lt;P&gt;. . .&lt;/P&gt;&lt;P&gt;for each File in filelist ([\\PATH\datafiles\*.txt]) // or [\\PATH\datafiles\MyFile*.txt]&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;$(File) (txt, codepage is 1252, no labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 13:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329001#M710736</guid>
      <dc:creator />
      <dc:date>2011-06-29T13:44:58Z</dc:date>
    </item>
    <item>
      <title>loading multiple files with wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329002#M710737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I do a Mapping LOAD from Location22.txt&lt;/P&gt;&lt;P&gt;Then I do a LOAD, with an ApplyMap, from Transaction22. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was for testing in a small scale. Now I ramping up and want all Location- and Transaction files.&lt;/P&gt;&lt;P&gt;That's when I used Location*.txt&lt;/P&gt;&lt;P&gt;And when my problem occured. Only the last file gets mapped.&lt;/P&gt;&lt;P&gt;Of cource I want it dynamic so I dont have to hardcode every file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 13:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329002#M710737</guid>
      <dc:creator />
      <dc:date>2011-06-29T13:51:45Z</dc:date>
    </item>
    <item>
      <title>loading multiple files with wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329003#M710738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; First load into a table using wild card and then try applymap on the resident table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 14:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329003#M710738</guid>
      <dc:creator>SureshUK</dc:creator>
      <dc:date>2011-06-29T14:57:19Z</dc:date>
    </item>
    <item>
      <title>loading multiple files with wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329004#M710739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp_Location:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM Location*.txt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(txt, codepage is 1252, embedded labels, delimiter is ' ', msq);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Map_Location:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MAPPING LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT Temp_Location;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP TABLE Temp_Location;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The map into the wildcard load from your transaction table should then work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.quickintelligence.co.uk/"&gt;QlikView Consultant&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 15:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329004#M710739</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-06-29T15:44:01Z</dc:date>
    </item>
    <item>
      <title>loading multiple files with wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329005#M710740</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;I agree with Steve (who has a &lt;A href="http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/"&gt;very interesting post on mapping tables&lt;/A&gt;, by the way). The mapping load has some limitations the "normal" load does not. One of them is that it doesn't allow optimized loads and another one is that it doesn't allow either loading from multiple files using a wildcard, or joins, or so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 15:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329005#M710740</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-06-29T15:58:17Z</dc:date>
    </item>
    <item>
      <title>loading multiple files with wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329006#M710741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Steve, that's how I did it eventually. But somehow I did not make it work. Made the application work with satelite tables and I will look in to this as soon as I can. Thanks for all your replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 06:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329006#M710741</guid>
      <dc:creator />
      <dc:date>2011-06-30T06:43:12Z</dc:date>
    </item>
    <item>
      <title>loading multiple files with wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329007#M710742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bear in mind that tables are concatenated implicitly when they have the same number and name of fields. You may be loading the same table twice and the records will be appended to the first load. Is there any chance that this might be happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 06:52:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329007#M710742</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-06-30T06:52:24Z</dc:date>
    </item>
    <item>
      <title>loading multiple files with wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329008#M710743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following from Miguel's thought, could it be that you have duplicated ID's across the files?&amp;nbsp; In which case you will want to do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px;"&gt;Temp_Location:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px;"&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace(filebasename(), 'Location','') &amp;amp; ':' &amp;amp; ID as ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px;"&gt;FROM Location*.txt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px;"&gt;(txt, codepage is 1252, embedded labels, delimiter is ' ', msq);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will then obviously need to do the same to the ID being mapped to from the Transactions file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 11:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329008#M710743</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-06-30T11:11:07Z</dc:date>
    </item>
    <item>
      <title>loading multiple files with wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329009#M710744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if we have multiple tables in one file and it is in *.xlsx format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 06:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329009#M710744</guid>
      <dc:creator />
      <dc:date>2011-07-28T06:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: loading multiple files with wildcard</title>
      <link>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329010#M710745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is then a completely different question!&amp;nbsp; It is possible to get a list of tabs within an Excel spreadsheet by connecting to it with an ODBC connection (a native QlikView connection will not work) and issuing a SQLTables statement.&amp;nbsp; I suspect there will be information on this somewhere in the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have done in the past (to give more control over which tabs are loaded and what should be expected on each tab) is to have a sheet in the excel spreadsheet with a known tab (eg. Tab List).&amp;nbsp; This can list the names of all the tabs in the spreadsheet - and give extra info if required.&amp;nbsp; The load script can then load the list of tabs and enumerate around it (using a &lt;STRONG&gt;For vTab = 0 to NoOfRows('Table') - 1 &lt;/STRONG&gt;loop) and read each tab name to a variable (using &lt;STRONG&gt;Peek&lt;/STRONG&gt;) and then use the variable in the load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 19:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-multiple-files-with-wildcard/m-p/329010#M710745</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-07-28T19:41:30Z</dc:date>
    </item>
  </channel>
</rss>

