<?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 this excel file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-this-excel-file/m-p/1647721#M456186</link>
    <description>&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ODBC is the only way to tackle the issue of 'variable number of excel sheets with names you are unable to guess'.&lt;/P&gt;&lt;P&gt;I am happy you got the issue resolved!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;S.T&lt;/P&gt;</description>
    <pubDate>Sun, 17 Nov 2019 10:02:41 GMT</pubDate>
    <dc:creator>Stoyan_Terziev</dc:creator>
    <dc:date>2019-11-17T10:02:41Z</dc:date>
    <item>
      <title>How to load this excel file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-this-excel-file/m-p/1647328#M456183</link>
      <description>&lt;P&gt;Hi QV Community,&lt;/P&gt;&lt;P&gt;i have an excel file like attached. the data is available on more than one excel tab ( in my real data, there are 8 Tabs) and i need to extract the data from all tabs&amp;nbsp; at once (maybe with a loop..) in order to get the desired result. Please have alook at the attached excel file including inputs and expecteted result.&lt;/P&gt;&lt;P&gt;every help is appreciated!&lt;/P&gt;&lt;P&gt;thx in advance&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 08:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-this-excel-file/m-p/1647328#M456183</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-11-15T08:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to load this excel file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-this-excel-file/m-p/1647372#M456184</link>
      <description>&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting challenge.&lt;/P&gt;&lt;P&gt;Seems like you don't know how many and what is the name of each sheet in the excel.&lt;/P&gt;&lt;P&gt;In that case you need to do an ODBC connection to the excel file itself (I hope you can change the .xlsx to .xls since that's how I'm sure it works).&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23718i28770A55D5D295A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One you've got the connection you can do this in your script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ODBC CONNECT32 TO [Excel QV Community];
SQLTABLES;
SQLCOLUMNS;&lt;/LI-CODE&gt;&lt;P&gt;Now you basically can get to the Table and Column load order which looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 216px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23719i9F67D09A996B61C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the script you need (I don't have time to finish it now):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ODBC CONNECT32 TO [Excel QV Community];

SQLCOLUMNS;

LET vSystemTableLoad = TableName(0);


This:
NoConcatenate
LOAD 
	COLUMN_NAME
, 	PurgeChar(TABLE_NAME, '$') as TABLE_NAME
,	If(WildMatch(COLUMN_NAME,'*Cluster*'),COLUMN_NAME, Peek(Cluster, -1)) as Cluster
RESIDENT '$(vSystemTableLoad)'
WHERE WildMatch(TABLE_NAME, '*Output*')=0
;

DROP TABLE '$(v)';


AllSheets:
LOAD Chr(39)&amp;amp;Concat(DISTINCT TABLE_NAME, chr(39)&amp;amp;','&amp;amp;chr(39))&amp;amp;chr(39) as AllSheets
RESIDENT This
;

LET vAllSheets = peek('AllSheets',-1,'AllSheets');
DROP TABLE AllSheets;

FOR Each vSheet in $(vAllSheets)

	AllClusters:
	LOAD Chr(39)&amp;amp;Concat(DISTINCT Cluster, chr(39)&amp;amp;','&amp;amp;chr(39))&amp;amp;chr(39) as AllClusters
	RESIDENT This
	WHERE 
		TABLE_NAME = '$(vSheet)'
	;
	
	LET vAllClusters = peek('AllClusters',-1,'AllClusters');
	DROP TABLE AllClusters;
	
	
	
	TRACE '$(vAllClusters)';

	/*
	Another FOR EACH (this time by clusters)
	And create the table for each cluster and let it autoconcatenate here.
	*/



Next vSheet;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need help further.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;S.T.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 09:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-this-excel-file/m-p/1647372#M456184</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-11-15T09:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to load this excel file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-this-excel-file/m-p/1647704#M456185</link>
      <description>&lt;P&gt;thank you for your detailed response. but as long as i cant use ODBC for accessing the excel i managed it to extract the data by script!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 21:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-this-excel-file/m-p/1647704#M456185</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-11-16T21:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to load this excel file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-this-excel-file/m-p/1647721#M456186</link>
      <description>&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ODBC is the only way to tackle the issue of 'variable number of excel sheets with names you are unable to guess'.&lt;/P&gt;&lt;P&gt;I am happy you got the issue resolved!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;S.T&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2019 10:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-this-excel-file/m-p/1647721#M456186</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-11-17T10:02:41Z</dc:date>
    </item>
  </channel>
</rss>

