<?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: create a calendar table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/create-a-calendar-table/m-p/2206886#M6771</link>
    <description>&lt;PRE&gt;&lt;SPAN&gt;Hello, I'm a beginner on Talend.
I have a little the same problem, but I did not manage to adapt your answers to my situation.

I was wondering if it was possible to create a new variable that displays all the dates for the current month.
Let me explain. I would like, starting from nothing, to create a new variable on talend which takes into account the day that it is at the time of its execution.
And that displays every day of the month. (Which takes into account the months of 30 or 31 days as well as the month of February).
I succeeded using the tjava tool to create an ArrayList which contains the values ​​I want to obtain. But however, I don't see how I can use it afterwards. Because I would like to have a variable that I can then use in a tmap or each line corresponds to a different day.

I do not know if I am very clear. Do not hesitate to ask questions if this is not the case.
Thank you for your answers.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Sorry for my English&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 May 2020 09:29:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-19T09:29:30Z</dc:date>
    <item>
      <title>create a calendar table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/create-a-calendar-table/m-p/2206882#M6767</link>
      <description>Hello, 
&lt;BR /&gt;I will try to explain myself, I'm a newbie with TOS DI and I'm trying to create a table wich will provide me a calendar for future maintenance events. 
&lt;BR /&gt;I have a table which contain future maintenance activities (maint) with the next execution date (nextdate) and a frequency (freq) and unit frequency (frequnit)
&lt;BR /&gt;for example
&lt;BR /&gt;MAINT&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; NEXTDATE&amp;nbsp; | FRQ | FREQUNIT |
&lt;BR /&gt;MAINT1&amp;nbsp; |&amp;nbsp; 01/06/2015 |&amp;nbsp; 1 &amp;nbsp;&amp;nbsp; | MONTH&amp;nbsp;&amp;nbsp;&amp;nbsp; | 
&lt;BR /&gt;The result should be a list of all maintenance date for n months (for example 12M) 
&lt;BR /&gt;ID&amp;nbsp; | MAINT&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; CALCNEXTDATE&amp;nbsp; 
&lt;BR /&gt;1&amp;nbsp;&amp;nbsp; | MAINT1&amp;nbsp; |&amp;nbsp; 01/06/2015 
&lt;BR /&gt;2&amp;nbsp;&amp;nbsp; | MAINT1&amp;nbsp; |&amp;nbsp; 01/07/2015 
&lt;BR /&gt;3&amp;nbsp;&amp;nbsp; | MAINT1&amp;nbsp; |&amp;nbsp; 01/08/2015 
&lt;BR /&gt;4&amp;nbsp;&amp;nbsp; | MAINT1&amp;nbsp; |&amp;nbsp; 01/09/2015 
&lt;BR /&gt;5&amp;nbsp;&amp;nbsp; | MAINT1&amp;nbsp; |&amp;nbsp; 01/10/2015 
&lt;BR /&gt;6&amp;nbsp;&amp;nbsp; | MAINT1&amp;nbsp; |&amp;nbsp; 01/11/2015 
&lt;BR /&gt;etc...
&lt;BR /&gt;What should I use for having this output.
&lt;BR /&gt;In advance thanks,</description>
      <pubDate>Thu, 15 Jan 2015 07:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/create-a-calendar-table/m-p/2206882#M6767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-15T07:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: create a calendar table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/create-a-calendar-table/m-p/2206883#M6768</link>
      <description>Hi lhamlein, 
&lt;BR /&gt;Interesting scenario. 
&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;This is what I've come up with: 
&lt;BR /&gt;1. We'll need to have 2 flows, one from the source file reading the above mentioned record; &amp;amp; the second from a tFixedFlowInput component where we'll create the no of iterations we need (n, as per your above post) 
&lt;BR /&gt;2. These 2 flows would merge in a tMap, as shown below: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCO7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144587i0820B7A8C68DA0AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCO7.png" alt="0683p000009MCO7.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;where 'nxt_date' column gets its value as: 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;TalendDate.addDate(row2.nxt_date,"dd/MM/yyyy",row4.repeatations,"MM")&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCUd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148643iBF80C61EF0EC1192/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCUd.png" alt="0683p000009MCUd.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;output: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCUi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134218i711C96780AC2F387/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCUi.png" alt="0683p000009MCUi.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Hope this helps. 
&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;MathurM</description>
      <pubDate>Thu, 15 Jan 2015 08:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/create-a-calendar-table/m-p/2206883#M6768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-15T08:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: create a calendar table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/create-a-calendar-table/m-p/2206884#M6769</link>
      <description>It works but I have used TalendDate.addDate(row3.NEXTDATE,row4.repeatations*row3.FREQUENCY ,"MM")&amp;nbsp;&amp;nbsp; .&lt;BR /&gt;as my fields are dates &lt;BR /&gt;thanks,</description>
      <pubDate>Fri, 16 Jan 2015 10:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/create-a-calendar-table/m-p/2206884#M6769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-16T10:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: create a calendar table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/create-a-calendar-table/m-p/2206885#M6770</link>
      <description>hello, 
