<?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: Delete and Give Name Fields (rename, alias..) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Delete-and-Give-Name-Fields-rename-alias/m-p/1415943#M801117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you try to rename B into A, fields A and B are only present in this single table? And there isn't already a field called B in that table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to work for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="183706" alt="Delete and give name fields thread282153.jpg" class="jive-image image-1" height="192" src="/legacyfs/online/183706_Delete and give name fields thread282153.jpg" style="width: 298px; height: 191.453px;" width="298" /&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15109385339132671 jive_text_macro" jivemacro_uid="_15109385339132671" modifiedtitle="true"&gt;
&lt;P&gt;RawData:&lt;/P&gt;
&lt;P&gt;LOAD ID, A, A*2 AS B INLINE [&lt;/P&gt;
&lt;P&gt;ID, A&lt;/P&gt;
&lt;P&gt;1, 5&lt;/P&gt;
&lt;P&gt;2, 7&lt;/P&gt;
&lt;P&gt;3, 11&lt;/P&gt;
&lt;P&gt;4, 2&lt;/P&gt;
&lt;P&gt;5, 20&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Field A;&lt;/P&gt;
&lt;P&gt;RENAME Field B TO A;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ProcessedData:&lt;/P&gt;
&lt;P&gt;NOCONCATENATE&lt;/P&gt;
&lt;P&gt;LOAD ID, A / 100.0 AS Percentage&lt;/P&gt;
&lt;P&gt;RESIDENT RawData;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Nov 2017 17:10:07 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2017-11-17T17:10:07Z</dc:date>
    <item>
      <title>Delete and Give Name Fields (rename, alias..)</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-and-Give-Name-Fields-rename-alias/m-p/1415939#M801113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi QV experts!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do something in the load script but it seems that i am missing something.. hope that you can help me out. I will give you a simplified version of my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have a field A and a field B in the same table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to delete the field A and rename the field B as A.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i do is:&lt;/P&gt;&lt;P&gt;Drop A;&lt;/P&gt;&lt;P&gt;Rename B to A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't give error but,&amp;nbsp; below, the code uses the field A for some calculations (I want this field A to have the values of the field B, this is why i do the name change). And at this point the error comes out.&amp;nbsp;&amp;nbsp;&amp;nbsp; Field Not Found - &amp;lt;A&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could i solve it!?&lt;/P&gt;&lt;P&gt;Thanks!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-and-Give-Name-Fields-rename-alias/m-p/1415939#M801113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Delete and Give Name Fields (rename, alias..)</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-and-Give-Name-Fields-rename-alias/m-p/1415940#M801114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you do this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD A,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A AS B&lt;/P&gt;&lt;P&gt;FROM yoursourceTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop A;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 16:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-and-Give-Name-Fields-rename-alias/m-p/1415940#M801114</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-11-17T16:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Delete and Give Name Fields (rename, alias..)</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-and-Give-Name-Fields-rename-alias/m-p/1415941#M801115</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;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;B as A&lt;/P&gt;&lt;P&gt;from -----------------------;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 16:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-and-Give-Name-Fields-rename-alias/m-p/1415941#M801115</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2017-11-17T16:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Delete and Give Name Fields (rename, alias..)</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-and-Give-Name-Fields-rename-alias/m-p/1415942#M801116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post the actual script or a part of the document log that shows the code you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 16:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-and-Give-Name-Fields-rename-alias/m-p/1415942#M801116</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-11-17T16:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Delete and Give Name Fields (rename, alias..)</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-and-Give-Name-Fields-rename-alias/m-p/1415943#M801117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you try to rename B into A, fields A and B are only present in this single table? And there isn't already a field called B in that table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to work for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="183706" alt="Delete and give name fields thread282153.jpg" class="jive-image image-1" height="192" src="/legacyfs/online/183706_Delete and give name fields thread282153.jpg" style="width: 298px; height: 191.453px;" width="298" /&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15109385339132671 jive_text_macro" jivemacro_uid="_15109385339132671" modifiedtitle="true"&gt;
&lt;P&gt;RawData:&lt;/P&gt;
&lt;P&gt;LOAD ID, A, A*2 AS B INLINE [&lt;/P&gt;
&lt;P&gt;ID, A&lt;/P&gt;
&lt;P&gt;1, 5&lt;/P&gt;
&lt;P&gt;2, 7&lt;/P&gt;
&lt;P&gt;3, 11&lt;/P&gt;
&lt;P&gt;4, 2&lt;/P&gt;
&lt;P&gt;5, 20&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Field A;&lt;/P&gt;
&lt;P&gt;RENAME Field B TO A;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ProcessedData:&lt;/P&gt;
&lt;P&gt;NOCONCATENATE&lt;/P&gt;
&lt;P&gt;LOAD ID, A / 100.0 AS Percentage&lt;/P&gt;
&lt;P&gt;RESIDENT RawData;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 17:10:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-and-Give-Name-Fields-rename-alias/m-p/1415943#M801117</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-11-17T17:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Delete and Give Name Fields (rename, alias..)</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-and-Give-Name-Fields-rename-alias/m-p/1415944#M801118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to everyone for the help and the interest. I dont really understand why, as the script is huge and messy (someone made it a long time ago and no one at my company fully understands it). Nevertheless i came p with something that worked out:&lt;/P&gt;&lt;P&gt;-I created a new table with the sa&amp;lt;ame fields as the old one, i deleted the old one, did the change in the new one and then rename it as the old one. Here it is:&lt;/P&gt;&lt;P&gt;#TABLE:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load *&lt;/P&gt;&lt;P&gt;Resident TABLE; &lt;/P&gt;&lt;P&gt;Drop table TABLE;&lt;/P&gt;&lt;P&gt;Drop field A from #TABLE;&lt;/P&gt;&lt;P&gt;Rename Field B To A;&lt;/P&gt;&lt;P&gt;Rename Table #TABLE To TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 09:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-and-Give-Name-Fields-rename-alias/m-p/1415944#M801118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-22T09:39:42Z</dc:date>
    </item>
  </channel>
</rss>

