<?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 Joining data field in calculation from two tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369047#M1173090</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;I am a beginner at using/developing in QV so excuse my rudimentary questions..:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) I would like to use a data field from one table (loaded into script) as a value in another table. The two tables are joined by primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;When trying to use the data field "OrderQty" from table "OrderDetail"&amp;nbsp; - in - table "Product" (which doesn´t contain a data field form QrderQty) I get an error message.. when loading data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I use the "join" function to be able to calculate new values in the table "Product" with the help of data field "OrderQty"???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Kriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2012 15:13:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-26T15:13:21Z</dc:date>
    <item>
      <title>Joining data field in calculation from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369047#M1173090</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;I am a beginner at using/developing in QV so excuse my rudimentary questions..:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) I would like to use a data field from one table (loaded into script) as a value in another table. The two tables are joined by primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;When trying to use the data field "OrderQty" from table "OrderDetail"&amp;nbsp; - in - table "Product" (which doesn´t contain a data field form QrderQty) I get an error message.. when loading data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I use the "join" function to be able to calculate new values in the table "Product" with the help of data field "OrderQty"???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Kriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 15:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369047#M1173090</guid>
      <dc:creator />
      <dc:date>2012-06-26T15:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Joining data field in calculation from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369048#M1173091</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;Instead of Joining, you can link these 2 tables with the primary key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The advantage of qlikview is AQL (Associative Query Logic), Which give more felxibility on data association.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AQL is a query language based on a data base management system which uses Codd's relational model of data. It has been designed mainly to be used by the nonspecialist in data processing for interactive problem solving, application building, and simulation. Ease of use is achieved by providing an interface which allows the use of default options, synonyms, and definitions of attributes, inference, and the possibility of interactive completion of the query (i.e., menu). AQL combines the capabilities of the relational model of data with the powerful computational facilities and control structure of the host programming language (i.e., APL). A prototype version of AQL, which has been implemented, is reviewed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 15:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369048#M1173091</guid>
      <dc:creator />
      <dc:date>2012-06-26T15:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Joining data field in calculation from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369049#M1173092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for very rapid reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- How do I create(use) the value &lt;STRONG&gt;OrderQty &lt;/STRONG&gt;in the table "Product"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculation I would like to acheive is to use values for &lt;STRONG&gt;OrderQty&lt;/STRONG&gt; together with &lt;STRONG&gt;StandardCost&lt;/STRONG&gt; to create totCost... (OrderQty * StandardCost)... but I do not know how to load / join / connect the two data fields from the two separate tables&amp;nbsp; &lt;/P&gt;&lt;P&gt;- and they are joined by a p key "&lt;SPAN style="text-decoration: underline;"&gt;ProductID"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Please show how to make the calculation in one of the tables &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;SalesOrder:&lt;/P&gt;&lt;P&gt;LOAD SalesOrderID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;ProductID,&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UnitPrice, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; OrderQty,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderQty * UnitPrice as Sales1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\\QVD\SalesOrder.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product:&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="text-decoration: underline;"&gt;ProductID, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProductNumber, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; StandardCost, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ListPrice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\\QVD\Product.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Kriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 15:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369049#M1173092</guid>
      <dc:creator />
      <dc:date>2012-06-26T15:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Joining data field in calculation from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369050#M1173093</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;Yes they are joined using primary key ProductID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;press CTRL+T, which will show the table structure how the tables are linked in the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step - 1.&lt;/P&gt;&lt;P&gt;Add Straight Table -&amp;gt; in dimensions put ProductID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step - 2&lt;/P&gt;&lt;P&gt;Go to expressions -&amp;gt; sum(Orderqty) * sum(standardcost)&lt;/P&gt;&lt;P&gt;name this expression as totalcost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 15:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369050#M1173093</guid>
      <dc:creator />
      <dc:date>2012-06-26T15:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Joining data field in calculation from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369051#M1173094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasath!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your attention and assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- so you mean that I cannot create this new value " totCost" in the code in the script editor ? &lt;/P&gt;&lt;P&gt;Do I have to use a straight table / object... I will want to use this new value "totCost" several times again and would like for it to be in the script &lt;/P&gt;&lt;P&gt;- should I perhaps create a new table (in the script) with the two values in it? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Kriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 16:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369051#M1173094</guid>
      <dc:creator />
      <dc:date>2012-06-26T16:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Joining data field in calculation from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369052#M1173095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can join your tables or you could f.e. use a lookup:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product:&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="text-decoration: underline;"&gt;ProductID, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProductNumber, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; StandardCost, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ListPrice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\\QVD\Product.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesOrder:&lt;/P&gt;&lt;P&gt;LOAD SalesOrderID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;ProductID,&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UnitPrice, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; OrderQty,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderQty * UnitPrice as Sales1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;OrderQty * lookup('StandardCost','ProductID',ProductID,'Product') as TotalCost&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\\QVD\SalesOrder.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 16:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369052#M1173095</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-26T16:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Joining data field in calculation from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369053#M1173096</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;thank you very much for assisting.&lt;/P&gt;&lt;P&gt;The code doesn´t seem to work properly.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- there is no calculation done for the value.. "TotalCost"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can there be some error in syntax..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OrderQty * lookup('StandardCost','ProductID',ProductID,'Product') as TotalCost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table name is "Product" .. and the primary key for both tables is "ProductID"... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Kriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 16:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369053#M1173096</guid>
      <dc:creator />
      <dc:date>2012-06-26T16:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Joining data field in calculation from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369054#M1173097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There can always be an error, I haven't tested the code. Please note that the Product table needs to be loaded already (that's why I changed the order of loads), when using the lookup ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 16:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369054#M1173097</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-26T16:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Joining data field in calculation from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369055#M1173098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems to be working after a couple of reloads... (?) !!&lt;/P&gt;&lt;P&gt;Thank you very much for your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is the correct syntax formula for lookup - lookup('fieldname' , 'pkey_?' , 'pkey ?' , &lt;A href="https://community.qlik.com/tablename"&gt;&lt;/A&gt;)&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Kriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 18:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369055#M1173098</guid>
      <dc:creator />
      <dc:date>2012-06-26T18:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Joining data field in calculation from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369056#M1173099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the Help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor50"&gt;&lt;/A&gt;&lt;A name="lookup("&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;lookup(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;fieldname, matchfieldname, matchfieldvalue [, tablename]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the value of &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; corresponding to the first occurrence of the value &lt;SPAN class="Italic"&gt;matchfieldvalue&lt;/SPAN&gt; in the field &lt;SPAN class="Italic"&gt;matchfieldname&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Fieldname&lt;/SPAN&gt;, &lt;SPAN class="Italic"&gt;matchfieldname&lt;/SPAN&gt; and &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt; must be given as strings (e.g. quoted literals). &lt;/P&gt;&lt;P&gt;The search order is load order unless the table is the result of complex operations such as joins, in which case the order is not well defined. &lt;/P&gt;&lt;P&gt;Both &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; and &lt;SPAN class="Italic"&gt;matchfieldname&lt;/SPAN&gt; must be fields in the same table, specified by &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt;. If &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt; is omitted the current table is assumed. &lt;/P&gt;&lt;P&gt;If no match is found, null is returned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;lookup('Price', 'ProductID', InvoicedProd, 'pricelist')&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;In your setting you need to use 'ProductID' resp. ProductID for matchfieldname and matchfieldvalue, fieldname is 'StandardCost' and your tablename is 'Product'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 08:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369056#M1173099</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-27T08:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Joining data field in calculation from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369057#M1173100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for this syntax reference!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code with lookup() works and I am able to calculate the value.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Would you mind assisting in one more question on Concatenation?&lt;/P&gt;&lt;P&gt;I am having trouble creating a new table where I can see the datafields from a concatenation of two tables..&lt;/P&gt;&lt;P&gt;I try naming it according to text in "help" text but not sure that I am doing it right.&lt;/P&gt;&lt;P&gt;- should the original tables (Sales) (quota) already be loaded into QV, logical table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- then do I use "select" of fields from (Sales) into "new table" with concatenate of fields from (quota) table... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I write this code - to get the new table visible in Script editor.. is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Kristina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 10:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369057#M1173100</guid>
      <dc:creator />
      <dc:date>2012-06-27T10:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Joining data field in calculation from two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369058#M1173101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kristina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV will automatically concatenate a table to another if these two tables having exactely the same amount and named fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Tab1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A, B&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from Table1.xls;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A, B&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from Table2.xls;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resulting in one table Tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also force concatenation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Tab1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A, B&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from Table1.xls;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CONCATENATE (Tab1) LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from Table2.xls;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also resulting in one table Tab1, Field B only set with values for records loaded from Table1.xls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is mostly it. Instead of loading from Excel files, you can of course reference resident tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 11:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-data-field-in-calculation-from-two-tables/m-p/369058#M1173101</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-27T11:24:00Z</dc:date>
    </item>
  </channel>
</rss>