&lt;BR /&gt;my problem now is that I have 3 types of frequency unit weeks, month, year.
&lt;BR /&gt;So if repeating 52 times for the weeks is ok and give me all occurence between now and now+52weeks.
&lt;BR /&gt;For a frequency "year" it repeats it for the next 52 years, which create to many occurence for what I need. 
&lt;BR /&gt;Is there a way to have 3 different calculation based on the frequency unit.
&lt;BR /&gt;My iterator will be in Year.
&lt;BR /&gt;Case frequency= 'weeks' then TalendDate.addDate(NextDate.NEXTDATE,iterator.iterator*365*NextDate.FREQWKS,"dd") 
&lt;BR /&gt;Case frequency ='month' then TalendDate.addDate(NextDate.NEXTDATE,iterator.iterator*12*NextDate.FREQUENCY,"MM") 
&lt;BR /&gt;Case frequency ='year' then TalendDate.addDate(NextDate.NEXTDATE,iterator.iterator*NextDate.FREQUENCY,"yyyy")
&lt;BR /&gt;Thanks,</description>
      <pubDate>Sat, 24 Oct 2015 07:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/create-a-calendar-table/m-p/2206885#M6770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-24T07:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: create a calendar table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/create-a-calendar-table/m-p/2206886#M6771</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;Hello, I'm a beginner on Talend.
I have a little the same problem, but I did not manage to adapt your answers to my situation.

I was wondering if it was possible to create a new variable that displays all the dates for the current month.
Let me explain. I would like, starting from nothing, to create a new variable on talend which takes into account the day that it is at the time of its execution.
And that displays every day of the month. (Which takes into account the months of 30 or 31 days as well as the month of February).
I succeeded using the tjava tool to create an ArrayList which contains the values ​​I want to obtain. But however, I don't see how I can use it afterwards. Because I would like to have a variable that I can then use in a tmap or each line corresponds to a different day.

I do not know if I am very clear. Do not hesitate to ask questions if this is not the case.
Thank you for your answers.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Sorry for my English&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 May 2020 09:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/create-a-calendar-table/m-p/2206886#M6771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-19T09:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: create a calendar table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/create-a-calendar-table/m-p/2206887#M6772</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I created a calendar table by following this tutorial:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="http://bekwam.blogspot.com/2011/02/talend-open-studio-date-dimension-job.html" target="_self" rel="nofollow noopener noreferrer"&gt;bekwam's tutorial&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It's an old post, but still usefull (at least for me)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In your tJavaRow You can manipulate the dates to your liking, for example :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;output_row.dayOfYear = new Integer(cal.get(Calendar.DAY_OF_YEAR));
output_row.isFirstDayOfMonth = new Integer(1).equals(output_row.day);
output_row.isLastDayOfMonth = output_row.day.equals(cal.getActualMaximum(Calendar.DATE));
output_row.numWeek = cal.get(Calendar.WEEK_OF_YEAR);&lt;/PRE&gt; 
&lt;P&gt;See if you can combine this with the solution provided by &lt;A href="https://community.qlik.com/s/profile/0053p000007LNjfAAG"&gt;@mathurm&lt;/A&gt; .&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you find the solution, it would be nice to come and share it with us, it could help other people...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;PS : i found another tutorial for calendar :&lt;A href="http:// http://diethardsteiner.blogspot.com/2012/02/talend-open-studio-populating-date.html" target="_self" rel="nofollow noopener noreferrer"&gt;diethardsteiner's tutorial&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 10:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/create-a-calendar-table/m-p/2206887#M6772</guid>
      <dc:creator>raoh</dc:creator>
      <dc:date>2020-05-22T10:32:10Z</dc:date>
    </item>
  </channel>
</rss>

