<?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: Lookups with multiple column matches and range in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236992#M25562</link>
    <description>Thanks for your response! This works perfectly with the example set I gave you. Unfortunately I am having another issue that I did not forsee until I tried this method. 
&lt;BR /&gt;When I get to the point of filtering it out there are some cases where "Purchase Order Date" exists, however there are no values for Start and End date within the dataset. That is when I believe it returns the "Null point Exception" error. I am searching for a solution and should probably make another post dedicated to that, but if you can suggest a way in which I could set a default value for both Start and End Date after they have been mapped I would greatly appreciate it. 
&lt;BR /&gt;Thank you again for your help</description>
    <pubDate>Mon, 30 Mar 2015 14:22:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-30T14:22:21Z</dc:date>
    <item>
      <title>Lookups with multiple column matches and range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236988#M25558</link>
      <description>Hello, 
&lt;BR /&gt;I am new to Talend and while using this forum has been extremely helpful in trying to resolve issues I have, there are still some issues I hope I will be able to get some help with. 
&lt;BR /&gt;I am using Talend to process a table with a Countries purchases of goods at a certain time and map it to another table that outputs income level of country based on the time ordered. Basically my tables look like this, but at a larger scale (33000 for input and 6000 for the mapping table): 
&lt;BR /&gt; 
&lt;B&gt;Input&lt;/B&gt; 
&lt;BR /&gt;Country &amp;nbsp; &amp;nbsp;Purchase order date&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;A &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;01/08/2010 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;B &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;30/04/2013 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;C &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;13/07/2013 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;D &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;15/07/2014 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;A &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;24/10/2011 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;B&gt;Lookup table&lt;/B&gt; 
&lt;BR /&gt;Country &amp;nbsp; &amp;nbsp; Start Date &amp;nbsp; &amp;nbsp; &amp;nbsp;End Date &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Income Level 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/07/2010 &amp;nbsp; &amp;nbsp;30/06/2011 &amp;nbsp; &amp;nbsp; &amp;nbsp; high 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/07/2011 &amp;nbsp; &amp;nbsp;30/06/2012 &amp;nbsp; &amp;nbsp; &amp;nbsp; upper middle 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/07/2011 &amp;nbsp; &amp;nbsp;30/06/2012 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/07/2012 &amp;nbsp; &amp;nbsp;30/06/2013 &amp;nbsp; &amp;nbsp; &amp;nbsp; low 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;C &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/07/2013 &amp;nbsp; &amp;nbsp;01/07/2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; lower middle 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;D &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/07/2013 &amp;nbsp; &amp;nbsp;01/07/2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; middle 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;D &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/07/2014 &amp;nbsp; &amp;nbsp;01/07/2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; upper middle 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;B&gt;Output&lt;/B&gt; 
&lt;BR /&gt;Country &amp;nbsp;Purchase order date &amp;nbsp; &amp;nbsp;Income Level 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;A &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/08/2010 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;high 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;B &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 30/04/2013 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;low 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;C &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 13/07/2013 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lower middle 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;D &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15/07/2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;upper middle 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;A &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 24/10/2011 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;upper middle 
&lt;BR /&gt; 
&lt;BR /&gt;I have tried using the tMap component and filtering by matching "Country" as the lookup and using the expression&amp;nbsp; 
&lt;BR /&gt;row.Purchase_Order_Date.after(row2.StartDate) 
&lt;BR /&gt;&amp;amp;&amp;amp; row.Purchase_Order_Date.before(row2.EndDate) 
&lt;BR /&gt;When I do so I get the following error: 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;Exception in component tMap_2&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;java.lang.NullPointerException&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;at java.util.Date.getMillisOf(Unknown Source)&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;at java.util.Date.after(Unknown Source)&lt;/FONT&gt; 
&lt;BR /&gt;I have looked up this error and read many forum posts as to what this error means. I tried the tIntervalMatch component but either I did it wrong or it is not possible to find an interval with a dependent match on a 3rd column. I found one solution where&amp;nbsp;it was suggested that I filter along the lines of 
&lt;BR /&gt;row2.StartDate != null &amp;amp;&amp;amp; row.Purchase_Order_Date.after(row2.StartDate) 
&lt;BR /&gt;&amp;amp;&amp;amp; row2.EndDate != null &amp;amp;&amp;amp; row.Purchase_Order_Date.before(row2.EndDate) 
&lt;BR /&gt;&amp;nbsp; 
&lt;BR /&gt;This allows the program to run but does not give a correct output and either gives a incorrect values for income or reports "null" when there is definitely a value corresponding to it. Also there are no "null" values for any of the dates, however in some cases there is no value for income level because information was not available for that year. 
&lt;BR /&gt;I feel like the problem lies within having to match the "Country" columns and then looking up up "Purchase Order Date" between the columns "Start Date" and "End Date". I once had this problem with an Excel project that I was working on in which I devised a solution to match the start and end points of the range within the larger range and used "VLOOKUP" using the "INDEX" function to define the range to lookup in. Essentially creating a lookup within a lookup. But I am unsure how to do this in Talend, partly due to my skills in Java, but I am hoping someone can offer me some guidance in this matter. Whether using this potential solution or another. 
&lt;BR /&gt;Thank you very much!</description>
      <pubDate>Mon, 30 Mar 2015 09:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236988#M25558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-30T09:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lookups with multiple column matches and range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236989#M25559</link>
      <description>hi, 
