<?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 Join load and calculate fields with both tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-load-and-calculate-fields-with-both-tables/m-p/234996#M716556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joins are the way to go here. But technically, you don't need to do a join to use fields from two or more tables during a load. You can set up mapping tables:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;[Price Map]:&lt;BR /&gt;MAPPING LOAD *&lt;BR /&gt;RESIDENT [Table1]&lt;BR /&gt;;&lt;BR /&gt;[Table3]:&lt;BR /&gt;LOAD&lt;BR /&gt; Reference&lt;BR /&gt;,Quantity&lt;BR /&gt;,applymap('Price Map',Reference) as "Unit Price"&lt;BR /&gt;,Quantity * applymap('Price Map',Reference) as "Total Price"&lt;BR /&gt;RESIDENT [Table 2]&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;One possible advantage is if you want a default value. When doing a join, mismatching rows will have null values. Using a map allows you to specify a default like 'Missing' if you wish to make it easier to search for these. You can always do that as a separate join step by joining the table back to itself, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2010 00:06:54 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-02-10T00:06:54Z</dc:date>
    <item>
      <title>Join load and calculate fields with both tables</title>
      <link>https://community.qlik.com/t5/QlikView/Join-load-and-calculate-fields-with-both-tables/m-p/234994#M716554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After a join load, I need to calculate a field with the data from both tables&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;Table1 : Reference, Price&lt;/P&gt;&lt;P&gt;Table2 : Reference, Quantity&lt;/P&gt;&lt;P&gt;I want to build a new table with&lt;/P&gt;&lt;P&gt;Reference&lt;/P&gt;&lt;P&gt;Price from Table1&lt;/P&gt;&lt;P&gt;Quantity from Talbe2&lt;/P&gt;&lt;P&gt;Price*Quantity&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pierre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 21:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-load-and-calculate-fields-with-both-tables/m-p/234994#M716554</guid>
      <dc:creator>pdumas</dc:creator>
      <dc:date>2010-02-09T21:44:47Z</dc:date>
    </item>
    <item>
      <title>Join load and calculate fields with both tables</title>
      <link>https://community.qlik.com/t5/QlikView/Join-load-and-calculate-fields-with-both-tables/m-p/234995#M716555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need to join both tables in order to calculate with the fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Table3: JOIN (Table1) LOAD * RESIDENT Table2;&lt;BR /&gt;LOAD *, Price*Quantity AS Cost RESIDENT Table3;&lt;BR /&gt;DROP TABLE Table3; DROP TABLE Table2; DROP TABLE Table1;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 22:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-load-and-calculate-fields-with-both-tables/m-p/234995#M716555</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2010-02-09T22:17:40Z</dc:date>
    </item>
    <item>
      <title>Join load and calculate fields with both tables</title>
      <link>https://community.qlik.com/t5/QlikView/Join-load-and-calculate-fields-with-both-tables/m-p/234996#M716556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joins are the way to go here. But technically, you don't need to do a join to use fields from two or more tables during a load. You can set up mapping tables:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;[Price Map]:&lt;BR /&gt;MAPPING LOAD *&lt;BR /&gt;RESIDENT [Table1]&lt;BR /&gt;;&lt;BR /&gt;[Table3]:&lt;BR /&gt;LOAD&lt;BR /&gt; Reference&lt;BR /&gt;,Quantity&lt;BR /&gt;,applymap('Price Map',Reference) as "Unit Price"&lt;BR /&gt;,Quantity * applymap('Price Map',Reference) as "Total Price"&lt;BR /&gt;RESIDENT [Table 2]&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;One possible advantage is if you want a default value. When doing a join, mismatching rows will have null values. Using a map allows you to specify a default like 'Missing' if you wish to make it easier to search for these. You can always do that as a separate join step by joining the table back to itself, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 00:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-load-and-calculate-fields-with-both-tables/m-p/234996#M716556</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-02-10T00:06:54Z</dc:date>
    </item>
  </channel>
</rss>

