<?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: LOAD empty QVD in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/LOAD-empty-QVD/m-p/2464412#M99098</link>
    <description>&lt;P&gt;Not sure if this is most elegant way, but following my suggestion. You just need to replace the variables vTableName and vQVDFilename.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SET vTableName = 'CUSTOMER_NEW';
SET vQVDFilename = 'lib://DataFiles/CUSTOMER_NEW.qvd';

[TempLoadStatement]:
LOAD
    CONCAT([FieldName],',') AS [LoadStatement]
FROM
	[$(vQVDFilename)]
	(XmlSimple, table is [QvdTableHeader/Fields/QvdFieldHeader])
;

LET vLoadStatement = FieldValue('LoadStatement',1);

[$(vTableName)]:
LOAD * INLINE [
$(vLoadStatement)
];

STORE [$(vTableName)] INTO [$(vQVDFilename)](qvd);

DROP TABLES
  [TempLoadStatement],
  [$(vTableName)]
;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2024 00:20:17 GMT</pubDate>
    <dc:creator>marksouzacosta</dc:creator>
    <dc:date>2024-06-21T00:20:17Z</dc:date>
    <item>
      <title>LOAD empty QVD</title>
      <link>https://community.qlik.com/t5/App-Development/LOAD-empty-QVD/m-p/2464399#M99097</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@all&lt;BR /&gt;&lt;BR /&gt;I am trying to load a qvd but only retain the columns and empty out the table&lt;BR /&gt;The code below works but it reads all the data first then drop then it. but is proving time consuming because of the size of the QVD 15gb.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;LOAD
   *
FROM $(QVD_File) #this is variable that points to the qvd file
WHERE 1=0;&lt;/LI-CODE&gt;
&lt;P&gt;Is there a more efficient way of pulling just the columns similar to df.columns in python&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;df.columns&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 22:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/LOAD-empty-QVD/m-p/2464399#M99097</guid>
      <dc:creator>muz_tim</dc:creator>
      <dc:date>2024-06-20T22:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD empty QVD</title>
      <link>https://community.qlik.com/t5/App-Development/LOAD-empty-QVD/m-p/2464412#M99098</link>
      <description>&lt;P&gt;Not sure if this is most elegant way, but following my suggestion. You just need to replace the variables vTableName and vQVDFilename.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SET vTableName = 'CUSTOMER_NEW';
SET vQVDFilename = 'lib://DataFiles/CUSTOMER_NEW.qvd';

[TempLoadStatement]:
LOAD
    CONCAT([FieldName],',') AS [LoadStatement]
FROM
	[$(vQVDFilename)]
	(XmlSimple, table is [QvdTableHeader/Fields/QvdFieldHeader])
;

LET vLoadStatement = FieldValue('LoadStatement',1);

[$(vTableName)]:
LOAD * INLINE [
$(vLoadStatement)
];

STORE [$(vTableName)] INTO [$(vQVDFilename)](qvd);

DROP TABLES
  [TempLoadStatement],
  [$(vTableName)]
;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 00:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/LOAD-empty-QVD/m-p/2464412#M99098</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-06-21T00:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD empty QVD</title>
      <link>https://community.qlik.com/t5/App-Development/LOAD-empty-QVD/m-p/2465783#M99208</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 15:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/LOAD-empty-QVD/m-p/2465783#M99208</guid>
      <dc:creator>muz_tim</dc:creator>
      <dc:date>2024-06-26T15:33:05Z</dc:date>
    </item>
  </channel>
</rss>

