<?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: Is it possible to load all fields in text format while reading few excel files in Qlik Sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Is-it-possible-to-load-all-fields-in-text-format-while-reading/m-p/1795835#M62399</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;That's it. It's always the second case!&lt;BR /&gt;&lt;BR /&gt;Hey Qlik custodians, throw this thread into some deep dark portal. My first question on Qlik community and Rob asked me something. Can't say no that. &lt;span class="lia-unicode-emoji" title=":zipper_mouth_face:"&gt;🤐&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Mar 2021 23:18:56 GMT</pubDate>
    <dc:creator>MohitSharma3110</dc:creator>
    <dc:date>2021-03-30T23:18:56Z</dc:date>
    <item>
      <title>Is it possible to load all fields in text format while reading few excel files in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-possible-to-load-all-fields-in-text-format-while-reading/m-p/1795731#M62393</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible to load all field values in text format inside a For..each.. loop to read some excel files in Qlik. below is my code where I am reading some excel files with different kind of data in each of them. The issue arises when some of the field values in these files have zeroes appended to them and Qlik removes them while reading and keep it as number. And I need those appended zeroes in those fields values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;For each vFile in FileList('$(vPath_Input_MD_Business)/Excel/*.xlsx')

  let vScript_TableName =  replace(replace(SubField(vFile,'/',-1),'.xlsx',''),'.XLSX','');

  $(vScript_TableName):
  LOAD
      *
  from [$(vFile)](ooxml, embedded labels, table is Sheet1);


next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need something that should work like below statement:&lt;/P&gt;&lt;P&gt;Load text(*) from excel.xlsx;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-possible-to-load-all-fields-in-text-format-while-reading/m-p/1795731#M62393</guid>
      <dc:creator>MohitSharma3110</dc:creator>
      <dc:date>2024-11-16T17:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load all fields in text format while reading few excel files in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-possible-to-load-all-fields-in-text-format-while-reading/m-p/1795825#M62397</link>
      <description>&lt;P&gt;As long as you know the names of the fields you want to text(), there is a fairly easy way of doing this.&amp;nbsp; Before loading your files, load a dummy table using text() with any possible field names you want text'd.&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;TempText:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Text&lt;/SPAN&gt;(0) &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;CatNo&lt;/SPAN&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Text&lt;/SPAN&gt;(0) &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;PartNo&lt;/SPAN&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Text&lt;/SPAN&gt;(0) &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;PostCode&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;AutoGenerate&lt;/SPAN&gt; 0;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="Apple-converted-space"&gt;// load your files&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="Apple-converted-space"&gt;Drop Table TempText;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;If you don't know the names of the fields and just want to apply text to every field, modify your loop to get the field names from each file and build a LOAD text(fieldlist) in a variable, then use the variable in a complete LOAD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;TempFields:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;First&lt;/SPAN&gt; 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt; *&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;FROM&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;[$(vFile)]&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;(&lt;SPAN class="s1"&gt;ooxml&lt;/SPAN&gt;, &lt;SPAN class="s1"&gt;embedded&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;labels&lt;/SPAN&gt;, &lt;SPAN class="s1"&gt;table&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;is&lt;/SPAN&gt; Sheet1);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;TempStmt:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Concat&lt;/SPAN&gt;('Text(' &amp;amp; &lt;SPAN class="s2"&gt;Fname&lt;/SPAN&gt; &amp;amp; ') as ' &amp;amp; &lt;SPAN class="s2"&gt;Fname&lt;/SPAN&gt;, ', ') &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;stmt&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Load&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'[' &amp;amp; &lt;SPAN class="s1"&gt;FieldName&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;RecNo&lt;/SPAN&gt;(), 'TempFields') &amp;amp; ']' &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Fname&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;AutoGenerate&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;NoOfFields&lt;/SPAN&gt;('TempFields')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Let&lt;/SPAN&gt; vStmt = &lt;SPAN class="s1"&gt;Peek&lt;/SPAN&gt;('stmt');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Drop&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;Tables&lt;/SPAN&gt; TempFields, TempStmt; &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;MyData:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s3"&gt;&lt;I&gt;&amp;nbsp; $(vStmt)&lt;/I&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;FROM&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;[$(vFile)]&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;(&lt;SPAN class="s1"&gt;ooxml&lt;/SPAN&gt;, &lt;SPAN class="s1"&gt;embedded&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;labels&lt;/SPAN&gt;, &lt;SPAN class="s1"&gt;table&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;is&lt;/SPAN&gt; Sheet1); &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;Don't share these techniques with anyone. I want to make sure people sign up for my next Advanced Scripting class.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 21:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-possible-to-load-all-fields-in-text-format-while-reading/m-p/1795825#M62397</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-03-30T21:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load all fields in text format while reading few excel files in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-possible-to-load-all-fields-in-text-format-while-reading/m-p/1795835#M62399</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;That's it. It's always the second case!&lt;BR /&gt;&lt;BR /&gt;Hey Qlik custodians, throw this thread into some deep dark portal. My first question on Qlik community and Rob asked me something. Can't say no that. &lt;span class="lia-unicode-emoji" title=":zipper_mouth_face:"&gt;🤐&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 23:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-possible-to-load-all-fields-in-text-format-while-reading/m-p/1795835#M62399</guid>
      <dc:creator>MohitSharma3110</dc:creator>
      <dc:date>2021-03-30T23:18:56Z</dc:date>
    </item>
  </channel>
</rss>