&lt;BR /&gt;I guess that your null pointer exception is due to some whiteSpace in your data and try to join something like "&amp;nbsp; D&amp;nbsp; " with "D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " ! 
&lt;BR /&gt;Trim your field before the join. 
&lt;BR /&gt;I've done the job in 2 step. 
&lt;BR /&gt;first : tmap to a left outer join (all matches) to get all possibility 
&lt;BR /&gt;second : a filter to keep only lines where purchase order is between the start date &amp;amp; end date; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDEl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130365i0B871BD86300399F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDEl.png" alt="0683p000009MDEl.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;result 
&lt;BR /&gt;Starting job betweenDate at 11:23 30/03/2015. 
&lt;BR /&gt; connecting to socket on port 3424 
&lt;BR /&gt; connected 
&lt;BR /&gt;.--------------------------------. 
&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #1. tLogRow_1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;+-------------------+------------+ 
&lt;BR /&gt;| key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;+-------------------+------------+ 
&lt;BR /&gt;| Country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;| Purchaseorderdate | 01/08/2010 | 
&lt;BR /&gt;| StartDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 01/07/2010 | 
&lt;BR /&gt;| EndDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 30/06/2011 | 
&lt;BR /&gt;| IncomeLevel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; high&amp;nbsp; | 
&lt;BR /&gt;+-------------------+------------+ 
&lt;BR /&gt;.--------------------------------. 
&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #2. tLogRow_1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;+-------------------+------------+ 
&lt;BR /&gt;| key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;+-------------------+------------+ 
&lt;BR /&gt;| Country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;| Purchaseorderdate | 30/04/2013 | 
&lt;BR /&gt;| StartDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 01/07/2012 | 
&lt;BR /&gt;| EndDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 30/06/2013 | 
&lt;BR /&gt;| IncomeLevel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; low&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;+-------------------+------------+ 
&lt;BR /&gt;.-------------------------------------. 
&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #3. tLogRow_1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;+-------------------+-----------------+ 
&lt;BR /&gt;| key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;+-------------------+-----------------+ 
&lt;BR /&gt;| Country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;| Purchaseorderdate | 13/07/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;| StartDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 01/07/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;| EndDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 01/07/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;| IncomeLevel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; lower middle | 
&lt;BR /&gt;+-------------------+-----------------+ 
&lt;BR /&gt;.-------------------------------------. 
&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #4. tLogRow_1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;+-------------------+-----------------+ 
&lt;BR /&gt;| key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;+-------------------+-----------------+ 
&lt;BR /&gt;| Country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;| Purchaseorderdate | 15/07/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;| StartDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 01/07/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;| EndDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 01/07/2015&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;| IncomeLevel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; upper middle | 
&lt;BR /&gt;+-------------------+-----------------+ 
&lt;BR /&gt;.------------------------------------. 
&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #5. tLogRow_1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;+-------------------+----------------+ 
&lt;BR /&gt;| key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;+-------------------+----------------+ 
&lt;BR /&gt;| Country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;| Purchaseorderdate | 24/10/2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;| StartDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 01/07/2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;| EndDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 30/06/2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;| IncomeLevel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; upper middle | 
&lt;BR /&gt;+-------------------+----------------+ 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;Job betweenDate ended at 11:23 30/03/2015. 
&lt;BR /&gt;hope it helps 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent</description>
      <pubDate>Mon, 30 Mar 2015 10:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236989#M25559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-30T10:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Lookups with multiple column matches and range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236990#M25560</link>
      <description>Hi,
