<?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: Lookup in another table ?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748278#M267001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you have a start and end date for the exchange rates I would use IntervalMatch as it will return exactly what you require.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Mar 2015 09:40:12 GMT</pubDate>
    <dc:creator>Roop</dc:creator>
    <dc:date>2015-03-19T09:40:12Z</dc:date>
    <item>
      <title>Lookup in another table ??</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748275#M266998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each INVOICENUMBER i wanna join the correct EXCHRATE.&lt;/P&gt;&lt;P&gt;The INVOICEDATE have to be &amp;gt;FROMDATE and &amp;lt;TODATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be done without looping, the 'INVOICETRANS' table is over 10 m rows.&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;/Teis&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;&lt;/P&gt;&lt;P&gt;These are my 2 table:&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;&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;SPAN style="font-size: 8pt;"&gt;DEBINVTRANS:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INVOICENUMBER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INVOICEDATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EXCHANGECODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; [..\..\..\3.QVD\3.1.Source\3.1.1.SQL\DEBINVTRANS.qvd]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INVOICEDATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;makedate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(2013,1 ,1);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; EXCHANGECODERATE:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EXCHANGECODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EXCHRATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FROMDATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TODATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; [..\..\..\3.QVD\3.1.Source\3.1.1.SQL\EXCHANGECODERATE.qvd]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;); &lt;/SPAN&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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 09:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748275#M266998</guid>
      <dc:creator />
      <dc:date>2015-03-19T09:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup in another table ??</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748276#M266999</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;You can use Exist()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 09:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748276#M266999</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-03-19T09:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup in another table ??</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748277#M267000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Join the tables and use exist condition .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 09:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748277#M267000</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2015-03-19T09:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup in another table ??</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748278#M267001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you have a start and end date for the exchange rates I would use IntervalMatch as it will return exactly what you require.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 09:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748278#M267001</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2015-03-19T09:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup in another table ??</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748279#M267002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I have try with the exists statement, but do not have the experience to incorporate the criteria with the INVOICEDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Teis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 09:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748279#M267002</guid>
      <dc:creator />
      <dc:date>2015-03-19T09:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup in another table ??</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748280#M267003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rupert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does that work when I have 2 table and wanna join them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Teis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 09:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748280#M267003</guid>
      <dc:creator />
      <dc:date>2015-03-19T09:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup in another table ??</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748281#M267004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See Help under &lt;/P&gt;&lt;H1&gt;&lt;A name="kanchor770"&gt;&lt;/A&gt;IntervalMatch&lt;/H1&gt;&lt;P&gt;and&lt;/P&gt;&lt;H1&gt;IntervalMatch (Extended Syntax)&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 09:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748281#M267004</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2015-03-19T09:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup in another table ??</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748282#M267005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rupert&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I know the statement, but how I use it in my current example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can run it just fine with a loop, It just take to long a time, I am looking for a faster and easier way the run the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Teis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 10:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748282#M267005</guid>
      <dc:creator />
      <dc:date>2015-03-19T10:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup in another table ??</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748283#M267006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simple INTERVALMATCH will serve you well. Check out the example in the Desktop Help. We can do the thinking for you, but then an example QVW document upload by you would be very helpful to avoid too much guesswork (for example, what's in EXCHANGECODE?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A much easier method to comprehend/maintain is that you expand your Exchange rate table from a CURRENCY-EXCHANGERATE-FROM-TO layout into a CURRENCY-EXCHANGERATE-DATE layout using the LOAD WHILE construct. The table will grow to cover all individual dates in a selected period (for example, earliest transaction date to newest transaction date) but won't take much memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the combination of the two tables becomes a simple LEFT JOIN on DATE and CURRENCY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 11:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748283#M267006</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-19T11:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup in another table ??</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748284#M267007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExchangeRates:&lt;/P&gt;&lt;P&gt;LOAD FROMDATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TODATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCHANGECODE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXCHANGERATE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;testcross.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet3);&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;LOAD INVOICENUMBER,&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; EXCHANGECODE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;testcross.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner Join IntervalMatch(INVOICEDATE, EXCHANGECODE)&lt;/P&gt;&lt;P&gt;LOAD FROMDATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TODATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCHANGECODE&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;ExchangeRates;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;should do it .... (I have used Excel)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 11:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748284#M267007</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2015-03-19T11:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup in another table ??</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748285#M267008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field EXCHANGECODE consist of the different country codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try doing the CURRENCY-EXCHANGERATE-DATE layout u suggest, I think that will work just fin and resource efficiently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will report back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Teis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 11:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748285#M267008</guid>
      <dc:creator />
      <dc:date>2015-03-19T11:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup in another table ??</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748286#M267009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rupert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, the script runs smooth now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a pleasant day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Teis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 12:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-in-another-table/m-p/748286#M267009</guid>
      <dc:creator />
      <dc:date>2015-03-19T12:04:52Z</dc:date>
    </item>
  </channel>
</rss>

