<?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: Loading data from Excel file in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070867#M87837</link>
    <description>&lt;P&gt;if you plan to do this for multiple tables, maybe a configuration table that holds the table name, the field names and the XLS file would be a better solution.&amp;nbsp; but then again, it really depends on what you ultimately want to achieve&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 20:23:48 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2023-05-12T20:23:48Z</dc:date>
    <item>
      <title>Loading data from Excel file</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070027#M87752</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;I have the following&amp;nbsp; row data from excel file:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sharbel_2-1683789700985.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/106908iE122E9527E229748/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sharbel_2-1683789700985.png" alt="Sharbel_2-1683789700985.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I want help with script that loads the above data into the following table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sharbel_3-1683789781150.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/106909i5172F3DCC6E245E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sharbel_3-1683789781150.png" alt="Sharbel_3-1683789781150.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sharbel&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 07:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070027#M87752</guid>
      <dc:creator>Sharbel</dc:creator>
      <dc:date>2023-05-11T07:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from Excel file</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070037#M87754</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Qlik will generate script for your Excel load. In script Editor, go to Insert/Load statement/Load from file&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sergio0592_0-1683791093203.png" style="width: 489px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/106910i4693A69614A29F2F/image-dimensions/489x208?v=v2" width="489" height="208" role="button" title="sergio0592_0-1683791093203.png" alt="sergio0592_0-1683791093203.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 07:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070037#M87754</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2023-05-11T07:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from Excel file</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070605#M87813</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I was thinking of Load script that loads all columns except&amp;nbsp;for columns that starts with the letter "c"&amp;nbsp; since they are empty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any help with such a script?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sharbel&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 11:31:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070605#M87813</guid>
      <dc:creator>Sharbel</dc:creator>
      <dc:date>2023-05-12T11:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from Excel file</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070834#M87829</link>
      <description>&lt;P&gt;May be you can try this for the columns where your data is null.&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Field1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Field2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; REPLACE(FieldN, null(), 0) as FieldN&lt;/P&gt;
&lt;P&gt;FROM [Path\to\your\Excel\File.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sh&lt;SPAN&gt;eet1);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 18:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070834#M87829</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2023-05-12T18:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from Excel file</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070835#M87830</link>
      <description>&lt;P&gt;For payment column you can try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; IF(IsNull(Payment), '$-', Payment) as Payment&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 18:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070835#M87830</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2023-05-12T18:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from Excel file</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070866#M87836</link>
      <description>&lt;P&gt;normally you specify the field names you want to load.&amp;nbsp; so you may have more requirements than just doing this for a single XLS.&amp;nbsp; however, to answer you specific question - and this may give you an idea for what you really intend.&lt;BR /&gt;&lt;BR /&gt;load all the fields in the XLS, then iterate through the fieldnames and eliminate what you dont need (especially if Qlik Sense loads blank fieldnames - it will probably show up as the column letter); as you iterate through the field names, you collect only the field names you need in a variable, then use that variable to either reload your table.&amp;nbsp; there can be multiple variations - like collect the field names you dont need and then do a drop field command, or reload from resiednt only the fields you want.&amp;nbsp; here is the idea using the first scenario:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;tmpTable:
load
    *
FROM [lib://....xlsx]
(ooxml, embedded labels, table is Sheet1);

set vFields='';
For f = 1 to NoOfFields('tmpTable')
if Upper(left(FieldName($(f), 'tmpTable'),1))&amp;lt;&amp;gt;'C' then
	let vFields='$(vFields)' &amp;amp; ',' &amp;amp; FieldName($(f), 'tmpTable');
end if;
Next f
let vFinal=right('$(vFields)',len('$(vFields)')-1);
drop table tmpTable;
Table:
load 
	$(vFinal)
FROM [lib://....xlsx]
(ooxml, embedded labels, table is Sheet1);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope that generates ideas&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 20:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070866#M87836</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2023-05-12T20:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from Excel file</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070867#M87837</link>
      <description>&lt;P&gt;if you plan to do this for multiple tables, maybe a configuration table that holds the table name, the field names and the XLS file would be a better solution.&amp;nbsp; but then again, it really depends on what you ultimately want to achieve&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 20:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070867#M87837</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2023-05-12T20:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from Excel file</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070874#M87838</link>
      <description>&lt;P&gt;Note that the number of "empty " columns may vary from excel file to another, so maybe the load&amp;nbsp; script should be dynamic in the sense that it runs over all columns in certain table&amp;nbsp; &amp;nbsp;and &lt;STRONG&gt;drop&lt;/STRONG&gt;s columns that meet certain criteria - in my case the criteria would be no data in specific column/s&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 20:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070874#M87838</guid>
      <dc:creator>Sharbel</dc:creator>
      <dc:date>2023-05-12T20:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from Excel file</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070878#M87839</link>
      <description>&lt;P&gt;If you don’t want to use a configuration file. Then you can load all your xls files. Then loop through all the tables and all the fields and drop all the fields that satisfy your criteria&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think a drop field would be simpler. Just collect all the fields to drop&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 21:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070878#M87839</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2023-05-12T21:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from Excel file</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070941#M87843</link>
      <description>&lt;P&gt;Works Perfect!&lt;/P&gt;
&lt;P&gt;Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 12:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2070941#M87843</guid>
      <dc:creator>Sharbel</dc:creator>
      <dc:date>2023-05-13T12:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from Excel file</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2071520#M87898</link>
      <description>&lt;P&gt;yw&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 19:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-data-from-Excel-file/m-p/2071520#M87898</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2023-05-15T19:21:17Z</dc:date>
    </item>
  </channel>
</rss>