&lt;BR /&gt;Thank you for getting back to me so quickly. By habit I always state to trim all columns and I have checked them too. There seems to be no discrepancy so I do not think that is the problem. I am a little unsure of what you mean though, would you be kind enough to explain your first step? I am just unsure about the workflow and where I should place the filter. Are you suggesting that I use tMap function to map using no filter conditions whatsoever and then apply a tRowFilter to the output before tLogRow as such: (EDIT: I apologize, but it seems I am unable to upload a screenshot. Below is a workplan similiar to what I have in my Job)
&lt;BR /&gt;InputFile ----------&amp;gt;tMap---------------&amp;gt;tFilterRow-------------&amp;gt;tLogRow
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Lookup_table
&lt;BR /&gt;If this is the case then how is the filtering working? I think I am just unsure as to where to use filter.
&lt;BR /&gt;Thanks again for your help!
&lt;BR /&gt;Usamah</description>
      <pubDate>Mon, 30 Mar 2015 10:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236990#M25560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-30T10:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lookups with multiple column matches and range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236991#M25561</link>
      <description>here's some more screenshoot 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDEq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147871iCBE79A91758B34D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDEq.png" alt="0683p000009MDEq.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD9S.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148298iB4CBCEC7606939A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD9S.png" alt="0683p000009MD9S.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;and to have same output, can use a filter column after that : 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD8r.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148299iF9AAB304D7ED4166/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD8r.png" alt="0683p000009MD8r.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 30 Mar 2015 11:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236991#M25561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-30T11:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lookups with multiple column matches and range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236992#M25562</link>
      <description>Thanks for your response! This works perfectly with the example set I gave you. Unfortunately I am having another issue that I did not forsee until I tried this method. 
&lt;BR /&gt;When I get to the point of filtering it out there are some cases where "Purchase Order Date" exists, however there are no values for Start and End date within the dataset. That is when I believe it returns the "Null point Exception" error. I am searching for a solution and should probably make another post dedicated to that, but if you can suggest a way in which I could set a default value for both Start and End Date after they have been mapped I would greatly appreciate it. 
&lt;BR /&gt;Thank you again for your help</description>
      <pubDate>Mon, 30 Mar 2015 14:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236992#M25562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-30T14:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lookups with multiple column matches and range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236993#M25563</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Purchase Order Date" exists, however there are no values for Start and End date within the dataset&lt;BR /&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;well, ask to business what you have to do with it ! 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;escape from the flow ? default value ? retrieve those cases in a "reject flow" do threat them later ?</description>
      <pubDate>Mon, 30 Mar 2015 14:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236993#M25563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-30T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lookups with multiple column matches and range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236994#M25564</link>
      <description>You can use variables in your tMap to set default dates. Create a variable for StartDate and one for EndDate. In the variables set the expression to something like below.....
&lt;BR /&gt;row1.Start_Date!=null ? row1.Start_Date&amp;nbsp;: routines.TalendDate.parseDate("yyyy-MM-dd", "1970-01-01")
&lt;BR /&gt;This will use the date it receives if it is not null, but will replace it with a default of 01/01/1970 if it is not present.&amp;nbsp;</description>
      <pubDate>Mon, 30 Mar 2015 14:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236994#M25564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-30T14:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Lookups with multiple column matches and range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236995#M25565</link>
      <description>Thank you all for being so helpful! This worked out great. I hope to be able to return the favor to others on the forum someday.</description>
      <pubDate>Mon, 30 Mar 2015 16:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookups-with-multiple-column-matches-and-range/m-p/2236995#M25565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-30T16:47:24Z</dc:date>
    </item>
  </channel>
</rss>

