<?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 Get the Day and week based on the date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-the-Day-and-week-based-on-the-date/m-p/2262236#M42764</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have an excel sheet with 2 weeks data in it. There is a date column (dd/MM/yyyy format) in it and I need to filter the values based on the date. The week I would need is Sunday - Saturday. E.g., I have the data as below:&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;&amp;lt;DATEIN&amp;gt;&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;03-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;04-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;05-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;06-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;07-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;08-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;09-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;11-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;12-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;13-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;14-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;15-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;16-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;Now if we look up the calendar, we can see that 03/02/2019 is a Sunday and I need the entire weeks data i.e., 03/02/2019 - 09/02/2019.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And then I need a different filter that will pick the second week's data which starts again on Sunday which should be 10/02/2019.&amp;nbsp;But my excel does not have data for 10/02/2019, so it should pick data from 11/02/2019&amp;nbsp; - 16/02/2019. I am attaching the file for reference. I will be getting multiple files with different dates and the filter should work as the above logic.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 375px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4cr.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152706i126E2072D91CCF4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4cr.jpg" alt="0683p000009M4cr.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I have tried multiple things but have had no luck. Will appreciate any help received to resolve this issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;SK&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2019 13:22:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-16T13:22:09Z</dc:date>
    <item>
      <title>Get the Day and week based on the date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-Day-and-week-based-on-the-date/m-p/2262236#M42764</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have an excel sheet with 2 weeks data in it. There is a date column (dd/MM/yyyy format) in it and I need to filter the values based on the date. The week I would need is Sunday - Saturday. E.g., I have the data as below:&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;&amp;lt;DATEIN&amp;gt;&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;03-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;04-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;05-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;06-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;07-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;08-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;09-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;11-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;12-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;13-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;14-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;15-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;16-02-2019&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;Now if we look up the calendar, we can see that 03/02/2019 is a Sunday and I need the entire weeks data i.e., 03/02/2019 - 09/02/2019.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And then I need a different filter that will pick the second week's data which starts again on Sunday which should be 10/02/2019.&amp;nbsp;But my excel does not have data for 10/02/2019, so it should pick data from 11/02/2019&amp;nbsp; - 16/02/2019. I am attaching the file for reference. I will be getting multiple files with different dates and the filter should work as the above logic.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 375px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4cr.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152706i126E2072D91CCF4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4cr.jpg" alt="0683p000009M4cr.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I have tried multiple things but have had no luck. Will appreciate any help received to resolve this issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;SK&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 13:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-Day-and-week-based-on-the-date/m-p/2262236#M42764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-16T13:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get the Day and week based on the date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-Day-and-week-based-on-the-date/m-p/2262237#M42765</link>
      <description>It is little confusing.&lt;BR /&gt;&lt;BR /&gt;Do you want to split file for each week?</description>
      <pubDate>Tue, 16 Apr 2019 15:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-Day-and-week-based-on-the-date/m-p/2262237#M42765</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-04-16T15:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get the Day and week based on the date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-Day-and-week-based-on-the-date/m-p/2262238#M42766</link>
      <description>&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I want to split the data into 2 weeks but the week we would considering would be Sunday - Saturday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have posted example data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 15:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-Day-and-week-based-on-the-date/m-p/2262238#M42766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-16T15:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get the Day and week based on the date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-Day-and-week-based-on-the-date/m-p/2262239#M42767</link>
      <description>&lt;P&gt;you do not need lookup for this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TalendDate.getPartOfDate("WEEK_OF_YEAR", TalendDate.parseDate("ddMMyyyy",DATEIN))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;will give you weeknumber.Now you just would need to split your based on this value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://talendhowto.com/2017/10/27/how-to-split-file-depending-on-column-values-2/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://talendhowto.com/2017/10/27/how-to-split-file-depending-on-column-values-2/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 15:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-Day-and-week-based-on-the-date/m-p/2262239#M42767</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-04-16T15:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get the Day and week based on the date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-Day-and-week-based-on-the-date/m-p/2262240#M42768</link>
      <description>&lt;P&gt;Should I add this in tmap ? How do I filter the values ?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 16:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-Day-and-week-based-on-the-date/m-p/2262240#M42768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-16T16:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get the Day and week based on the date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-Day-and-week-based-on-the-date/m-p/2262241#M42769</link>
      <description>&lt;P&gt;Yes 1st create additional column weknumber in tMap with Above expression and then follow the link from tFlowToIterator.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 16:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-Day-and-week-based-on-the-date/m-p/2262241#M42769</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-04-16T16:25:12Z</dc:date>
    </item>
  </channel>
</rss>

