<?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: Formula based on 2 &amp;quot;tables&amp;quot; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768486#M272913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want duplicate recodes due to multiple values in Table 2, you have to aggregate the table 2 by ID with Max, Min, etc..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Dec 2014 15:09:49 GMT</pubDate>
    <dc:creator>yduval75</dc:creator>
    <dc:date>2014-12-03T15:09:49Z</dc:date>
    <item>
      <title>Formula based on 2 "tables"</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768481#M272908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know how this works in SQL, but not sure how to translate this for QV code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a formula that is based on fields in two separate tables or load statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a formula that is something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (ClaimDate &amp;gt;= StartDate and ClaimDate &amp;lt;= EndDate, 1, 0) as DeleteFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,StartDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,EndDate&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;Source1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,ClaimDate&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joining the tables is not really an option because in Table2 the ID is listed multiple times (claim lines).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts for linking the two tables together in order to create this flag?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 14:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768481#M272908</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2014-12-03T14:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Formula based on 2 "tables"</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768482#M272909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try Taking Distinct assuming ID column is linking field or Key in both the tables and use left or right or inner join&amp;nbsp; and then link the tables and then apply the If condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table1:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,StartDate&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,EndDate&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Source1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;left join&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load Distinct&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,ClaimDate&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source2&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table_final:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If (ClaimDate &amp;gt;= StartDate and ClaimDate &amp;lt;= EndDate, 1, 0) as DeleteFlag&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;resident &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;drop table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Table1&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;you need to convert the date as well if required &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Harsha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 14:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768482#M272909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-03T14:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Formula based on 2 "tables"</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768483#M272910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first table sounds like a Policy table and the 2nd a Claim table where you might have 0 to multiple claim IDs for a Policy ID. Is that true ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case you would make sure the Claim table has both the policy ID and Claim ID and that the field ID is consistent between table 1 and 2 so as to join/associate on PolicyID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see an issue with this method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Intervalmatch() is another way to do it in the data model&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 14:57:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768483#M272910</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-12-03T14:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Formula based on 2 "tables"</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768484#M272911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello Chase,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table1:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,StartDate&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,EndDate&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Source1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Left join Table 1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , Max (ClaimDate) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ClaimDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source2&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group By ID;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Tablenew:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp; If (ClaimDate &amp;gt;= StartDate and ClaimDate &amp;lt;= EndDate, 1, 0) as DeleteFlag&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Resident Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Drop Table Table1;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 14:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768484#M272911</guid>
      <dc:creator>yduval75</dc:creator>
      <dc:date>2014-12-03T14:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Formula based on 2 "tables"</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768485#M272912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is I dont want to join my tables into one because it causes duplicate records due to the nature of the data in Table 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data in table 1, would have 1 line per ID containing a set of dates. The data in table 2 could have multiple lines of the same ID and different dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1:&lt;/P&gt;&lt;P&gt;Id = 1&lt;/P&gt;&lt;P&gt;StartDate = 12/1/14&lt;/P&gt;&lt;P&gt;EndDate = 12/2/14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;ID = 1&lt;/P&gt;&lt;P&gt;ClaimDate = 11/30/14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID = 1&lt;/P&gt;&lt;P&gt;ClaimDate = 12/1/14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID = 1&lt;/P&gt;&lt;P&gt;ClaimDate = 12/2/14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID = 2&lt;/P&gt;&lt;P&gt;ClaimDate = 11/25/14&lt;BR /&gt;etc..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 15:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768485#M272912</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2014-12-03T15:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Formula based on 2 "tables"</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768486#M272913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want duplicate recodes due to multiple values in Table 2, you have to aggregate the table 2 by ID with Max, Min, etc..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 15:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768486#M272913</guid>
      <dc:creator>yduval75</dc:creator>
      <dc:date>2014-12-03T15:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Formula based on 2 "tables"</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768487#M272914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is I cant aggregate the data just yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2 has dates and amounts and I need to identify which lines I need to keep and which I can delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to flag those that I can delete by my DeleteFlag statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 15:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768487#M272914</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2014-12-03T15:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Formula based on 2 "tables"</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768488#M272915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can use a lookup ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor51"&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 class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code" style="margin-left: 40px;"&gt;lookup('Price', 'ProductID', InvoicedProd, 'pricelist')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 15:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768488#M272915</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-12-03T15:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Formula based on 2 "tables"</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768489#M272916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lookup should handle what I am trying to do best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chase&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 18:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-based-on-2-quot-tables-quot/m-p/768489#M272916</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2014-12-03T18:26:21Z</dc:date>
    </item>
  </channel>
</rss>

