<?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: Load Script: Lowercase ALL fieldnames automatically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1779700#M595563</link>
    <description>&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;is there any way to change only script to lower, without&amp;nbsp; data.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2021 11:21:34 GMT</pubDate>
    <dc:creator>Akina0929</dc:creator>
    <dc:date>2021-02-03T11:21:34Z</dc:date>
    <item>
      <title>Load Script: Lowercase ALL fieldnames automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1590825#M595556</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm loading a excel file into a qlikview document. Unfortunately I can't change the files, which results in the problem that some fieldnames are written in upper case, next week they are in lower case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I would like to automatically lowercase, and then capitalize all header-fields automatically. Is there a way to achieve this?&lt;/P&gt;&lt;P&gt;I can't manually do this like lower(fieldname1), lower(fieldname2) et, because for that I &lt;SPAN&gt;would need to know beforehand&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;how the fieldnames are written actually, and this would throw me an error because "field not found".&lt;/P&gt;&lt;P&gt;Hope somebody can help me with this&lt;/P&gt;&lt;P&gt;Sincerely&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 20:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1590825#M595556</guid>
      <dc:creator>senior_freshmen</dc:creator>
      <dc:date>2024-11-16T20:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script: Lowercase ALL fieldnames automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1590951#M595557</link>
      <description>&lt;P&gt;I suggest not loading the headers.&lt;/P&gt;&lt;P&gt;load&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; A as Header1,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; B as Header2,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 11:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1590951#M595557</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2019-06-12T11:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script: Lowercase ALL fieldnames automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1591244#M595558</link>
      <description>&lt;P&gt;Most people don't recall (if they ever knew it all) the script FORCE statement. Your solution &lt;EM&gt;may&lt;/EM&gt; be simple:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;FORCE Capitalization;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD *, ....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Force applies to both the fieldname and the field values.&amp;nbsp; You indicated in your original questions that you wanted to lowercase the values and capitalize the fieldnames.&amp;nbsp; If lowercase values is an absolute requirement (you are not just normalizing the values, but must have lowercase) then you can use Force case lower and rename/capitalize the fieldnames in a loop:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;FORCE case lower;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD *, ....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;for i = 1 to NoOfFields('Data');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; let oldname = FieldName($(i), 'Data');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; let newname = Capitalize('$(oldname)');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; Rename Field [$(oldname)] to [$(newname)];&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;next i&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank" rel="noopener"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank" rel="noopener"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank" rel="noopener"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 20:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1591244#M595558</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-06-12T20:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script: Lowercase ALL fieldnames automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1591260#M595559</link>
      <description>&lt;P&gt;Spot on &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;, FORCE&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;have been existing out of my radar for many years. When I ran into a similar problem not so long ago. I chose to use the alias function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Alias dimension1 as Dimension1, DIMENSION1 as Dimension1;&lt;/P&gt;&lt;P&gt;Alias myfield as Myfield, MYFIELD as Myfield;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;From source;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This approach will interpret both&amp;nbsp;dimension1 and DIMENSION1 as a field called Dimension1;&amp;nbsp;myfield and MYFIELD as Myfield when reading your sources.&lt;/P&gt;&lt;P&gt;Read about alias here: &lt;A href="https://help.qlik.com/en-US/sense/April2019/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Alias.htm" target="_self"&gt;Qlik Sense Help - Alias&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 21:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1591260#M595559</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-06-12T21:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script: Lowercase ALL fieldnames automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1591273#M595560</link>
      <description>&lt;P&gt;You could combine the ALIAS solution with the Force case lower instead of the rename loop.&amp;nbsp; I thought the loop might be easier to maintain -- if indeed all fields should be renamed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ALIAS can be useful when the fieldnames use different spellings as well.&amp;nbsp;&lt;A href="https://qlikviewcookbook.com/2018/12/loading-varying-column-names/" target="_blank"&gt;https://qlikviewcookbook.com/2018/12/loading-varying-column-names/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 22:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1591273#M595560</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-06-12T22:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script: Lowercase ALL fieldnames automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1591376#M595561</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;First of all thanks to you(also &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt; for your helpful additions)&lt;/P&gt;&lt;P&gt;But the last hour I struggled with a problem and you may know how to fix it.&lt;/P&gt;&lt;P&gt;It's not working if I load the table with naming the fieldnames like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Alias field1 as Field1;
LOAD 
Field1, 
Field2, 
Field3
FROM 
[sample.xlsx]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to load the table with *. Do you know why? Is there a chance to load it without *?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 07:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1591376#M595561</guid>
      <dc:creator>senior_freshmen</dc:creator>
      <dc:date>2019-06-13T07:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script: Lowercase ALL fieldnames automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1591505#M595562</link>
      <description>&lt;P&gt;You could do this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Alias field1 as Field1;
TmpSample:
LOAD *
FROM 
[sample.xlsx]

Sample:
NoConcatenate LOAD 
Field1, 
Field2, 
Field3
FROM 
[sample.xlsx];
Drop TmpSample;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 13 Jun 2019 10:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1591505#M595562</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-06-13T10:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script: Lowercase ALL fieldnames automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1779700#M595563</link>
      <description>&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;is there any way to change only script to lower, without&amp;nbsp; data.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 11:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Lowercase-ALL-fieldnames-automatically/m-p/1779700#M595563</guid>
      <dc:creator>Akina0929</dc:creator>
      <dc:date>2021-02-03T11:21:34Z</dc:date>
    </item>
  </channel>
</rss>

