<?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] Filtering Date Ranges using Expression Builder in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286406#M60028</link>
    <description>You enlighted us once again 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; Tnx Alevy 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Tue, 27 Jul 2010 05:59:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-07-27T05:59:40Z</dc:date>
    <item>
      <title>[resolved] Filtering Date Ranges using Expression Builder in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286400#M60022</link>
      <description>Hi All, 
&lt;BR /&gt;I have formulated a filtering date range (inclusive of given dates, date from and date to) inside expression builder in tMap and fortunately, it works! 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;But, is there any other way to do such date range filtering in TOS? What I have formulated looks like an old school for me 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;( TalendDate.parseDate("yyyy-MM-dd",TalendDate.formatDate("yyyy-MM-dd",row2.DateUpdated)).after(TalendDate.parseDate("yyyy-MM-dd",context.DateFrom)) || &lt;BR /&gt;TalendDate.parseDate("yyyy-MM-dd",TalendDate.formatDate("yyyy-MM-dd",row2.DateUpdated)).equals(TalendDate.parseDate("yyyy-MM-dd",context.DateFrom)) ) &amp;amp;&amp;amp;&lt;BR /&gt;( TalendDate.parseDate("yyyy-MM-dd",TalendDate.formatDate("yyyy-MM-dd",row2.DateUpdated)).before(TalendDate.parseDate("yyyy-MM-dd",context.DateTo)) || &lt;BR /&gt;TalendDate.parseDate("yyyy-MM-dd",TalendDate.formatDate("yyyy-MM-dd",row2.DateUpdated)).equals(TalendDate.parseDate("yyyy-MM-dd",context.DateTo)))&lt;/PRE&gt; 
&lt;BR /&gt;Regards,</description>
      <pubDate>Sat, 16 Nov 2024 13:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286400#M60022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Filtering Date Ranges using Expression Builder in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286401#M60023</link>
      <description>ooohhh I just saw this post a while ago 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjIZCA0" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/a-simple-test-on-Talendate-need-some-java-help/td-p/67599&lt;/A&gt; 
&lt;BR /&gt;Tnx again to Alevy 
&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;</description>
      <pubDate>Mon, 26 Jul 2010 09:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286401#M60023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-26T09:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Filtering Date Ranges using Expression Builder in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286402#M60024</link>
      <description>My pleasure 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;You might have already cleaned up your expression but why convert your row2.DateUpdated from a date to a string (formatDate) and then back to a date (parseDate)? Also, can you not define your context.DateFrom and context.DateTo as dates rather than strings so they do not need to be parsed to dates in your expression? That would leave you with: 
&lt;BR /&gt; 
&lt;PRE&gt;!row2.DateUpdated.before(context.DateFrom) &amp;amp;&amp;amp; !row2.DateUpdated.after(context.DateTo)&lt;/PRE&gt; 
&lt;BR /&gt;So much nicer 
&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;</description>
      <pubDate>Tue, 27 Jul 2010 02:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286402#M60024</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-07-27T02:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Filtering Date Ranges using Expression Builder in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286403#M60025</link>
      <description>Hi Alevy, 
&lt;BR /&gt;Thanks for the suggestion, but I need to format the row2.DateUpdated in order to remove the time since it returns datetime data type. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;For defining my context variables, the value of these will come from outside( property file) so this will be extracted as strings. 
&lt;BR /&gt;Regards,</description>
      <pubDate>Tue, 27 Jul 2010 04:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286403#M60025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-27T04:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Filtering Date Ranges using Expression Builder in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286404#M60026</link>
      <description>Hi again Alevy, 
&lt;BR /&gt;Could you please explain why !before and !after are equal with &amp;lt;= and &amp;gt;= ? As I understand, ! = not or negation right? Still wondering 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 27 Jul 2010 04:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286404#M60026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-27T04:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Filtering Date Ranges using Expression Builder in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286405#M60027</link>
      <description>If a date is !before (i.e. not before), then it must be on or after (&amp;gt;= ). Similarly, if the date is !after then it is &amp;lt;=. 
&lt;BR /&gt;So if your row2.DateUpdated includes actual time values (not just always 00:00:00) then you still don't need to truncate it for the context.DateFrom comparison because it does not matter what time the update was on the test date - it will still be on or after 12am on the test date. You will, however, need to remove the time value for the context.DateTo comparison or updates on that date will be excluded. Alternatively, you could add a day to the context.DateTo when it's read in and then compare row2.DateUpdated.before(adjusted context.DateTo). 
&lt;BR /&gt;You can load date contexts from a file as long as (for now) they are in the format "yyyy-MM-dd HH:mm:ss" (see 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqS5CAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Archive/select-the-first-fille-in-a-folder/td-p/174462&lt;/A&gt;). Even if you have to read the dates as strings, I would suggest that you use a tJava to convert the strings to dates so that they do not need to be parsed repeatedly in tMap.</description>
      <pubDate>Tue, 27 Jul 2010 05:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286405#M60027</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-07-27T05:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Filtering Date Ranges using Expression Builder in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286406#M60028</link>
      <description>You enlighted us once again 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; Tnx Alevy 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 27 Jul 2010 05:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286406#M60028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-27T05:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Filtering Date Ranges using Expression Builder in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286407#M60029</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;You can load date contexts from a file as long as (for now) they are in the format "yyyy-MM-dd HH:mm:ss" (see bug).&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Just to clarify: the above was incorrect as I misunderstood how loading date context values is supposed to work.  In fact, the pattern to apply by tContextLoad in parsing the date string is defined with the context variable's default value.  The string passed to tContextLoad should be just the date in the defined format (not including the pattern itself).</description>
      <pubDate>Wed, 28 Jul 2010 01:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Filtering-Date-Ranges-using-Expression-Builder-in-tMap/m-p/2286407#M60029</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-07-28T01:11:44Z</dc:date>
    </item>
  </channel>
</rss>

