<?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 USING - with QUALIFY? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RENAME-USING-with-QUALIFY/m-p/917500#M318063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there are no possibilities with the rename-statement itself. You will always need to adjust the mapping table - here an example how you could get a mapping-table to remove the table-qualifier (which could be of course outsourced as sub-routine to keep the script clean).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 1 to nooffields('YourTable')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldname($(i), 'YourTable') as OldName, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(fieldname($(i), 'YourTable'), '.', 2) as NewName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autogenerate 1;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RenameMap:&lt;/P&gt;&lt;P&gt;Mapping Load * Resident temp;&lt;/P&gt;&lt;P&gt;drop tables temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2015 10:37:36 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-07-28T10:37:36Z</dc:date>
    <item>
      <title>RENAME USING - with QUALIFY?</title>
      <link>https://community.qlik.com/t5/QlikView/RENAME-USING-with-QUALIFY/m-p/917499#M318062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I&amp;nbsp; can easily rename fields with a MAPPING table using the statement &amp;gt; &lt;STRONG&gt;RENAME USING ..&lt;/STRONG&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;However, I have to use QUALIFY with all the fields to be able to compare it to another in QlikView. So I could just as easily construct individual Applymap() commands using the SUBFIELD() function, to just cut off that qualification - and concatenate it to the result_name. But is there a way to build this into the &amp;gt; RENAME USING &amp;lt; statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 09:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RENAME-USING-with-QUALIFY/m-p/917499#M318062</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-07-28T09:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: RENAME USING - with QUALIFY?</title>
      <link>https://community.qlik.com/t5/QlikView/RENAME-USING-with-QUALIFY/m-p/917500#M318063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there are no possibilities with the rename-statement itself. You will always need to adjust the mapping table - here an example how you could get a mapping-table to remove the table-qualifier (which could be of course outsourced as sub-routine to keep the script clean).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 1 to nooffields('YourTable')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldname($(i), 'YourTable') as OldName, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(fieldname($(i), 'YourTable'), '.', 2) as NewName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autogenerate 1;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RenameMap:&lt;/P&gt;&lt;P&gt;Mapping Load * Resident temp;&lt;/P&gt;&lt;P&gt;drop tables temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 10:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RENAME-USING-with-QUALIFY/m-p/917500#M318063</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-07-28T10:37:36Z</dc:date>
    </item>
  </channel>
</rss>

