<?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: Create a new calculated field using two fields in a table in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-new-calculated-field-using-two-fields-in-a-table-in-the/m-p/954#M178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but my query is the table is already loaded and I cannot alter that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case the table is already loaded from few qvd files using concatenation and joins. Now I want to add a new field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jan 2018 18:23:28 GMT</pubDate>
    <dc:creator>mayuranp</dc:creator>
    <dc:date>2018-01-15T18:23:28Z</dc:date>
    <item>
      <title>Create a new calculated field using two fields in a table in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-calculated-field-using-two-fields-in-a-table-in-the/m-p/952#M176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have simplified my query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I have a table with columns A,B,C already loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to create a new column 'D' in this table by adding B+C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it can be done as below, but don't want to create another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NewTable&lt;SPAN style="font-size: 10pt;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;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; B+C as D&lt;/P&gt;&lt;P&gt;RESIDENT OldTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE OldTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question, if the above is the only method, is it the most efficient operation considering the table can have a million+ records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 17:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-calculated-field-using-two-fields-in-a-table-in-the/m-p/952#M176</guid>
      <dc:creator>mayuranp</dc:creator>
      <dc:date>2018-01-15T17:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new calculated field using two fields in a table in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-calculated-field-using-two-fields-in-a-table-in-the/m-p/953#M177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have to do this in a resident load... you can do this in your first OldTable....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OldTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD A,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B+C as D&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ....;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 18:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-calculated-field-using-two-fields-in-a-table-in-the/m-p/953#M177</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-15T18:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new calculated field using two fields in a table in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-calculated-field-using-two-fields-in-a-table-in-the/m-p/954#M178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but my query is the table is already loaded and I cannot alter that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case the table is already loaded from few qvd files using concatenation and joins. Now I want to add a new field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 18:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-calculated-field-using-two-fields-in-a-table-in-the/m-p/954#M178</guid>
      <dc:creator>mayuranp</dc:creator>
      <dc:date>2018-01-15T18:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new calculated field using two fields in a table in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-calculated-field-using-two-fields-in-a-table-in-the/m-p/955#M179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do you mean it is already loaded? You will reload everything again to add the new column, right? Are you not planning to reload your application on a fixed schedule?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 19:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-calculated-field-using-two-fields-in-a-table-in-the/m-p/955#M179</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-15T19:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new calculated field using two fields in a table in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-calculated-field-using-two-fields-in-a-table-in-the/m-p/956#M180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayuran, you can rename the old table to keep to keep the original name in the new table:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15160503743677659 jive_text_macro" jivemacro_uid="_15160503743677659"&gt;
&lt;P&gt;Rename oldTableName to TableNameToDrop:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;oldTableName:&lt;/P&gt;
&lt;P&gt;LOAD ..&lt;/P&gt;
&lt;P&gt;Resident &lt;SPAN style="font-size: 13.3333px;"&gt;TableNameToDrop;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DROP &lt;SPAN style="font-size: 13.3333px;"&gt;TableNameToDrop;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 21:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-calculated-field-using-two-fields-in-a-table-in-the/m-p/956#M180</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-01-15T21:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new calculated field using two fields in a table in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-calculated-field-using-two-fields-in-a-table-in-the/m-p/957#M181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your table has a primary key (pk) you can use a left join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie if A is your pk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;left join (OldTable) load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B+C as D&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident OldTable;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 21:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-calculated-field-using-two-fields-in-a-table-in-the/m-p/957#M181</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2018-01-15T21:34:15Z</dc:date>
    </item>
  </channel>
</rss>

