<?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: how to use a date range in tMap Join in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199475#M2369</link>
    <description>If your input is a databse, try creating 2 contexts&lt;BR /&gt;ie&lt;BR /&gt;context.date_start&lt;BR /&gt;context.date_end&lt;BR /&gt;and then just add this query to the end&lt;BR /&gt;WHERE usage_date &amp;gt;= '" + TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",context.date_start) + "' AND usage_date &amp;lt;= '" + TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",context.date_end) + " ' "&lt;BR /&gt;&lt;BR /&gt;my usage_date = your DATE&lt;BR /&gt;&lt;BR /&gt;this works for me in mysql</description>
    <pubDate>Tue, 15 Feb 2011 06:39:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-02-15T06:39:36Z</dc:date>
    <item>
      <title>how to use a date range in tMap Join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199468#M2362</link>
      <description>Hi 
&lt;BR /&gt;I have a first table with main row DATE, BU, PRODUCT, VALUE, ....
&lt;BR /&gt;In my lookup table I have BU, PRODUCT, DATE_BEGIN, DATE_END, CATEGORY, ....
&lt;BR /&gt;Others Lookup tables
&lt;BR /&gt;In my output flow I want to have 
&lt;BR /&gt; DATE, BU, PRODUCT, CATEGORY, VALUE, others fields from main, from first lookup, from other lookup
&lt;BR /&gt;The CATEGORY depends on a Join on PRODUCT and (DATE &amp;gt;= DATE_BEGIN &amp;amp;&amp;amp; DATE &amp;lt;= DATE_END)
&lt;BR /&gt;How could I define this in the tMap
&lt;BR /&gt;(I need to use tMap because I have more tables, fields and tranformations)</description>
      <pubDate>Sat, 16 Nov 2024 14:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199468#M2362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to use a date range in tMap Join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199469#M2363</link>
      <description>you can use the tintervalmatch</description>
      <pubDate>Tue, 01 Apr 2008 11:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199469#M2363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-01T11:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to use a date range in tMap Join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199470#M2364</link>
      <description>you can have a main link and a lookup table in a tintervalmatch, that's a dynamic component. can you show me a screenshot of your tmap?</description>
      <pubDate>Tue, 01 Apr 2008 11:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199470#M2364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-01T11:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to use a date range in tMap Join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199471#M2365</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;you can have a main link and a lookup table in a tintervalmatch, that's a dynamic component. can you show me a screenshot of your tmap?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;This schema represents an idea of what I'm looking for, but I'm not sure the expression filter is working 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBzI.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131006i1E0B46E7919848BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBzI.jpg" alt="0683p000009MBzI.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 01 Apr 2008 17:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199471#M2365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-01T17:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to use a date range in tMap Join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199472#M2366</link>
      <description>I've tested with this case 
