<?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 to load from variable table name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531932#M687374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad that works for you. Another approach I have used is to create an ODBC&lt;/P&gt;&lt;P&gt;connection to the spreadsheet and then use SQLTables to list all sheets.&lt;/P&gt;&lt;P&gt;You can then PEEK these into variables. This is good for when the are&lt;/P&gt;&lt;P&gt;multiple sheets you want to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Dec 2013 21:04:42 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2013-12-30T21:04:42Z</dc:date>
    <item>
      <title>How to load from variable table name</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531925#M687367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My table name will not always be the same and there is no pattern to the name.&amp;nbsp; How do I get the load script to pull the data?&amp;nbsp; Your help is much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 22:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531925#M687367</guid>
      <dc:creator />
      <dc:date>2013-12-27T22:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to load from variable table name</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531926#M687368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;are you looking for a way to load multiple table from same db? In that case try this post&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/191708#191708"&gt;http://community.qlik.com/message/191708#191708&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 23:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531926#M687368</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2013-12-27T23:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to load from variable table name</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531927#M687369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lanthy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At some point you must know what the table name is in order to be able to load from it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a variable in your load statement like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL SELECT&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM $(vTableName)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could then have an input box on the screen to allow the user to input the table name before refreshing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user does not know the table name, but you know the database it is in you could perhaps get a list of tables in the database (perhaps doing a select on SysObjects (in SQL Server) or by using the SQLTABLES command (for ODBC connections) and then use a &lt;STRONG&gt;PEEK&lt;/STRONG&gt; statement to get the table name from that query into a variable before performing a load as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could elaborate on how you would envisage the table name should be derived or captured then I can give further advice on how to achieve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 23:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531927#M687369</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2013-12-27T23:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to load from variable table name</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531928#M687370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;My script looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tempload:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file name will be known, but the the table name is unknown....Sheet1 will not always be named Sheet1 and I will not be able to predict the table name because it is a randomly generated long set up letters and numbers by an external source.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 17:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531928#M687370</guid>
      <dc:creator />
      <dc:date>2013-12-30T17:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to load from variable table name</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531929#M687371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Massimo,&lt;/P&gt;&lt;P&gt;That's not exactly what i'm trying to do, but i will bookmark it for future use! Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 18:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531929#M687371</guid>
      <dc:creator />
      <dc:date>2013-12-30T18:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to load from variable table name</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531930#M687372</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;Take a look at this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;http://qlikcommunity.qliktech.com/thread/18641&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can simply replace Sheet1 with @1 and it will load the first sheet.&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>Mon, 30 Dec 2013 18:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531930#M687372</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2013-12-30T18:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to load from variable table name</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531931#M687373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;@1 doesnt work for xlsx files, but per the another post on the same thread removing 'table is ___' works!&amp;nbsp; &lt;BR /&gt;So my script was:&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and updated to the below which works:&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for pointing me to that post!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 19:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531931#M687373</guid>
      <dc:creator />
      <dc:date>2013-12-30T19:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to load from variable table name</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531932#M687374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad that works for you. Another approach I have used is to create an ODBC&lt;/P&gt;&lt;P&gt;connection to the spreadsheet and then use SQLTables to list all sheets.&lt;/P&gt;&lt;P&gt;You can then PEEK these into variables. This is good for when the are&lt;/P&gt;&lt;P&gt;multiple sheets you want to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 21:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-from-variable-table-name/m-p/531932#M687374</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2013-12-30T21:04:42Z</dc:date>
    </item>
  </channel>
</rss>

