<?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: “RENAME FIELDS Using xMap”, on multiple fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RENAME-FIELDS-Using-xMap-on-multiple-fields/m-p/1052434#M353113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK, you need to create key fields using LOAD statements, i.e. when you are creating the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key fields don't need a user friendly name in most applications (often they are even hidden from the user using a Hide prefix), so there is seldom a need to rename key fields using a mapping table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the needed links when LOADing your tables by renaming the input table fields using AS, if needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Feb 2016 17:49:00 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-02-05T17:49:00Z</dc:date>
    <item>
      <title>“RENAME FIELDS Using xMap”, on multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/RENAME-FIELDS-Using-xMap-on-multiple-fields/m-p/1052431#M353110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE style="border: 0px; font-size: 13px; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;&lt;TBODY&gt;&lt;TR style="border: 0px;"&gt;&lt;TD class="votecell" style="padding: 0 15px 0 0; border: 0px;"&gt;&lt;P class="vote" style="text-align: center;"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="postcell" style="border: 0px;"&gt;&lt;P style="margin: 0 0 1em;"&gt;I'm trying to use the "RENAME FIELDS using x;" function to rename fields in my tables, but i'm running into some strange behaviour and I was wondering if someone could explain why this is happening and how best to avoid it?&lt;/P&gt;&lt;P style="margin: 0 0 1em;"&gt;see my code below, you can see it will not rename column "BLAH", but why?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;t_1:&lt;BR /&gt;mapping load * inline [&lt;BR /&gt;&amp;nbsp; Orig, New&lt;BR /&gt;&amp;nbsp; CUSTNO, CustomerNumber&lt;BR /&gt;&amp;nbsp; BLAH, CustomerNumber&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;test:&lt;BR /&gt;Load * inline [&lt;BR /&gt;&amp;nbsp; CUSTNO, Name&lt;BR /&gt;&amp;nbsp; 1234, James&lt;BR /&gt;&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;test2:&lt;BR /&gt;Load * inline [&lt;BR /&gt;&amp;nbsp; BLAH, Name2&lt;BR /&gt;&amp;nbsp; 1235, Chris&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;RENAME FIELDS using t_1;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 16:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RENAME-FIELDS-Using-xMap-on-multiple-fields/m-p/1052431#M353110</guid>
      <dc:creator>wallerjc</dc:creator>
      <dc:date>2016-02-04T16:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: “RENAME FIELDS Using xMap”, on multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/RENAME-FIELDS-Using-xMap-on-multiple-fields/m-p/1052432#M353111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's because the new field name CustomerNumber already exists (edit: at the time of renaming, see previous renaming of CUSTNO), a scenario where you can't use rename fields (this would imply merging the existing fields into a key field, and this is more than just renaming fields).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 17:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RENAME-FIELDS-Using-xMap-on-multiple-fields/m-p/1052432#M353111</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-04T17:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: “RENAME FIELDS Using xMap”, on multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/RENAME-FIELDS-Using-xMap-on-multiple-fields/m-p/1052433#M353112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer I guessed as much. If I wanted these to be renamed and joined as keys-- would this just be an incorrect use of RENAME FIELDS statement. COuld you suggest a way to do this differently, or should it just be hardcoded in there somehow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 09:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RENAME-FIELDS-Using-xMap-on-multiple-fields/m-p/1052433#M353112</guid>
      <dc:creator>wallerjc</dc:creator>
      <dc:date>2016-02-05T09:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: “RENAME FIELDS Using xMap”, on multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/RENAME-FIELDS-Using-xMap-on-multiple-fields/m-p/1052434#M353113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK, you need to create key fields using LOAD statements, i.e. when you are creating the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key fields don't need a user friendly name in most applications (often they are even hidden from the user using a Hide prefix), so there is seldom a need to rename key fields using a mapping table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the needed links when LOADing your tables by renaming the input table fields using AS, if needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 17:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RENAME-FIELDS-Using-xMap-on-multiple-fields/m-p/1052434#M353113</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-05T17:49:00Z</dc:date>
    </item>
  </channel>
</rss>