&lt;BR /&gt;Sales file: tst01_vente.csv (see result) 
&lt;BR /&gt;Product file : tst01_produit.csv 
&lt;BR /&gt;produit categorie dte_debut dte_fin 
&lt;BR /&gt;H107 H107A7Q1 01/01/2007 31/03/2007 
&lt;BR /&gt;H107 H107A7Q2 01/04/2007 30/06/2007 
&lt;BR /&gt;H107 H107A7Q3 01/07/2007 30/09/2007 
&lt;BR /&gt;H107 H107A7Q4 01/10/2007 31/12/2007 
&lt;BR /&gt;H107 H107A8Q1 01/01/2008 31/12/2008 
&lt;BR /&gt;H108 H108A7Q1 01/01/2007 31/03/2007 
&lt;BR /&gt;H108 H108A7Q2 01/04/2007 30/06/2007 
&lt;BR /&gt;H108 H108A7Q3 01/07/2007 30/09/2007 
&lt;BR /&gt;H108 H108A7Q4 01/10/2007 31/12/2007 
&lt;BR /&gt;H108 H108A8Q1 01/01/2008 31/12/2008 
&lt;BR /&gt;H109 H109A7Q1 01/01/2007 31/03/2007 
&lt;BR /&gt;H109 H109A7Q2 01/04/2007 30/06/2007 
&lt;BR /&gt;H109 H109A7Q3 01/07/2007 30/09/2007 
&lt;BR /&gt;H109 H109A7Q4 01/10/2007 31/12/2007 
&lt;BR /&gt;H109 H109A8Q1 01/01/2008 31/12/2008 
&lt;BR /&gt; 
&lt;BR /&gt;And with the tmap (see picture) 
&lt;BR /&gt;It's working but I would like to be sure the join works correcly 
&lt;BR /&gt;PS: I know the tIntervalMatch works for my case but I need to do others things with tMap (other lookup, other transformations...) 
&lt;BR /&gt; 
&lt;BR /&gt;This is the result 
&lt;BR /&gt;H107|15/01/2007|H107A7Q1 
&lt;BR /&gt;H107|15/02/2007|H107A7Q1 
&lt;BR /&gt;H107|15/03/2007|H107A7Q1 
&lt;BR /&gt;H107|15/04/2007|H107A7Q2 
&lt;BR /&gt;H107|15/05/2007|H107A7Q2 
&lt;BR /&gt;H107|15/06/2007|H107A7Q2 
&lt;BR /&gt;H107|15/07/2007|H107A7Q3 
&lt;BR /&gt;H107|15/08/2007|H107A7Q3 
&lt;BR /&gt;H107|15/09/2007|H107A7Q3 
&lt;BR /&gt;H107|15/10/2007|H107A7Q4 
&lt;BR /&gt;H107|15/11/2007|H107A7Q4 
&lt;BR /&gt;H107|15/12/2007|H107A7Q4 
&lt;BR /&gt;H107|15/01/2008|H107A8Q1 
&lt;BR /&gt;H107|15/02/2008|H107A8Q1 
&lt;BR /&gt;H108|15/01/2007|H108A7Q1 
&lt;BR /&gt;H108|15/02/2007|H108A7Q1 
&lt;BR /&gt;H108|15/03/2007|H108A7Q1 
&lt;BR /&gt;H108|15/04/2007|H108A7Q2 
&lt;BR /&gt;H108|15/05/2007|H108A7Q2 
&lt;BR /&gt;H108|15/06/2007|H108A7Q2 
&lt;BR /&gt;H108|15/07/2007|H108A7Q3 
&lt;BR /&gt;H108|15/08/2007|H108A7Q3 
&lt;BR /&gt;H108|15/09/2007|H108A7Q3 
&lt;BR /&gt;H108|15/10/2007|H108A7Q4 
&lt;BR /&gt;H108|15/11/2007|H108A7Q4 
&lt;BR /&gt;H108|15/12/2007|H108A7Q4 
&lt;BR /&gt;H109|15/01/2008|H109A8Q1 
&lt;BR /&gt;H109|15/02/2008|H109A8Q1 
&lt;BR /&gt;H109|15/01/2007|H109A7Q1 
&lt;BR /&gt;H109|15/02/2007|H109A7Q1 
&lt;BR /&gt;H109|15/03/2007|H109A7Q1 
&lt;BR /&gt;H109|15/04/2007|H109A7Q2 
&lt;BR /&gt;H109|15/05/2007|H109A7Q2 
&lt;BR /&gt;H109|15/06/2007|H109A7Q2 
&lt;BR /&gt;H109|15/07/2007|H109A7Q3 
&lt;BR /&gt;H109|15/08/2007|H109A7Q3 
&lt;BR /&gt;H109|15/09/2007|H109A7Q3 
&lt;BR /&gt;H109|15/10/2007|H109A7Q4 
&lt;BR /&gt;H109|15/11/2007|H109A7Q4 
&lt;BR /&gt;H109|15/12/2007|H109A7Q4 
&lt;BR /&gt;H109|15/01/2008|H109A8Q1 
&lt;BR /&gt;H109|15/02/2008|H109A8Q1 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBns.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139464i2AB418B5B702D47F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBns.jpg" alt="0683p000009MBns.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 02 Apr 2008 10:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199472#M2366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-02T10:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to use a date range in tMap Join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199473#M2367</link>
      <description>Hi, 
