<?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 Excel sources - Added new column in Excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excel-sources-Added-new-column-in-Excel/m-p/1565435#M597240</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;My dashboard data source is Excel files. The names of those excel are like Alpha012018, Alpha032019,&amp;nbsp; Alpha052019&lt;/P&gt;&lt;P&gt;Alpha012018, Alpha032019 had columns A, B ,C&amp;nbsp; and dashboard was working fine. Now I have a request to add one more column in Alpha052019 like A, B ,C, &lt;STRONG&gt;D&lt;/STRONG&gt; and load the data for all the files.&amp;nbsp; (Additional column to excel)&lt;/P&gt;&lt;P&gt;Alpha012018 A, B ,C&lt;/P&gt;&lt;P&gt;Alpha013019&amp;nbsp;A, B ,C&lt;/P&gt;&lt;P&gt;Alpha052019&amp;nbsp;A, B ,C, &lt;STRONG&gt;D&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------------------------------------&lt;/P&gt;&lt;P&gt;I tried logic as&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load A,B,C, '' as D&lt;/P&gt;&lt;P&gt;from Alpha*&lt;/P&gt;&lt;P&gt;Where (FileName) &amp;lt;052019&amp;nbsp; /////// created date out of file name and wrote the filter&lt;/P&gt;&lt;P&gt;//////// loading data from new file with additional column&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load A,B,C, D&lt;/P&gt;&lt;P&gt;from Alpha*&lt;/P&gt;&lt;P&gt;Where (FileName) &amp;gt;= 052019&amp;nbsp; /////// created date out of file name and wrote the filter&lt;/P&gt;&lt;P&gt;------------------------------------------------------&lt;/P&gt;&lt;P&gt;Error:&amp;nbsp;Now here,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2 is trying to look column D into files 022018, 032019 since I am writing Alpha* while ignoring my where condition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------------------------------------&lt;/P&gt;&lt;P&gt;I am ready to rewrite the code if someone provide me the logic to make my requirement work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:06:43 GMT</pubDate>
    <dc:creator>Sakura</dc:creator>
    <dc:date>2024-11-16T21:06:43Z</dc:date>
    <item>
      <title>Excel sources - Added new column in Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-sources-Added-new-column-in-Excel/m-p/1565435#M597240</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;My dashboard data source is Excel files. The names of those excel are like Alpha012018, Alpha032019,&amp;nbsp; Alpha052019&lt;/P&gt;&lt;P&gt;Alpha012018, Alpha032019 had columns A, B ,C&amp;nbsp; and dashboard was working fine. Now I have a request to add one more column in Alpha052019 like A, B ,C, &lt;STRONG&gt;D&lt;/STRONG&gt; and load the data for all the files.&amp;nbsp; (Additional column to excel)&lt;/P&gt;&lt;P&gt;Alpha012018 A, B ,C&lt;/P&gt;&lt;P&gt;Alpha013019&amp;nbsp;A, B ,C&lt;/P&gt;&lt;P&gt;Alpha052019&amp;nbsp;A, B ,C, &lt;STRONG&gt;D&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------------------------------------&lt;/P&gt;&lt;P&gt;I tried logic as&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load A,B,C, '' as D&lt;/P&gt;&lt;P&gt;from Alpha*&lt;/P&gt;&lt;P&gt;Where (FileName) &amp;lt;052019&amp;nbsp; /////// created date out of file name and wrote the filter&lt;/P&gt;&lt;P&gt;//////// loading data from new file with additional column&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load A,B,C, D&lt;/P&gt;&lt;P&gt;from Alpha*&lt;/P&gt;&lt;P&gt;Where (FileName) &amp;gt;= 052019&amp;nbsp; /////// created date out of file name and wrote the filter&lt;/P&gt;&lt;P&gt;------------------------------------------------------&lt;/P&gt;&lt;P&gt;Error:&amp;nbsp;Now here,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2 is trying to look column D into files 022018, 032019 since I am writing Alpha* while ignoring my where condition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------------------------------------&lt;/P&gt;&lt;P&gt;I am ready to rewrite the code if someone provide me the logic to make my requirement work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-sources-Added-new-column-in-Excel/m-p/1565435#M597240</guid>
      <dc:creator>Sakura</dc:creator>
      <dc:date>2024-11-16T21:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Excel sources - Added new column in Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-sources-Added-new-column-in-Excel/m-p/1566697#M597241</link>
      <description>Do you want to append each sheet to display the result in, for example, one straight table?</description>
      <pubDate>Tue, 09 Apr 2019 06:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-sources-Added-new-column-in-Excel/m-p/1566697#M597241</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-09T06:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Excel sources - Added new column in Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-sources-Added-new-column-in-Excel/m-p/1566707#M597243</link>
      <description>&lt;P&gt;Hello Sakura!&lt;/P&gt;&lt;P&gt;I tried following code in the script.&lt;/P&gt;&lt;P&gt;Works fine.&lt;/P&gt;&lt;PRE&gt;for each file in FileList('yourPath') //Your path where the excel file is stored example 'D:\test\test\test.xlsx'
	ODBC CONNECT32 TO [Excel Files;DBQ=$(file)];
	tables:
	SQLtables;
	DISCONNECT;
	
	FOR i = 0 to NoOfRows('tables')-1
		 LET sheetName = purgeChar(purgeChar(peek('TABLE_NAME', i, 'tables'), chr(39)), chr(36));
		 Table_with_data:
		 LOAD *, 

                    '$(sheetName)' as Sheet  // Optionally, the sheetName value may be loaded as a field

             FROM $(file) (ooxml, embedded labels, table is [$(sheetName)]);

	NEXT;&lt;/PRE&gt;&lt;P&gt;I tried it with the excel example and .qvw&amp;nbsp;file attached below.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 06:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-sources-Added-new-column-in-Excel/m-p/1566707#M597243</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-09T06:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Excel sources - Added new column in Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-sources-Added-new-column-in-Excel/m-p/1566711#M597245</link>
      <description>&lt;P&gt;and my qvw&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 06:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-sources-Added-new-column-in-Excel/m-p/1566711#M597245</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-09T06:26:39Z</dc:date>
    </item>
  </channel>
</rss>

