<?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 load excel file only if it has particular column else do not load it in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386230#M144279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading multiple excel files.&lt;/P&gt;&lt;P&gt;In a excel file the Particula feild&amp;nbsp; for example (NAME) does not appear if the Project&amp;nbsp; is not active, but the NAME appears in file if the project is active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so keeping this in mind, I have 20 to 30 excel files for different project. So is there a way to load all files which has particular feild and leave the remaining file unloaded?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions and help is very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Khusi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 May 2013 10:46:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-20T10:46:30Z</dc:date>
    <item>
      <title>load excel file only if it has particular column else do not load it</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386230#M144279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading multiple excel files.&lt;/P&gt;&lt;P&gt;In a excel file the Particula feild&amp;nbsp; for example (NAME) does not appear if the Project&amp;nbsp; is not active, but the NAME appears in file if the project is active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so keeping this in mind, I have 20 to 30 excel files for different project. So is there a way to load all files which has particular feild and leave the remaining file unloaded?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions and help is very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Khusi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 10:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386230#M144279</guid>
      <dc:creator />
      <dc:date>2013-05-20T10:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: load excel file only if it has particular column else do not load it</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386231#M144280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;assuming the files are in the same location (C:\Direcotory ) in the exa\mple below,&lt;/P&gt;&lt;P&gt;then the following should load the data with the specified field populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each File in filelist ('C:\Directory\*.xls')&lt;BR /&gt;for A = 1 to 10&lt;/P&gt;&lt;P&gt; LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1&amp;nbsp;&amp;nbsp; as Name,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as [Data1] ,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as [Data2]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;FROM $(File) (biff, no labels, table is Sheet$(A)$) where @1 &amp;gt; ' ';&lt;BR /&gt;next A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 11:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386231#M144280</guid>
      <dc:creator />
      <dc:date>2013-05-20T11:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: load excel file only if it has particular column else do not load it</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386232#M144281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which code here will unload the file if column is not available, would you explain?&lt;/P&gt;&lt;P&gt;sorry I am not able to understand it&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyways thanks again for trying to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 11:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386232#M144281</guid>
      <dc:creator />
      <dc:date>2013-05-20T11:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: load excel file only if it has particular column else do not load it</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386233#M144282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have 2 excel spreadsheets a.xls &amp;amp; b.xls containing the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a.xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; project status&lt;/P&gt;&lt;P&gt;Fred&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Live&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in progress&lt;/P&gt;&lt;P&gt;John&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; completed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b.xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Project status&lt;/P&gt;&lt;P&gt;Tim&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on going&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cancelled&lt;/P&gt;&lt;P&gt;mark&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; finishing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the code would look at both spreadsheets &amp;amp; only return entries where field 1 (name) contains a value&lt;/P&gt;&lt;P&gt;so the results would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data1&lt;/P&gt;&lt;P&gt;Fred&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Live&lt;/P&gt;&lt;P&gt;John&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; completed&lt;/P&gt;&lt;P&gt;Tim&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on going&lt;/P&gt;&lt;P&gt;mark&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; finishing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 11:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386233#M144282</guid>
      <dc:creator />
      <dc:date>2013-05-20T11:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: load excel file only if it has particular column else do not load it</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386234#M144283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;but my requirement is to check if the feild NAME is there or not, if not then do not load that file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example &lt;/P&gt;&lt;P&gt;a.xls has&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and b.xls has&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;empty(no feild name)&amp;nbsp;&amp;nbsp; Age&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirement is,&lt;/P&gt;&lt;P&gt;I need the script that check a.xls and b.xls if feild NAME is there or not, in this situation script should load only file a.xls, regardless of the value under that feild.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this case because I am using some formulas in excel files and due to this if project is active, then only the feild will be shown else it will be empty. and whole coulmn will be empty if project is not active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still waiting for the solution, can anyone pls help to fix this problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 06:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386234#M144283</guid>
      <dc:creator />
      <dc:date>2013-05-21T06:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: load excel file only if it has particular column else do not load it</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386235#M144284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the easiest way would be to have the field always defined in excel &amp;amp; just populate it when it has a value then the script already supplied would work.&amp;nbsp; Assuming your data always has the&amp;nbsp; label "Name" in it the following would work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case we do 2 passes of the data.&amp;nbsp; The first pass checks to see if the data contains a label of "name"&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;/P&gt;&lt;P&gt;for each File in filelist ('C:\Directory\*.xls')&lt;BR /&gt;for A = 1 to 10&lt;/P&gt;&lt;P&gt;checktable:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1&amp;nbsp;&amp;nbsp; as Name&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;FROM $(File) (biff, no labels, table is Sheet$(A)$) where @1 = 'Name ';&lt;/P&gt;&lt;P&gt;next A&lt;/P&gt;&lt;P&gt;if trim(peek('Name',0,'checktable')) = 'Name' then&lt;/P&gt;&lt;P&gt;drop table checktable&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;FROM $(File) (biff, embedded labels, table is Sheet$(A)$) ;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 09:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386235#M144284</guid>
      <dc:creator />
      <dc:date>2013-05-21T09:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: load excel file only if it has particular column else do not load it</title>
      <link>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386236#M144285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;I have now changed in exel itself so that I will have the feild name of non active projects also but the value will be "Exclude". &lt;/P&gt;&lt;P&gt;so in this case I will use the filter and wont select the one with "Exclude".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once again thank for the effort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 09:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-excel-file-only-if-it-has-particular-column-else-do-not/m-p/386236#M144285</guid>
      <dc:creator />
      <dc:date>2013-05-21T09:59:28Z</dc:date>
    </item>
  </channel>
</rss>

