<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Renaming-Fields/m-p/926101#M962807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to rename field with out disturbing script part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;Right now script like below:&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actual fields for ex:&lt;/P&gt;&lt;P&gt;Column1, column2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I should use * but need to change Column1 as Dim1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2015 06:43:51 GMT</pubDate>
    <dc:creator>priyarane</dc:creator>
    <dc:date>2015-10-20T06:43:51Z</dc:date>
    <item>
      <title>Renaming Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-Fields/m-p/926101#M962807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to rename field with out disturbing script part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;Right now script like below:&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actual fields for ex:&lt;/P&gt;&lt;P&gt;Column1, column2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I should use * but need to change Column1 as Dim1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 06:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Fields/m-p/926101#M962807</guid>
      <dc:creator>priyarane</dc:creator>
      <dc:date>2015-10-20T06:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-Fields/m-p/926102#M962808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H3&gt;Using the Alias or Qualify Statement&lt;/H3&gt;&lt;P&gt;The &lt;A class="MCXref_0"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/A&gt; or &lt;A class="MCXref_0"&gt;&lt;EM&gt;Select (SQL)&lt;/EM&gt;&lt;/A&gt; statement can be preceded by an &lt;A class="MCXref_0"&gt;&lt;EM&gt;Alias&lt;/EM&gt;&lt;/A&gt; or &lt;A class="MCXref_0" target="" title=""&gt;&lt;EM&gt;Qualify&lt;/EM&gt;&lt;/A&gt; statement. These two statements are similar, in that they “silently” rename the fields in the output of the &lt;STRONG&gt;Load&lt;/STRONG&gt; or &lt;STRONG&gt;Select&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;Alias ID as CustomerID;&lt;/P&gt;&lt;P class="Code"&gt;Load * from Customer.csv;&lt;/P&gt;&lt;P&gt;However, a consequence of using the &lt;STRONG&gt;Alias&lt;/STRONG&gt; or &lt;STRONG&gt;Qualify&lt;/STRONG&gt; statement is that you cannot use a resident load that refers to an original field name – instead it must refer to the field name as defined in the &lt;STRONG&gt;Alias&lt;/STRONG&gt; or &lt;STRONG&gt;Qualify&lt;/STRONG&gt; statement. This is sometimes confusing – especially if the &lt;STRONG&gt;Alias&lt;/STRONG&gt; or &lt;STRONG&gt;Qualify&lt;/STRONG&gt; statement is written earlier in the script, far from the &lt;STRONG&gt;Load&lt;/STRONG&gt; statement. The &lt;STRONG&gt;Alias&lt;/STRONG&gt; or &lt;STRONG&gt;Qualify&lt;/STRONG&gt; statement will make your script harder to understand for other developers.&lt;/P&gt;&lt;H3&gt;Using the Rename Fields Statement&lt;/H3&gt;&lt;P&gt;This is a very good method if you want to rename all or some fields at the end of the script run. The best way is to use a mapping table with the old and new field names and use this as follows.&lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;FieldNameMap;&lt;/P&gt;&lt;P class="Code"&gt;Mapping Load OldFieldName, NewFieldName From FieldNames ;&lt;/P&gt;&lt;P class="Code"&gt;Rename Fields using FieldNameMap;&lt;/P&gt;&lt;P&gt;You can store the mapping table in your database or in an Excel sheet so that it is easier to maintain.&lt;/P&gt;&lt;P&gt;A good solution may be to use a combination of using the &lt;STRONG&gt;as&lt;/STRONG&gt; specifier and using the &lt;STRONG&gt;Rename fields&lt;/STRONG&gt; statement. The &lt;STRONG&gt;as&lt;/STRONG&gt; qualifier is used to define the data model, and the &lt;STRONG&gt;Rename fields&lt;/STRONG&gt; statement to make the fields user-friendly. See &lt;A class="MCXref_0" target="" title=""&gt;&lt;EM&gt;Rename Field&lt;/EM&gt;&lt;/A&gt; and &lt;A class="MCXref_0" target="" title=""&gt;&lt;EM&gt;Mapping&lt;/EM&gt;&lt;/A&gt; for more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 06:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Fields/m-p/926102#M962808</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-10-20T06:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-Fields/m-p/926103#M962809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after your script insert:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rename field Column1 to Dim1;&lt;/P&gt;&lt;P&gt;that should do what you want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 06:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Fields/m-p/926103#M962809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-20T06:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-Fields/m-p/926104#M962810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;try this&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Alias &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Column1 as Dim1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM Table;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;hope it will help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 06:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Fields/m-p/926104#M962810</guid>
      <dc:creator>ahmar811</dc:creator>
      <dc:date>2015-10-20T06:54:33Z</dc:date>
    </item>
  </channel>
</rss>

