<?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: Master calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Master-calendar/m-p/813170#M286895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the lines to :&lt;/P&gt;&lt;P&gt;LET varMinDate =Num(MakeDate(year(AddYears(Today(),-1)), 1 ,1));&lt;/P&gt;&lt;P&gt;LET varMaxDate = Num(MakeDate(year(AddYears(Today(),1)),12,31));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i got year 2014 , 2015 and 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grateful for your help &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; everyone &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Mar 2015 12:36:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-28T12:36:21Z</dc:date>
    <item>
      <title>Master calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar/m-p/813165#M286890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i'm new to Qlilview and i'm working on a master calendar script . I want to generate the calender for next year starting from January of each year.&lt;/P&gt;&lt;P&gt;So this is my script :&lt;/P&gt;&lt;P&gt;LET varMinDate = Num(MakeDate(YYYY, 1 ,1));&lt;/P&gt;&lt;P&gt;LET varMaxDate = Num(MakeDate(YYYY,12,31));&lt;/P&gt;&lt;P&gt;//*************** Temporary Calendar ***************&lt;/P&gt;&lt;P&gt;TempCalendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;$(varMinDate)+IterNo()-1 AS Num,&lt;/P&gt;&lt;P&gt;Date($(varMinDate)+IterNo()-1,'DD/MM/YYYY') AS TempDate&lt;/P&gt;&lt;P&gt;AUTOGENERATE 1 WHILE $(varMinDate)+IterNo()-1&amp;lt;= $(varMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//*************** Master Calendar ***************&lt;/P&gt;&lt;P&gt;Dim_Date:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempDate ,&lt;/P&gt;&lt;P&gt;WeekYear(TempDate) &amp;amp;'/ S'&amp;amp; week(TempDate) AS id_Date,&lt;/P&gt;&lt;P&gt;WeekYear(TempDate) AS Year,&lt;/P&gt;&lt;P&gt;Year(TempDate) &amp;amp;'/ M '&amp;amp; month(TempDate) AS YearMonth,&lt;/P&gt;&lt;P&gt;//day(TempDate) AS Day,&lt;/P&gt;&lt;P&gt;//weekday(TempDate) AS WeekDay,&lt;/P&gt;&lt;P&gt;Week(TempDate) as Week&lt;/P&gt;&lt;P&gt;RESIDENT TempCalendar&lt;/P&gt;&lt;P&gt;ORDER BY TempDate Asc;&lt;/P&gt;&lt;P&gt;DROP Table TempCalendar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions ?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 11:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar/m-p/813165#M286890</guid>
      <dc:creator />
      <dc:date>2015-03-28T11:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar/m-p/813166#M286891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just change these lines in your script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET varMinDate = Num(MakeDate(&lt;STRONG&gt;year(AddYears(Today(),1))&lt;/STRONG&gt;, 1 ,1));&lt;/P&gt;&lt;P&gt;LET varMaxDate = Num(MakeDate(&lt;STRONG&gt;year(AddYears(Today(),1))&lt;/STRONG&gt;,12,31));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 11:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar/m-p/813166#M286891</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-28T11:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar/m-p/813167#M286892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Massimo thank you for your reply , the thing is i need it to keep the previous 2 years too.Any ideas ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 12:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar/m-p/813167#M286892</guid>
      <dc:creator />
      <dc:date>2015-03-28T12:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar/m-p/813168#M286893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET varMinDate = Date(MakeDate(year(AddYears(Today(),1)), 1 ,1));&lt;/P&gt;&lt;P&gt;LET varMaxDate = Date(MakeDate(year(AddYears(Today(),10)),12,31));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 12:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar/m-p/813168#M286893</guid>
      <dc:creator />
      <dc:date>2015-03-28T12:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar/m-p/813169#M286894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If you need previous 2 years.You can try like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET varMinDate = Date(MakeDate(year(AddYears(Today(),0)), 1 ,1));&lt;/P&gt;&lt;P&gt;LET varMaxDate = Date(MakeDate(year(AddYears(Today(),-2)),12,31));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 12:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar/m-p/813169#M286894</guid>
      <dc:creator />
      <dc:date>2015-03-28T12:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar/m-p/813170#M286895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the lines to :&lt;/P&gt;&lt;P&gt;LET varMinDate =Num(MakeDate(year(AddYears(Today(),-1)), 1 ,1));&lt;/P&gt;&lt;P&gt;LET varMaxDate = Num(MakeDate(year(AddYears(Today(),1)),12,31));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i got year 2014 , 2015 and 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grateful for your help &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; everyone &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 12:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar/m-p/813170#M286895</guid>
      <dc:creator />
      <dc:date>2015-03-28T12:36:21Z</dc:date>
    </item>
  </channel>
</rss>