&lt;BR /&gt;I'm working on nothing similar and experiencing the same difficulties. 
&lt;BR /&gt;In input, i've got a file containing (for now) a unique row : 
&lt;BR /&gt;INC | MATRI | DATEDEB | DATEFIN 
&lt;BR /&gt;1 | 68 | 24/03/08 |27/03/08 
&lt;BR /&gt;This input file is connecting to a Tmap (see the attach picture) that is looking in a table (MySQL Table) if it can find the MATRI field. If the MATRI field (here : 68) is found in the table, i've got a filter that verify that the DATEDEB field from the input file is a date after the DATEDEB field in the table and vice versa for the DATEFIN (DATEEND). 
&lt;BR /&gt;For the MATRI value "68", i've got two rows matching this Matri value in the table but only one is matching my filter. In results, i ve got one row accepted and one row rejected. 
&lt;BR /&gt;This is not what i was expecting, I was thinking that the filter was going to work like a where wlause in a sql request. But if the filter was working like the "where" clause in a sql request, we should have only one row returned : the good one. If none of the rows were matching, then i should send the row from my input field in the rejects table. 
&lt;BR /&gt;To sum up, the Tmap is not making a full join : First, the Tmap makes the join on the criteria Matri and then it applies the filter. The filter is not considered like a where clause. 
&lt;BR /&gt;Because of this behavior, i think that, maybe, the return of your join, PAULO, is not totally good. Or, maybe the return is godd but not the rejects if you have a rejects table in your tMap. (Well... maybe i'm wrong) 
&lt;BR /&gt;Is there a way to make a full job (including a where clause) ? 
&lt;BR /&gt;regards, 
&lt;BR /&gt;PS : i hope i've been clear enough... 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC0P.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151901iFABAE6FBBFDD7BF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC0P.png" alt="0683p000009MC0P.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 03 Apr 2008 15:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199473#M2367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-03T15:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to use a date range in tMap Join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199474#M2368</link>
      <description>Do you solution this post? I have similar problem.&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 14 Feb 2011 20:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199474#M2368</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-02-14T20:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to use a date range in tMap Join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199475#M2369</link>
      <description>If your input is a databse, try creating 2 contexts&lt;BR /&gt;ie&lt;BR /&gt;context.date_start&lt;BR /&gt;context.date_end&lt;BR /&gt;and then just add this query to the end&lt;BR /&gt;WHERE usage_date &amp;gt;= '" + TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",context.date_start) + "' AND usage_date &amp;lt;= '" + TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",context.date_end) + " ' "&lt;BR /&gt;&lt;BR /&gt;my usage_date = your DATE&lt;BR /&gt;&lt;BR /&gt;this works for me in mysql</description>
      <pubDate>Tue, 15 Feb 2011 06:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199475#M2369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-15T06:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to use a date range in tMap Join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199476#M2370</link>
      <description>or you can make the full join in the tMap and then using the output filter, filter out the rows that do not fall within your expected interval.</description>
      <pubDate>Tue, 15 Feb 2011 14:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199476#M2370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-15T14:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to use a date range in tMap Join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199477#M2371</link>
      <description>Hi,
&lt;BR /&gt;similar problem I had:
&lt;BR /&gt;match a ZIP code against an interval of zip (e.g. from 1000-1999).
&lt;BR /&gt;Lucky enough those can be used as INTEGER.
&lt;BR /&gt;So what I did is follow your advice with the DB for the reference data (ZIP-ranges).
&lt;BR /&gt;Then in an input-component I put a query like:
&lt;BR /&gt;"SELECT
&lt;BR /&gt;reference,
&lt;BR /&gt;zip_from,
&lt;BR /&gt;zip_to
&lt;BR /&gt;FROM zip_ref
&lt;BR /&gt;WHERE zip_from &amp;lt;= " + context.zip + " AND zip_to &amp;gt;= " + context.zip
&lt;BR /&gt;
&lt;BR /&gt;Thanks for the hint with context variable!</description>
      <pubDate>Thu, 13 Oct 2011 21:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-a-date-range-in-tMap-Join/m-p/2199477#M2371</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-10-13T21:46:22Z</dc:date>
    </item>
  </channel>
</rss>

