<?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 Coloumns from Excel if existent in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Coloumns-from-Excel-if-existent/m-p/1599019#M597251</link>
    <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;I'm trying to load columns from Excel under the condition that they exist. For the following code this means if the column with numbers "1", "2" and "3" exist, Qlikview should load them, but if for instance "2" does not exist it should not try to load them. As for now I get the error message "2" does not exist, which I do not want displayed.&lt;/P&gt;&lt;P&gt;for a = 1 to 3&lt;BR /&gt;LOAD [$(a)]&lt;BR /&gt;FROM [$(Path)\File.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [Sheet]);&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;Does anyone know how to fix this?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:05:45 GMT</pubDate>
    <dc:creator>berstrom</dc:creator>
    <dc:date>2024-11-16T03:05:45Z</dc:date>
    <item>
      <title>Load Coloumns from Excel if existent</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Coloumns-from-Excel-if-existent/m-p/1599019#M597251</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;I'm trying to load columns from Excel under the condition that they exist. For the following code this means if the column with numbers "1", "2" and "3" exist, Qlikview should load them, but if for instance "2" does not exist it should not try to load them. As for now I get the error message "2" does not exist, which I do not want displayed.&lt;/P&gt;&lt;P&gt;for a = 1 to 3&lt;BR /&gt;LOAD [$(a)]&lt;BR /&gt;FROM [$(Path)\File.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [Sheet]);&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;Does anyone know how to fix this?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Coloumns-from-Excel-if-existent/m-p/1599019#M597251</guid>
      <dc:creator>berstrom</dc:creator>
      <dc:date>2024-11-16T03:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Load Coloumns from Excel if existent</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Coloumns-from-Excel-if-existent/m-p/1599028#M597252</link>
      <description>&lt;P&gt;Please use Exists Function description:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/June2019/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Exists.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/June2019/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Exists.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="code"&gt;For Eg:&lt;/DIV&gt;&lt;DIV class="code"&gt;&lt;P&gt;Test:&lt;BR /&gt;load * Inline&lt;BR /&gt;[A&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;Load * Inline&lt;BR /&gt;[A, Dept&lt;BR /&gt;1, "asd"&lt;BR /&gt;2,"fgh"&lt;BR /&gt;3,"uio"&lt;BR /&gt;6,"yuo"&lt;BR /&gt;7,"iou"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;]&lt;BR /&gt;where Exists(A,A);&lt;BR /&gt;Drop Table Test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will result in table having values 1,2, 3 as values for Col A ; other values of A will be ignored as its not listed in the Test Table.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Jul 2019 10:20:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Coloumns-from-Excel-if-existent/m-p/1599028#M597252</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-07-04T10:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Load Coloumns from Excel if existent</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Coloumns-from-Excel-if-existent/m-p/1599032#M597253</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;thanks for the help, but I might have formulated the question wrong.&lt;/P&gt;&lt;P&gt;I want Qlikview to load the fields "1", "2" or "3" if existent (these are the column names and not values within a column, so there are 3 colums to check) and if not existent Qlikview should not try to load the respective column.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 12:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Coloumns-from-Excel-if-existent/m-p/1599032#M597253</guid>
      <dc:creator>berstrom</dc:creator>
      <dc:date>2019-07-04T12:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load Coloumns from Excel if existent</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Coloumns-from-Excel-if-existent/m-p/1599156#M597254</link>
      <description>&lt;P&gt;It's not possible from inside the load-statement else you will need additionally logic on the outside which does the check and branched into different loadings and/or build a load-statement (respectively the essential parts of it) on the fly. I hope the following will be useful for you to adapt it to your real requirements:&lt;/P&gt;&lt;P&gt;temp: first 1 load * FROM [$(Path)\File.xlsx] (ooxml, embedded labels, table is [Sheet]);&lt;/P&gt;&lt;P&gt;for a = 1 to 3&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if fieldnumber('$(a)', 'temp') then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD [$(a)] FROM [$(Path)\File.xlsx] (ooxml, embedded labels, table is [Sheet]);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end if&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;drop tables temp;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 15:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Coloumns-from-Excel-if-existent/m-p/1599156#M597254</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-07-04T15:02:45Z</dc:date>
    </item>
  </channel>
</rss>

