<?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: convert multiple excel files into one qvd in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/convert-multiple-excel-files-into-one-qvd/m-p/898472#M471047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Maxgro,&lt;/P&gt;&lt;P&gt;Thanks for sharing !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2015 11:40:41 GMT</pubDate>
    <dc:creator>vikasmahajan</dc:creator>
    <dc:date>2015-10-13T11:40:41Z</dc:date>
    <item>
      <title>convert multiple excel files into one qvd</title>
      <link>https://community.qlik.com/t5/QlikView/convert-multiple-excel-files-into-one-qvd/m-p/898469#M471044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have multiple excel files that have exact same data structure. the file names follow up the following patter,&lt;/P&gt;&lt;P&gt;sales201501.xls&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;sales201502.xls&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;sales201503.xls&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;where the 01, 02, 03 are week number. A new excel file will be added weekly into same folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I want to convert those excel files into ONE qvd, incrementally add new data weekly after the qvd is created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Can someone help on script? thanks. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Apr 2015 16:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-multiple-excel-files-into-one-qvd/m-p/898469#M471044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-12T16:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: convert multiple excel files into one qvd</title>
      <link>https://community.qlik.com/t5/QlikView/convert-multiple-excel-files-into-one-qvd/m-p/898470#M471045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can load the data and utilize filename() function:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; ...,&lt;BR /&gt; filename() FileName&lt;BR /&gt;FROM sales*.xls ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the FileName, you can cut the year and week part, and use function MakeWeekDate(YYYY, WW) do create the date.&amp;nbsp; You can do it right there in the initial load if you wish.&lt;/P&gt;&lt;P&gt;And, store this into the QVD.&amp;nbsp; Of course you have to concatenate the "Data" table to the existing QVD before storing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As fior the incremantal load...&amp;nbsp; I did something similar once using this way - after the files were read from the folder, I called a batch from the script that moved all the files to another folder.&amp;nbsp; Maybe there are better ways.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Apr 2015 17:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-multiple-excel-files-into-one-qvd/m-p/898470#M471045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-12T17:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: convert multiple excel files into one qvd</title>
      <link>https://community.qlik.com/t5/QlikView/convert-multiple-excel-files-into-one-qvd/m-p/898471#M471046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;DIRECTORY;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if QvdCreateTime('allexcel.qvd') &amp;gt; 0 then&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; // qvd exists&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace exists;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; tmp:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; LOAD MaxString(FileName) as MaxFileName from allexcel.qvd (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; vMaxFileName = Peek('MaxFileName', 0, 'tmp');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace vMaxFileName=$(vMaxFileName);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; DROP Table tmp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; // get max file&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; tmpfiletoload:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; load distinct FileName() as filename, '$(vMaxFileName)' as MaxFileName &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; FROM [20*.xlsx] (ooxml, embedded labels, table is Sheet1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; // get excel to load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; filetoload:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; NoConcatenate load * resident tmpfiletoload where left(filename,6) &amp;gt; left(MaxFileName,6);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; drop table tmpfiletoload;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; //load excel&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; FOR i=0 to NoOfRows('filetoload')-1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; f=Peek('filename', $(i), 'filetoload');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace f=$(f);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; allexcel:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; load FileName() as FileName, [Product ID], Product&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; FROM [$(f)] (ooxml, embedded labels, table is Sheet1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; NEXT;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; // concat qvd and store&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; allexcel:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; load * from allexcel.qvd (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; STORE * from allexcel into allexcel.qvd (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ELSE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; // qvd not exists, 1st load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace not exists;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; allexcel:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; FileName() as FileName, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [Product ID], Product&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; FROM [20*.xlsx] (ooxml, embedded labels, table is Sheet1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; STORE * from allexcel into allexcel.qvd (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ENDIF;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Apr 2015 17:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-multiple-excel-files-into-one-qvd/m-p/898471#M471046</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-12T17:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: convert multiple excel files into one qvd</title>
      <link>https://community.qlik.com/t5/QlikView/convert-multiple-excel-files-into-one-qvd/m-p/898472#M471047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Maxgro,&lt;/P&gt;&lt;P&gt;Thanks for sharing !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 11:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-multiple-excel-files-into-one-qvd/m-p/898472#M471047</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2015-10-13T11:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: convert multiple excel files into one qvd</title>
      <link>https://community.qlik.com/t5/QlikView/convert-multiple-excel-files-into-one-qvd/m-p/898473#M471048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, how do I use preceding load inside this script... I'm trying, but is displaying synthetic key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;allexcel&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISTANCIA_KM/HORAS_ULTIMA_TRANSAÇÃO as VELOCIDADE_MÉDIA;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROUND((MINUTOS_ULTIMA_TRANSACAO/60),0.1) AS HORAS_ULTIMA_TRANSAÇÃO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(IP_EMISSOR,',',1) as IP_EMISSOR_1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(IP_EMISSOR,',',2) as IP_EMISSOR_2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(IP_EMISSOR,',',3) as IP_EMISSOR_3,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(IP_ULTIMA_TRANSACAO,',',1) as IP_RECEBIMENTO_1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(IP_ULTIMA_TRANSACAO,',',2) as IP_RECEBIMENTO_2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(IP_ULTIMA_TRANSACAO,',',3) as IP_RECEBIMENTO_3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; load FileName() as FileName,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIPO_DOC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UF_ORIGEM......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/204159_Error.PNG" style="height: 373px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 19:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-multiple-excel-files-into-one-qvd/m-p/898473#M471048</guid>
      <dc:creator>danilopvh</dc:creator>
      <dc:date>2018-06-01T19:45:16Z</dc:date>
    </item>
  </channel>
</rss>

