<?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: Renaming field names using expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Renaming-field-names-using-expression/m-p/780808#M276645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example changing TableA.CustomerRegion to CustomerRegion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2015 14:24:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-24T14:24:25Z</dc:date>
    <item>
      <title>Renaming field names using expression</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-field-names-using-expression/m-p/780807#M276644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qualify *;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;CustomerID&lt;/P&gt;&lt;P&gt;,CustomerName&lt;/P&gt;&lt;P&gt;,CustomerRegion&lt;/P&gt;&lt;P&gt;from TableA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableB:&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;CustomerID&lt;/P&gt;&lt;P&gt;,CustomerName&lt;/P&gt;&lt;P&gt;,CustomerRegion&lt;/P&gt;&lt;P&gt;from TableB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unqualify *;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load the data in and then create 2 table objects in QV. NOTE: these objects aren't linked in any way and can not be renamed in the script (this is important).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to:&lt;/P&gt;&lt;P&gt;Remove the qualified table name from all field names in the table object. Is there any way to do this in the label section without having to type each one in?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 14:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-field-names-using-expression/m-p/780807#M276644</guid>
      <dc:creator />
      <dc:date>2015-02-24T14:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming field names using expression</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-field-names-using-expression/m-p/780808#M276645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example changing TableA.CustomerRegion to CustomerRegion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 14:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-field-names-using-expression/m-p/780808#M276645</guid>
      <dc:creator />
      <dc:date>2015-02-24T14:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming field names using expression</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-field-names-using-expression/m-p/780809#M276646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to load both the tables in the same data model, you should try concatenating the tables by simply removing Qualify *; statement. something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;CustomerID&lt;/P&gt;&lt;P&gt;,CustomerName&lt;/P&gt;&lt;P&gt;,CustomerRegion&lt;/P&gt;&lt;P&gt;from TableA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableB:&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;CustomerID&lt;/P&gt;&lt;P&gt;,CustomerName&lt;/P&gt;&lt;P&gt;,CustomerRegion&lt;/P&gt;&lt;P&gt;from TableB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since the field names are the same in both the tables, Qlikview will autoconcatenate the tables. you will end up with one table (the name will still be TableA) but will have data from both the tables and your field names will remain the same without the prefix TableA. or TableB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if for some reason, you want to keep the two tables separate, then the fields should be renamed in one table so that they are different from the names in the other table. this is what Qualify *; statement is doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if you just want to remove TableA. prefix from the field names in the first table, simply move your Qualify *. statement after TableA load statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 14:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-field-names-using-expression/m-p/780809#M276646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-24T14:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming field names using expression</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-field-names-using-expression/m-p/780810#M276647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot rename a field to a name that already exists. So if you rename TableA.&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CustomerRegion to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CustomerRegion, then you will not be able to rename TableB.&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CustomerRegion to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CustomerRegion, because at this time, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CustomerRegion already exists. If I remember correctly, the rename will fail silently.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not qualifying them is the best solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 14:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-field-names-using-expression/m-p/780810#M276647</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-02-24T14:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming field names using expression</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-field-names-using-expression/m-p/780811#M276648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your posts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to the design I cannot change the script at all. I need to find a way of renaming in the properties of the table itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 16:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-field-names-using-expression/m-p/780811#M276648</guid>
      <dc:creator />
      <dc:date>2015-02-24T16:07:13Z</dc:date>
    </item>
  </channel>
</rss>

