<?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 Renaming fields using load all (*) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-load-all/m-p/152808#M30100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob&lt;/P&gt;&lt;P&gt;I would do a simple load as follows, followed by a drop field, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;TableName:&lt;BR /&gt;LOAD *&lt;BR /&gt;, COL1 AS COL1_RENAMED&lt;BR /&gt;FROM .........xlsx;&lt;BR /&gt;DROP FIELD COL1 FROM TableName;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This means you are renaming one of the columns on load, and removing the original column after the load has finished. This is fine if you are thinking of only renaming a few of the fields, if you are thinking of renaming many of them then it makes sense to simply to it all in the load statement (i.e. do a specific load of each field).&lt;/P&gt;&lt;P&gt;Hope it helps a bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2010 13:24:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-19T13:24:18Z</dc:date>
    <item>
      <title>Renaming fields using load all (*)</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-load-all/m-p/152807#M30099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am loading data from an excel spreadsheet with multiple columns.&lt;/P&gt;&lt;P&gt;It simplies things if i use the load all (*) statement.&lt;/P&gt;&lt;P&gt;If I use this functionailty, does it prevent me from renaming my fields? and how do I do this?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;B&gt;LOAD&lt;BR /&gt;&lt;/B&gt;&lt;B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/B&gt;&lt;BR /&gt; * &lt;B&gt;FROM&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;/B&gt;[rob data\Management accts\budgets.xlsx]&lt;BR /&gt;(&lt;BR /&gt;ooxml, embedded labels, table is feb);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 13:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-fields-using-load-all/m-p/152807#M30099</guid>
      <dc:creator />
      <dc:date>2010-02-19T13:15:49Z</dc:date>
    </item>
    <item>
      <title>Renaming fields using load all (*)</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-load-all/m-p/152808#M30100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob&lt;/P&gt;&lt;P&gt;I would do a simple load as follows, followed by a drop field, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;TableName:&lt;BR /&gt;LOAD *&lt;BR /&gt;, COL1 AS COL1_RENAMED&lt;BR /&gt;FROM .........xlsx;&lt;BR /&gt;DROP FIELD COL1 FROM TableName;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This means you are renaming one of the columns on load, and removing the original column after the load has finished. This is fine if you are thinking of only renaming a few of the fields, if you are thinking of renaming many of them then it makes sense to simply to it all in the load statement (i.e. do a specific load of each field).&lt;/P&gt;&lt;P&gt;Hope it helps a bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 13:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-fields-using-load-all/m-p/152808#M30100</guid>
      <dc:creator />
      <dc:date>2010-02-19T13:24:18Z</dc:date>
    </item>
    <item>
      <title>Renaming fields using load all (*)</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-fields-using-load-all/m-p/152809#M30101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rob.&lt;/P&gt;&lt;P&gt;For renaming fields you should to use an initial fieldname (column name from Excel) and use "AS" statement.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;LOAD ExcelColumnName AS NewFieldName,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or once else you can use a built-in function RENAME.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 13:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-fields-using-load-all/m-p/152809#M30101</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-02-19T13:26:08Z</dc:date>
    </item>
  </channel>
</rss>

