<?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: Concatenate or join excel  files in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Concatenate-or-join-excel-files/m-p/1686005#M52247</link>
    <description>&lt;P&gt;I would probably concatenate the three tables first - additionally adding a source-information manually or maybe with something like filebasename() - and then joining the count to it (if the source is relevant for the count you need to add this field to the join-load, too.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2020 09:41:05 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2020-03-19T09:41:05Z</dc:date>
    <item>
      <title>Concatenate or join excel  files</title>
      <link>https://community.qlik.com/t5/App-Development/Concatenate-or-join-excel-files/m-p/1685990#M52246</link>
      <description>&lt;P&gt;I have 3 excel files with same column name but different data ..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so i need to concatentate those tables or join those tables ?&lt;/P&gt;&lt;P&gt;when i try first excel files i do this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD
    ID,
    HostID,
    HostName,
    HostSince,
    HostResponseTime
FROM [lib://b-attachments/data.xlsx]
(ooxml, embedded labels, table is Jandata);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then on script on another section i do this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    Left Join(Jandata)
         Load HostID,
         Count(ID) as NoList
         Resident Jandata
         Group by HostID;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so now i have 2 more excel files .. how i do that on script ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 08:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concatenate-or-join-excel-files/m-p/1685990#M52246</guid>
      <dc:creator>capriconuser</dc:creator>
      <dc:date>2020-03-19T08:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate or join excel  files</title>
      <link>https://community.qlik.com/t5/App-Development/Concatenate-or-join-excel-files/m-p/1686005#M52247</link>
      <description>&lt;P&gt;I would probably concatenate the three tables first - additionally adding a source-information manually or maybe with something like filebasename() - and then joining the count to it (if the source is relevant for the count you need to add this field to the join-load, too.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 09:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concatenate-or-join-excel-files/m-p/1686005#M52247</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-03-19T09:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate or join excel  files</title>
      <link>https://community.qlik.com/t5/App-Development/Concatenate-or-join-excel-files/m-p/1686007#M52248</link>
      <description>&lt;P&gt;Try something like this below. First join then populate your final table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;FOR each _file in list 'data.xlsx', 'data2.xlsx', 'data3.xlsx'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;TMP:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ID,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;HostID,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; HostName,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; HostSince,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; HostResponseTime,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; 'AutoconcatenateStopper' as DummyField&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;FROM [lib://b-attachments/$(_file)]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;(ooxml, embedded labels, table is Jandata);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;Left Join(TMP)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;Load HostID,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Count(ID) as NoList&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Resident TMP&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;Group by HostID;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;//Autoconcatenate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;Final:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;ID,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;HostID,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;HostName,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;HostSince,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;HostResponseTime,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;NoList&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;RESIDENT TMP;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;DROP TABLE TMP&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;NEXT _file&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 09:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concatenate-or-join-excel-files/m-p/1686007#M52248</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-03-19T09:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate or join excel  files</title>
      <link>https://community.qlik.com/t5/App-Development/Concatenate-or-join-excel-files/m-p/1686024#M52252</link>
      <description>&lt;P&gt;i did not understand this line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [lib://b-attachments/$(_file)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;why you write this&amp;nbsp; $(_file) instead of excel file name ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25001"&gt;@Vegar&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 10:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concatenate-or-join-excel-files/m-p/1686024#M52252</guid>
      <dc:creator>capriconuser</dc:creator>
      <dc:date>2020-03-19T10:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate or join excel  files</title>
      <link>https://community.qlik.com/t5/App-Development/Concatenate-or-join-excel-files/m-p/1686059#M52253</link>
      <description>&lt;P&gt;I was looping through your three files that I named 'data.xlsx', 'data2.xlsx' and 'data3.xlsx'. For each iteration the content of the variable &lt;FONT color="#FF00FF"&gt;_file&lt;/FONT&gt; will change according to the list.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;FOR each &lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;_file&lt;/STRONG&gt; &lt;/FONT&gt;in list 'data.xlsx', 'data2.xlsx', 'data3.xlsx'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;TMP:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ...&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;FROM [lib://b-attachments/$(&lt;FONT color="#FF00FF"&gt;_file&lt;/FONT&gt;)]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp;(ooxml, embedded labels, table is Jandata);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;NEXT &lt;FONT color="#FF00FF"&gt;_file&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 11:55:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concatenate-or-join-excel-files/m-p/1686059#M52253</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-03-19T11:55:30Z</dc:date>
    </item>
  </channel>
</rss>

