<?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: Bug in Calendar Script in Archived Groups</title>
    <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212728#M2103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great work both Ian and Damian to find and correct these problems. An updated&amp;nbsp; version (same version number) is released: &lt;A href="https://community.qlik.com/docs/DOC-5302"&gt;Qlik Deployment Framework Deploy Tool &lt;/A&gt;&lt;SPAN style="font-size: 10pt;"&gt;Just point to your current framework and press update.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Magnus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Nov 2016 08:31:43 GMT</pubDate>
    <dc:creator>Magnus_Berg</dc:creator>
    <dc:date>2016-11-10T08:31:43Z</dc:date>
    <item>
      <title>Bug in Calendar Script [FIXED]</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212721#M2096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;A while ago I suggested adding YTD and PYTD flags to the 7.CalendarGen.qvs script:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;if(YearToDate([$(vL.DateFieldLinkName)], 0, 4, $(vL.CalendarGenToday)),1,0) AS [$(vL.CalendarTableName) Fiscal YTD Flag],&lt;BR /&gt;if(YearToDate([$(vL.DateFieldLinkName)], -1, 4, $(vL.CalendarGenToday)),1,0) AS [$(vL.CalendarTableName) Fiscal PYTD Flag]&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This was added to the script and now appears as:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;if(YearToDate([$(vL.QDF.DateFieldLinkName_new)], 0, $(vL.QDF.MonthsLeftFiscalDates), $(vL.QDF.CalendarGenToday)),1,0) AS [$(vL.QDF.CalendarTableName) Fiscal YTD Flag],&lt;BR /&gt;if(YearToDate([$(vL.QDF.DateFieldLinkName_new)], -1, $(vL.QDF.MonthsLeftFiscalDates), $(vL.QDF.CalendarGenToday)),1,0) AS [$(vL.QDF.CalendarTableName) Fiscal PYTD Flag]&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However these flags are only returning a "0"&lt;/P&gt;&lt;P&gt;I'm based in the UK, so my month offset is 4 as per the first example. The $(vL.QDF.MonthsLeftFiscalDates) variable I use is normally -3 so could be part of the problem.&lt;/P&gt;&lt;P&gt;Grateful if someone could investigate please.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2025 17:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212721#M2096</guid>
      <dc:creator>qliknerd</dc:creator>
      <dc:date>2025-07-22T17:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Calendar Script</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212722#M2097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the issue is that you are defining the fiscal months as -3. The function expects a positive number for the number of months left in the year. I.e. for a fiscal year starting 1-April the number of months remaining is 9 rather than -3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is the code i used to generate dummy transactions and then create a calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vNumberOfYears = 4 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Facts:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp; RecNo() as TransactionID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Floor(MakeDate(2018)-365.2424*$(vNumberOfYears)*Rand())) as Date &lt;/P&gt;&lt;P&gt;&amp;nbsp; Autogenerate 1000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;CALL CalendarGen('Date','Transaction',&lt;STRONG&gt;9&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a side note the QDF is now on GitHub so if you find bugs or wish to enhance the product you can contribute through here: &lt;A href="https://github.com/QlikDeploymentFramework/Qlik-Deployment-Framework" title="https://github.com/QlikDeploymentFramework/Qlik-Deployment-Framework"&gt;GitHub - QlikDeploymentFramework/Qlik-Deployment-Framework: QDF Dev version 1.6.5&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 19:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212722#M2097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-08T19:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Calendar Script</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212723#M2098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Damian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately if you use a positive integer to set the Fiscal Year, then it is a year out, which is why I use -3. If it needs to be positive, then the calculation of Fiscal Year might also need tweaking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.calendarpedia.co.uk/download/financial/financial-calendar-2016-2017-landscape-days-aligned.pdf" title="http://www.calendarpedia.co.uk/download/financial/financial-calendar-2016-2017-landscape-days-aligned.pdf"&gt;&lt;SPAN style="color: #000080; text-decoration: underline;"&gt;http://www.calendarpedia.co.uk/download/financial/financial-calendar-2016-2017-landscape-days-aligned.pdf&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 335px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0.5pt solid windowtext; border-image: none;" width="75"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Date&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;" width="44"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;9 Year&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;" width="81"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;9 Fiscal Year&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;" width="49"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;-3 Year&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black;" width="86"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;-3 Fiscal Year&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;31/03/2016&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;2016&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Calibri;"&gt;&lt;STRONG&gt;2016&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;2016&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #008000; font-size: 12pt; font-family: Calibri;"&gt;&lt;STRONG&gt;2015&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;01/04/2016&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;2016&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Calibri;"&gt;&lt;STRONG&gt;2017&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;2016&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black;"&gt;&lt;SPAN style="; color: #008000; font-size: 12pt; font-family: Calibri;"&gt;&lt;STRONG&gt;2016&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, the Year2Date function expects a firstmonth variable. If $(vL.QDF.MonthsLeftFiscalDates) is used, then this will always be whatever the "remaining months" variable is, so September onwards if 9 is used.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll check out GitHub in a bit, I wasn't aware that the QDF had moved there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 09:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212723#M2098</guid>
      <dc:creator>qliknerd</dc:creator>
      <dc:date>2016-11-09T09:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Calendar Script</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212724#M2099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two points - i do think the fiscal code is not correct on further investigation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However in the UK how do you refer to a Fiscal year? Do you refer to the suffix or prefix year? I.e. Where the actual data is 1-April-2016 we would refer to the Fiscal Year as 2017 as this is when the fiscal year ends. The actual year is 2016.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 19:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212724#M2099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-09T19:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Calendar Script</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212725#M2100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the UK, we'd refer to the prefix year, so 1-April-2016 is in Fiscal Year 2016/17&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 21:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212725#M2100</guid>
      <dc:creator>qliknerd</dc:creator>
      <dc:date>2016-11-09T21:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Calendar Script</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212726#M2101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a fork in GitHub. I think this is now working correctly. Can you have a look?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/djwaldo/Qlik-Deployment-Framework/tree/patch-2" title="https://github.com/djwaldo/Qlik-Deployment-Framework/tree/patch-2"&gt;GitHub - djwaldo/Qlik-Deployment-Framework at patch-2&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 21:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212726#M2101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-09T21:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Calendar Script</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212727#M2102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking good for the Fiscal YTD and PYTD flags Damian, it seems to be picking up the correct MonthStart now so thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We should be able to remove 12 months if we want the Fiscal Year, Fiscal QuarterYear and Fiscal MonthYear to be &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;prefix year&lt;/SPAN&gt;, unless we add an optional parameter to the function to allow developers to select between &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;suffix or prefix year?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I thought the idea of passing specific min and max dates was supposed to restrict the calendar only to those dates. That did not seem to work for me either, but I think I've traced it back to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. CALL CalendarGen('Date','Master Calendar',9, '01/04/2015','31/03/2017');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still brings back 4 years worth of dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Think this is something to do with lines 73 and 74:&lt;/P&gt;&lt;P&gt;LET vL.QDF.CalendarGenMinDate = Num(Date(Date#('$(&lt;STRONG&gt;vL.QDF.CalendarGenMinDate&lt;/STRONG&gt;)','$(vL.QDF.DateFormat)'))) ;&lt;/P&gt;&lt;P&gt;LET vL.QDF.CalendarGenMaxDate = Num(Date(Date#('$(&lt;STRONG&gt;vL.QDF.CalendarGenMaxDate&lt;/STRONG&gt;)','$(vL.QDF.DateFormat)'))) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should be:&lt;/P&gt;&lt;P&gt;LET vL.QDF.CalendarGenMinDate = Num(Date(Date#('$(&lt;STRONG&gt;vL.QDF.CalendarGenMinDate&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Org&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/STRONG&gt;','$(vL.QDF.DateFormat)'))) ;&lt;/P&gt;&lt;P&gt;LET vL.QDF.CalendarGenMaxDate = Num(Date(Date#('$(&lt;STRONG&gt;vL.QDF.CalendarGenMaxDate&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Org&lt;/STRONG&gt;&lt;/SPAN&gt;)','$(vL.QDF.DateFormat)'))) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good stuff tho, much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 22:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212727#M2102</guid>
      <dc:creator>qliknerd</dc:creator>
      <dc:date>2016-11-09T22:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Calendar Script</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212728#M2103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great work both Ian and Damian to find and correct these problems. An updated&amp;nbsp; version (same version number) is released: &lt;A href="https://community.qlik.com/docs/DOC-5302"&gt;Qlik Deployment Framework Deploy Tool &lt;/A&gt;&lt;SPAN style="font-size: 10pt;"&gt;Just point to your current framework and press update.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Magnus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 08:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212728#M2103</guid>
      <dc:creator>Magnus_Berg</dc:creator>
      <dc:date>2016-11-10T08:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Calendar Script</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212729#M2104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Magnus, however there is still an issue where I'd like to use Prefix Year rather than the Suffix Year. If we tweak Damian's code slightly, then the calculation still works for me using negative values, everything works and there is an option for developers to use Prefix or Suffix years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you check this works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;/*Catch scenario where negative number of months provided for FiscalStartMonths*/&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vL.QDF.MonthsLeftFiscalDates)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt; 0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;vL.QDF.FiscalStartMonth&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 13 - (12 + &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;vL.QDF.MonthsLeftFiscalDates&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Else&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;vL.QDF.FiscalStartMonth&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 13 - &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;vL.QDF.MonthsLeftFiscalDates&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;endif&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;CALL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;CalendarGen&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Date','PrefixCalendar','-3');&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;CALL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;CalendarGen&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Date','SuffixCalendar','9'); &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Nov 2016 17:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212729#M2104</guid>
      <dc:creator>qliknerd</dc:creator>
      <dc:date>2016-11-12T17:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Calendar Script</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212730#M2105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you send me a link to a fork in GitHub and I will test it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 11:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212730#M2105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-15T11:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Calendar Script</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212731#M2106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Damian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you go: &lt;A href="https://github.com/iPFT/Qlik-Deployment-Framework/blob/patch-2/3.Include/4.Sub/7.CalendarGen.qvs" title="https://github.com/iPFT/Qlik-Deployment-Framework/blob/patch-2/3.Include/4.Sub/7.CalendarGen.qvs"&gt;Qlik-Deployment-Framework/7.CalendarGen.qvs at patch-2 · iPFT/Qlik-Deployment-Framework · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 12:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212731#M2106</guid>
      <dc:creator>qliknerd</dc:creator>
      <dc:date>2016-11-15T12:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Calendar Script</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212732#M2107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a quick test and it looks great. The only nuance I see is if you specifically wanted a Fiscal Calendar created that ran from Jan - Dec. If you put in 12 there is no issue. However if you put in in -12 then the fiscal year is the previous year. However this scenario does not make sense as the Fiscal Year is the annual year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Damian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 20:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212732#M2107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-16T20:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Calendar Script</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212733#M2108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ian, the fix is approved and committed. Have also updated the deploy package:&lt;A href="https://community.qlik.com/docs/DOC-5302"&gt;Qlik Deployment Framework Deploy Tool&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Magnus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 08:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212733#M2108</guid>
      <dc:creator>Magnus_Berg</dc:creator>
      <dc:date>2016-11-17T08:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Calendar Script</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212734#M2109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Magnus, great news thank you. I'll update out Development Env today and do some testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Damian, thank you too for applying the initial fix and for your promptness.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a good day all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 09:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Bug-in-Calendar-Script-FIXED/m-p/1212734#M2109</guid>
      <dc:creator>qliknerd</dc:creator>
      <dc:date>2016-11-17T09:19:06Z</dc:date>
    </item>
  </channel>
</rss>

