<?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 Add a column to resident table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-resident-table/m-p/488753#M182646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to add a calculated column to a resident table.&lt;/P&gt;&lt;P&gt;I am using this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Table_2]&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;Amount * quantity as totalAmount&lt;/P&gt;&lt;P&gt;Resident Table_1;&lt;/P&gt;&lt;P&gt;Drop table Table_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works but when i need to ad several columns which depends on an other calculated columns then i need to repeat this process...like&lt;/P&gt;&lt;P&gt;If i want to add percentage of totalAmount then i need to repeat this process like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Table_3]&lt;/P&gt;&lt;P&gt;Load * ,&lt;/P&gt;&lt;P&gt;totalAmount * .01 as percentage&lt;/P&gt;&lt;P&gt;Resident Table_2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Table_2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I do both operations in one Load statement?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Nov 2013 23:42:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-25T23:42:14Z</dc:date>
    <item>
      <title>Add a column to resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-resident-table/m-p/488753#M182646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to add a calculated column to a resident table.&lt;/P&gt;&lt;P&gt;I am using this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Table_2]&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;Amount * quantity as totalAmount&lt;/P&gt;&lt;P&gt;Resident Table_1;&lt;/P&gt;&lt;P&gt;Drop table Table_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works but when i need to ad several columns which depends on an other calculated columns then i need to repeat this process...like&lt;/P&gt;&lt;P&gt;If i want to add percentage of totalAmount then i need to repeat this process like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Table_3]&lt;/P&gt;&lt;P&gt;Load * ,&lt;/P&gt;&lt;P&gt;totalAmount * .01 as percentage&lt;/P&gt;&lt;P&gt;Resident Table_2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Table_2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I do both operations in one Load statement?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 23:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-column-to-resident-table/m-p/488753#M182646</guid>
      <dc:creator />
      <dc:date>2013-11-25T23:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add a column to resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-resident-table/m-p/488754#M182647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this method:&lt;/P&gt;&lt;P&gt;1. Method1 (Preferable)&lt;/P&gt;&lt;P&gt;[Table_2]&lt;/P&gt;&lt;P&gt;Load *, totalAmount*0.01 AS percentage;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Amount * quantity AS totalAmount,&lt;/P&gt;&lt;P&gt;Resident Table_1;&lt;/P&gt;&lt;P&gt;Drop table Table_1;&lt;/P&gt;&lt;P&gt;===============================&lt;/P&gt;&lt;P&gt;2. Method2&lt;/P&gt;&lt;P&gt;[Table_2]&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Amount * quantity AS totalAmount,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Amount * quantity * 0.01 AS percentage&lt;/P&gt;&lt;P&gt;Resident Table_1;&lt;/P&gt;&lt;P&gt;Drop table Table_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 00:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-column-to-resident-table/m-p/488754#M182647</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-11-26T00:59:05Z</dc:date>
    </item>
  </channel>
</rss>

