<?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 Add data from a folder in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Add-data-from-a-folder/m-p/1343429#M2843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone!! A few days ago I have joined this community to which, every day, I am surprised more and more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wanting to do a test with my data I have found that I can not overcome this question that I tell you below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a network disk folder a series of files, XLS, CSV and TXT that always have the same name and in case of being updated, they are replaced by a file with the same name. These data are used as dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;But I have a folder where month to month files "report_2017_01" for January, "report_2017_02" for February and so on each month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These files always have the same column structure and are therefore added one after another.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;So far I have not found a way for Qlik to add me the data without having to touch the Data Model by hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik can not solve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;For the doubts I tell you that the way I could solve it was by using the PowerQuery (Excel add-in) which, if I told you to take data from a folder and find files that have the same structure, join them all in a single table . Got this what I do is for Qlik to read that table. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; but I do not like anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A big greeting for the whole community.&lt;/P&gt;&lt;P&gt;Martin.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Apr 2017 17:56:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-30T17:56:56Z</dc:date>
    <item>
      <title>Add data from a folder</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Add-data-from-a-folder/m-p/1343429#M2843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone!! A few days ago I have joined this community to which, every day, I am surprised more and more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wanting to do a test with my data I have found that I can not overcome this question that I tell you below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a network disk folder a series of files, XLS, CSV and TXT that always have the same name and in case of being updated, they are replaced by a file with the same name. These data are used as dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;But I have a folder where month to month files "report_2017_01" for January, "report_2017_02" for February and so on each month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These files always have the same column structure and are therefore added one after another.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;So far I have not found a way for Qlik to add me the data without having to touch the Data Model by hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik can not solve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;For the doubts I tell you that the way I could solve it was by using the PowerQuery (Excel add-in) which, if I told you to take data from a folder and find files that have the same structure, join them all in a single table . Got this what I do is for Qlik to read that table. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; but I do not like anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A big greeting for the whole community.&lt;/P&gt;&lt;P&gt;Martin.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Apr 2017 17:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Add-data-from-a-folder/m-p/1343429#M2843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-30T17:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add data from a folder</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Add-data-from-a-folder/m-p/1343430#M2844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer below given sample script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1493709647512977 jive_text_macro" jivemacro_uid="_1493709647512977" modifiedtitle="true"&gt;
&lt;P&gt;//This will load all the files which begins with report_ name&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD Id,&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;report_*.xlsx&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is [Sheet1]);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 07:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Add-data-from-a-folder/m-p/1343430#M2844</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-05-02T07:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add data from a folder</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Add-data-from-a-folder/m-p/1343431#M2845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a wildcard load or a loop to load and concatenate multiple files with a similar structure. So for your monthly data files, you could load like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Fact:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD 0 as Dummy Autogenerate 0;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(Fact)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; FileBaseName() as Source&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM ...\*.xls&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Field Dummy;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the date is not in the file, then you could parse the file name (in FileBaseName()) for the date; something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;EM&gt;Date(Date#(Mid(FileBaseName(), 8, 7), 'yyyy_MM')) as Date,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 08:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Add-data-from-a-folder/m-p/1343431#M2845</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-05-02T08:36:31Z</dc:date>
    </item>
  </channel>
</rss>

