<?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: How to calculate field in script after joining two tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-field-in-script-after-joining-two-tables/m-p/1562221#M1182635</link>
    <description>Hi I have a similar query .i need to create a new table and the majority of the fields in this table are derived from a calculation based on couple of other resident table fields . how should i mention it in the script .please help</description>
    <pubDate>Thu, 28 Mar 2019 07:01:53 GMT</pubDate>
    <dc:creator>saradhakishore</dc:creator>
    <dc:date>2019-03-28T07:01:53Z</dc:date>
    <item>
      <title>How to calculate field in script after joining two tables</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-field-in-script-after-joining-two-tables/m-p/256968#M1182631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone explain to me how to calculate a field in the script from two fields in a table that is the result of left-joining to load statements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the simplified script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt; Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InvoiceDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InvoiceValueEuro &lt;/P&gt;&lt;P&gt;From file1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InvoiceDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExchangeRate&lt;/P&gt;&lt;P&gt;From file2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the next step to add to this table the field InvoiceValueUSD=InvoiceValueEuro*ExchangeRate&amp;nbsp; ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 15:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-field-in-script-after-joining-two-tables/m-p/256968#M1182631</guid>
      <dc:creator />
      <dc:date>2011-11-25T15:15:43Z</dc:date>
    </item>
    <item>
      <title>How to calculate field in script after joining two tables</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-field-in-script-after-joining-two-tables/m-p/256969#M1182632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simple approach would be a resident load (or store to and load from a qvd) with adding the new field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;LOAD *, InvoiceValueEuro*ExchangeRate as InvoiceValueUSD&lt;/P&gt;&lt;P&gt;Resident Tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Tab1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 19:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-field-in-script-after-joining-two-tables/m-p/256969#M1182632</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-25T19:06:29Z</dc:date>
    </item>
    <item>
      <title>How to calculate field in script after joining two tables</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-field-in-script-after-joining-two-tables/m-p/256970#M1182633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you could do a Mapping Load of your Exchangerate table first,&lt;/P&gt;&lt;P&gt;then use applymap function in creation of your new field while loading your value table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 19:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-field-in-script-after-joining-two-tables/m-p/256970#M1182633</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-25T19:32:16Z</dc:date>
    </item>
    <item>
      <title>How to calculate field in script after joining two tables</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-field-in-script-after-joining-two-tables/m-p/256971#M1182634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for both answers. I have tried both solutions, and each works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 08:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-field-in-script-after-joining-two-tables/m-p/256971#M1182634</guid>
      <dc:creator />
      <dc:date>2011-11-30T08:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate field in script after joining two tables</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-field-in-script-after-joining-two-tables/m-p/1562221#M1182635</link>
      <description>Hi I have a similar query .i need to create a new table and the majority of the fields in this table are derived from a calculation based on couple of other resident table fields . how should i mention it in the script .please help</description>
      <pubDate>Thu, 28 Mar 2019 07:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-field-in-script-after-joining-two-tables/m-p/1562221#M1182635</guid>
      <dc:creator>saradhakishore</dc:creator>
      <dc:date>2019-03-28T07:01:53Z</dc:date>
    </item>
  </channel>
</rss>

