<?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. :Re: load excel files from different folders in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318716#M1200045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vincent&lt;/P&gt;&lt;P&gt;thank you very much. Your the best &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2011 15:12:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-06T15:12:02Z</dc:date>
    <item>
      <title>load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318709#M1200038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all.&lt;/P&gt;&lt;P&gt;I have monthly invoice tables in different folders. like this path.&lt;/P&gt;&lt;P&gt;\invoice\2010\&lt;/P&gt;&lt;P&gt;\invoice\2011\&lt;/P&gt;&lt;P&gt;Now i need to load last 3 months invoice tables from 2010 and load all tables from 2011.&lt;/P&gt;&lt;P&gt;How to do this. Any suggest?&lt;/P&gt;&lt;P&gt;Regards. Muncho&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 09:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318709#M1200038</guid>
      <dc:creator />
      <dc:date>2011-04-06T09:51:11Z</dc:date>
    </item>
    <item>
      <title>Re. :load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318710#M1200039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you give us the pattern used to named your files ?&lt;/P&gt;&lt;P&gt;And what is the rule ? Always full current year and 3 last months of past year ?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 10:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318710#M1200039</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2011-04-06T10:02:07Z</dc:date>
    </item>
    <item>
      <title>load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318711#M1200040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Muncho,&lt;BR /&gt;you can use a for-each loop, something like this:&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;for each i in 2010, 2011&lt;BR /&gt; set yr=$(i);&lt;BR /&gt; invoiceTable:&lt;BR /&gt; load /*columns: */ @1,&lt;BR /&gt; '$(yr)' AS TheYear&lt;BR /&gt; from [\invoice\$(yr)\invoice*.xls]&lt;BR /&gt; (biff, no labels, table is Sheet1$);&lt;BR /&gt; next ;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Best regards&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 10:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318711#M1200040</guid>
      <dc:creator />
      <dc:date>2011-04-06T10:09:51Z</dc:date>
    </item>
    <item>
      <title>load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318712#M1200041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dear,&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;Date(MonthStart(Date,3),'MMM-YYYY') as MonthYear&lt;/P&gt;&lt;P&gt;from table;&lt;/P&gt;&lt;P&gt;join&lt;/P&gt;&lt;P&gt;load&lt;BR /&gt;*,&lt;/P&gt;&lt;P&gt;Date(MonthStart(Date,3),'MMM-YYYY') as MonthYear&lt;/P&gt;&lt;P&gt;from table where MonthYear&amp;gt;'Sep-2010';&lt;/P&gt;&lt;P&gt;hope this is useful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 10:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318712#M1200041</guid>
      <dc:creator />
      <dc:date>2011-04-06T10:19:30Z</dc:date>
    </item>
    <item>
      <title>Re. :load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318713#M1200042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vincent.&lt;/P&gt;&lt;P&gt;Invoice file names pattern is like: [monthfullname year.xls]&lt;/P&gt;&lt;P&gt;I need last 6 months invoices. So 3 months from current year, 3 months from last year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 11:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318713#M1200042</guid>
      <dc:creator />
      <dc:date>2011-04-06T11:58:54Z</dc:date>
    </item>
    <item>
      <title>load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318714#M1200043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Agger.&lt;/P&gt;&lt;P&gt;Thanks for this code. But i need last 6 months invoices. How do i do in your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 12:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318714#M1200043</guid>
      <dc:creator />
      <dc:date>2011-04-06T12:37:36Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318715#M1200044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muncho,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a code like this one :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;SET MonthNames='January;February;March;April;May;Jun;July;August;September;October;November;December';&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;for i = -5 to 0&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;let filename = year(addmonths(today(),i)) &amp;amp; '\' &amp;amp; month(addmonths(today(),i)) &amp;amp; ' ' &amp;amp; year(addmonths(today(),i)) ;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;load @1,@2 from $(filename).csv (txt, codepage is 1252, no labels, delimiter is ';', msq);&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;next&lt;/CODE&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;If you don't want the current month just put -6 and -1 if the for range.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 14:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318715#M1200044</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2011-04-06T14:58:56Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318716#M1200045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vincent&lt;/P&gt;&lt;P&gt;thank you very much. Your the best &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 15:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318716#M1200045</guid>
      <dc:creator />
      <dc:date>2011-04-06T15:12:02Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318717#M1200046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vincent&lt;/P&gt;&lt;P&gt;I need to ask you one more thing. Now i need to join or concatenate them. Also make month field from month in file name .&lt;/P&gt;&lt;P&gt;How to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 08:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318717#M1200046</guid>
      <dc:creator />
      <dc:date>2011-04-07T08:40:48Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318718#M1200047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Juste add a new field in the load statement like this one :&lt;/P&gt;&lt;CODE&gt;load &lt;STRONG&gt;&lt;I&gt;month(addmonths(today(),$(i))) as monthfield&lt;/I&gt;&lt;/STRONG&gt;, @1,@2 from $(filename).csv (txt, codepage is 1252, no labels, delimiter is ';', msq);&lt;/CODE&gt; &lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 09:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318718#M1200047</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2011-04-07T09:07:14Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318719#M1200048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your fast replay.&lt;/P&gt;&lt;P&gt;And how about join them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 09:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318719#M1200048</guid>
      <dc:creator />
      <dc:date>2011-04-07T09:17:58Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: Re. :Re: load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318720#M1200049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean join or concatenate ?&lt;/P&gt;&lt;P&gt;If your excel files have the same structure (and it seems to be the case), all those LOAD statements will by concatenated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 09:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318720#M1200049</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2011-04-07T09:22:47Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: Re. :Re: load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318721#M1200050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yepp it will concatenate. But it's not. Because my tables structure is not same. That's why im asking here. If it was same, tables must concatenate and no need to ask from here right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 09:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318721#M1200050</guid>
      <dc:creator />
      <dc:date>2011-04-07T09:34:57Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: Re. :Re: Re. :Re: load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318722#M1200051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this:&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;SET MonthNames='January;February;March;April;May;Jun;July;August;September;October;November;December';&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;set firstfile=1;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;for i = -5 to 0&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;let filename = year(addmonths(today(),i)) &amp;amp; '\' &amp;amp; month(addmonths(today(),i)) &amp;amp; ' ' &amp;amp; year(addmonths(today(),i)) ;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;if firstfile=1 then&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt; load month(addmonths(today(),$(i))) as month, * from $(filename).csv (txt, codepage is 1252, no labels, delimiter is ';', msq);&lt;/P&gt;&lt;P&gt;set firstfile=0 ;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;concatenate load month(addmonths(today(),$(i))) as month, * from $(filename).csv (txt, codepage is 1252, no labels, delimiter is ';', msq);&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 09:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318722#M1200051</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2011-04-07T09:42:46Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: Re. :Re: Re. :Re: load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318723#M1200052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Really thank you Vincent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 10:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318723#M1200052</guid>
      <dc:creator />
      <dc:date>2011-04-07T10:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re. :load excel files from different folders</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318724#M1200053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a system varible named LongMonthNames. It have all full names of months. You can get month name by&lt;/P&gt;&lt;P&gt;date(today, 'MMMM')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and set you full month name by adding &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET LongMonthNames='January;February;March;April;May;June;July;August;September;October;November;December';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 07:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-files-from-different-folders/m-p/318724#M1200053</guid>
      <dc:creator>stantrolav</dc:creator>
      <dc:date>2013-11-01T07:48:47Z</dc:date>
    </item>
  </channel>
</rss>

