<?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: [resolved] How to filter date ranges in tMap/tFilter using context? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-filter-date-ranges-in-tMap-tFilter-using-context/m-p/2326091#M95617</link>
    <description>Hello Celeste 
&lt;BR /&gt;On the input flow of tMap, add an expression, see my screenshot. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
    <pubDate>Thu, 24 Sep 2009 03:57:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-09-24T03:57:20Z</dc:date>
    <item>
      <title>[resolved] How to filter date ranges in tMap/tFilter using context?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-filter-date-ranges-in-tMap-tFilter-using-context/m-p/2326090#M95616</link>
      <description>I'm using TIS 3.0.4, extracting data from Postgres and moving it to MySQL. 
&lt;BR /&gt;I need to check the last change date in the input table and extract only records with a last_change_dtm within the number of days specified in a context. The context is defined as a integer, and set to 14. 
&lt;BR /&gt;I can do this in a query using "WHERE "table"."last_change_dtm" &amp;gt;= current_date - "+context.Days_History+". 
&lt;BR /&gt; 
&lt;BR /&gt;How would I accomplish this in a tMap or tFilter? I don't know Java. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Celeste</description>
      <pubDate>Sat, 16 Nov 2024 13:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-filter-date-ranges-in-tMap-tFilter-using-context/m-p/2326090#M95616</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to filter date ranges in tMap/tFilter using context?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-filter-date-ranges-in-tMap-tFilter-using-context/m-p/2326091#M95617</link>
      <description>Hello Celeste 
&lt;BR /&gt;On the input flow of tMap, add an expression, see my screenshot. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 24 Sep 2009 03:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-filter-date-ranges-in-tMap-tFilter-using-context/m-p/2326091#M95617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-24T03:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to filter date ranges in tMap/tFilter using context?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-filter-date-ranges-in-tMap-tFilter-using-context/m-p/2326092#M95618</link>
      <description>Hi Shong,
&lt;BR /&gt;The context.Days_History is an integer. What I want to do is extract all records from the source database where the last_change_dtm (date field) is greater than today - XX days (current_date - context.Days_History). 
&lt;BR /&gt;
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Celeste</description>
      <pubDate>Thu, 24 Sep 2009 15:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-filter-date-ranges-in-tMap-tFilter-using-context/m-p/2326092#M95618</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-09-24T15:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to filter date ranges in tMap/tFilter using context?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-filter-date-ranges-in-tMap-tFilter-using-context/m-p/2326093#M95619</link>
      <description>Hello &lt;BR /&gt;Ok, I show you a job, i filter rows on tFilterRow component.&lt;BR /&gt;in.csv:&lt;BR /&gt;1;2009-07-12&lt;BR /&gt;2;2009-09-25&lt;BR /&gt;3;2009-08-29&lt;BR /&gt;4;2009-09-24&lt;BR /&gt;filter condition on tFilterRow:&lt;BR /&gt;&lt;PRE&gt;input_row.date.getTime()&amp;gt;TalendDate.addDate(TalendDate.getCurrentDate(),-context.Days_History,"dd").getTime()&lt;/PRE&gt;&lt;BR /&gt;TalendDate.getCurrentDate() ==&amp;gt;get the current date.&lt;BR /&gt;TalendDate.addDate()==&amp;gt;rollback a date or add a date,  -5 means rollback 5 days.&lt;BR /&gt;result:&lt;BR /&gt;&lt;PRE&gt;Starting job forum8290 at 14:53 25/09/2009.&lt;BR /&gt;.--+----------.&lt;BR /&gt;|  tLogRow_1  |&lt;BR /&gt;|=-+---------=|&lt;BR /&gt;|id|date      |&lt;BR /&gt;|=-+---------=|&lt;BR /&gt;|2 |2009-09-25|&lt;BR /&gt;|4 |2009-09-24|&lt;BR /&gt;'--+----------'&lt;BR /&gt;Job forum8290 ended at 14:53 25/09/2009. &lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Sep 2009 07:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-filter-date-ranges-in-tMap-tFilter-using-context/m-p/2326093#M95619</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-25T07:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to filter date ranges in tMap/tFilter using context?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-filter-date-ranges-in-tMap-tFilter-using-context/m-p/2326094#M95620</link>
      <description>Thanks, Shong! 
&lt;BR /&gt;This looks like exactly what I need. I find I don't have this function in version 3.0.4 - waiting for Support ticket open 9/17 to get download for latest TIS version. Then I should be all set. 
&lt;BR /&gt;Celeste</description>
      <pubDate>Fri, 25 Sep 2009 18:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-filter-date-ranges-in-tMap-tFilter-using-context/m-p/2326094#M95620</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-09-25T18:24:06Z</dc:date>
    </item>
  </channel>
</rss>

