<?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>article Calendars in Member Articles</title>
    <link>https://community.qlik.com/t5/Member-Articles/Calendars/ta-p/1496392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A calendar is very useful when you want to link your data to different time periods, e.g. when you want to display your KPIs over different years or months. Often you only have one date and you just want to use a standard calendar. For this case, there are plenty of resources on this community. You can find a good overview on &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-8843" target="_blank"&gt;How to use - Master-Calendar and Date-Values&lt;/A&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have several date fields, you should most likely have several calendars defined in your script. See&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/08/30/master-table-with-multiple-roles" target="_blank"&gt;Why You sometimes should Load a Master Table several times&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date" target="_blank"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use a non standard calendar, like a fiscal calendar or a 4-4-5 calendar, the challenge becomes more difficult. See e.g. &lt;A href="https://community.qlik.com/qlik-blogpost/3138" target="_blank"&gt;Fiscal Year&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;or &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2016/07/04/recipe-for-a-4-4-5-calendar" style="font-size: 10pt; line-height: 1.5em;" target="_blank"&gt;Recipe for a 4-4-5 Calendar&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;‌. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The script posted here will help you create a more complicated calendar. It has parametrized examples for the following calendars:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Standard Gregorian month-based calendar&lt;/LI&gt;&lt;LI&gt;Standard Gregorian week-based calendar&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Standard Gregorian week&lt;/SPAN&gt;-based calendar with broken weeks&lt;BR /&gt;The first and last weeks of the year do not span the shift of the year and they do not necessarily have 7 days&lt;/LI&gt;&lt;LI&gt;Month-based fiscal calendar&lt;BR /&gt;The Gregorian months are used as fiscal months, but January is not necessarily the first month of the fiscal year.&lt;/LI&gt;&lt;LI&gt;Week-based 4-4-4 calendar&lt;BR /&gt;The fiscal year is divided into 13 months with 4 weeks each. Occasionally there is a 14th month with one week.&lt;/LI&gt;&lt;LI&gt;Week-based 4-4-5 calendar&lt;BR /&gt;The fiscal year is divided into 4 quarters, each with 3 months. The first month of the quarter has 4 weeks, the second has 4 weeks, and the last has 5 weeks. Occasionally the last month of the year has an additional week.&lt;/LI&gt;&lt;LI&gt;Week-based 4-5-4 calendar&lt;BR /&gt;The fiscal year is divided into 4 quarters, each with 3 months. &lt;SPAN style="font-size: 13.3333px;"&gt;The first month of the quarter&lt;/SPAN&gt; has 4 weeks, the second has 5 weeks, and the last has 4 weeks. &lt;SPAN style="font-size: 13.3333px;"&gt;Occasionally the last month of the year has an additional week&lt;/SPAN&gt;.&lt;/LI&gt;&lt;LI&gt;Week-based 5-4-4 calendar&lt;BR /&gt;The fiscal year is divided into 4 quarters, each with 3 months. &lt;SPAN style="font-size: 13.3333px;"&gt;The first month of the quarter &lt;/SPAN&gt;has 5 weeks, the second has 4 weeks, and the last has 4 weeks. &lt;SPAN style="font-size: 13.3333px;"&gt;Occasionally the last month of the year has an additional week&lt;/SPAN&gt;.&lt;/LI&gt;&lt;LI&gt;Broadcast calendar&lt;BR /&gt;The months are week-based and start on the first day of the week that contains the first day of the Gregorian month.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several parameters that you can use to configure your calendar: The first month of the year, the first day of the week and the first week of the week-based year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script is commented, so hopefully you can read it and understand it. You can paste it straight into an empty app and run it to evaluate how it works. If you want to use parts of it inside one of your own apps, you may need to rename some fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script should work in both Qlik Sense and QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2022 17:04:33 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2022-09-21T17:04:33Z</dc:date>
    <item>
      <title>Calendars</title>
      <link>https://community.qlik.com/t5/Member-Articles/Calendars/ta-p/1496392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A calendar is very useful when you want to link your data to different time periods, e.g. when you want to display your KPIs over different years or months. Often you only have one date and you just want to use a standard calendar. For this case, there are plenty of resources on this community. You can find a good overview on &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-8843" target="_blank"&gt;How to use - Master-Calendar and Date-Values&lt;/A&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have several date fields, you should most likely have several calendars defined in your script. See&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/08/30/master-table-with-multiple-roles" target="_blank"&gt;Why You sometimes should Load a Master Table several times&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date" target="_blank"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use a non standard calendar, like a fiscal calendar or a 4-4-5 calendar, the challenge becomes more difficult. See e.g. &lt;A href="https://community.qlik.com/qlik-blogpost/3138" target="_blank"&gt;Fiscal Year&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;or &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2016/07/04/recipe-for-a-4-4-5-calendar" style="font-size: 10pt; line-height: 1.5em;" target="_blank"&gt;Recipe for a 4-4-5 Calendar&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;‌. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The script posted here will help you create a more complicated calendar. It has parametrized examples for the following calendars:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Standard Gregorian month-based calendar&lt;/LI&gt;&lt;LI&gt;Standard Gregorian week-based calendar&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Standard Gregorian week&lt;/SPAN&gt;-based calendar with broken weeks&lt;BR /&gt;The first and last weeks of the year do not span the shift of the year and they do not necessarily have 7 days&lt;/LI&gt;&lt;LI&gt;Month-based fiscal calendar&lt;BR /&gt;The Gregorian months are used as fiscal months, but January is not necessarily the first month of the fiscal year.&lt;/LI&gt;&lt;LI&gt;Week-based 4-4-4 calendar&lt;BR /&gt;The fiscal year is divided into 13 months with 4 weeks each. Occasionally there is a 14th month with one week.&lt;/LI&gt;&lt;LI&gt;Week-based 4-4-5 calendar&lt;BR /&gt;The fiscal year is divided into 4 quarters, each with 3 months. The first month of the quarter has 4 weeks, the second has 4 weeks, and the last has 5 weeks. Occasionally the last month of the year has an additional week.&lt;/LI&gt;&lt;LI&gt;Week-based 4-5-4 calendar&lt;BR /&gt;The fiscal year is divided into 4 quarters, each with 3 months. &lt;SPAN style="font-size: 13.3333px;"&gt;The first month of the quarter&lt;/SPAN&gt; has 4 weeks, the second has 5 weeks, and the last has 4 weeks. &lt;SPAN style="font-size: 13.3333px;"&gt;Occasionally the last month of the year has an additional week&lt;/SPAN&gt;.&lt;/LI&gt;&lt;LI&gt;Week-based 5-4-4 calendar&lt;BR /&gt;The fiscal year is divided into 4 quarters, each with 3 months. &lt;SPAN style="font-size: 13.3333px;"&gt;The first month of the quarter &lt;/SPAN&gt;has 5 weeks, the second has 4 weeks, and the last has 4 weeks. &lt;SPAN style="font-size: 13.3333px;"&gt;Occasionally the last month of the year has an additional week&lt;/SPAN&gt;.&lt;/LI&gt;&lt;LI&gt;Broadcast calendar&lt;BR /&gt;The months are week-based and start on the first day of the week that contains the first day of the Gregorian month.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several parameters that you can use to configure your calendar: The first month of the year, the first day of the week and the first week of the week-based year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script is commented, so hopefully you can read it and understand it. You can paste it straight into an empty app and run it to evaluate how it works. If you want to use parts of it inside one of your own apps, you may need to rename some fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script should work in both Qlik Sense and QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2022 17:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Calendars/ta-p/1496392</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-09-21T17:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496393#M1098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Henric, very useful as always, one question - in the Broken weeks calendar line 263 can sometimes give a WeekStart result in the previous year.&amp;nbsp; Isn't the definition of broken weeks that the week breaks on the year boundary with short weeks either side, or am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is line 263 and an example where I think it gives the wrong result:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date(WeekStart(Date-$(vCal_FD))+$(vCal_FD))&lt;/TD&gt;&lt;TD&gt;as WeekStart,&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date = 01-Jan-2015&lt;/P&gt;&lt;P&gt;vCal_FD = 0&lt;/P&gt;&lt;P&gt;WeekStart = 29-Dec-2014 when it should be 01-Jan-2015?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 06:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496393#M1098</guid>
      <dc:creator>robinrouleur</dc:creator>
      <dc:date>2016-07-05T06:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496394#M1099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are absolutely right. The "WeekStart" in the script however denotes the Sunday (or whichever first-day-of-week you use) that is the start of the seven-day week.So it does not always correspond to the week numbering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you instead want to find the start of the specific week number, you need to use something like&lt;/P&gt;&lt;P&gt;Date(RangeMax(WeekStart,YearStart)) as WeekNumberStart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both these fields can be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 08:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496394#M1099</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-07-05T08:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496395#M1100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Henric, much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV12 now appears to support a lot of this functionality natively through the new variables &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FirstWeekDay, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;BrokenWeeks, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ReferenceDay and &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FirstMonthOfYear.&amp;nbsp; From memory there were some early bugs but with SR4 it seems to be working correctly - using your definition of WeekStart that we have discussed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Can you please confirm and if possible provide some clarification on the use of FirstMonthOfYear?&amp;nbsp; Eg I was expecting functions like QuarterName to respond to this variable but it does not seem to?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 09:02:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496395#M1100</guid>
      <dc:creator>robinrouleur</dc:creator>
      <dc:date>2016-07-05T09:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496396#M1101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, much of the functionality has been integrated into functions like Month(), YearStart() etc.The goal is to be able to create any calendar using the new fields-on-the-fly feature (See &lt;A href="https://community.qlik.com/qlik-blogpost/4088"&gt;Qlik Sense – Date &amp;amp;amp; Time&lt;/A&gt;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, we are not quite done yet. More functions are needed, and I wouldn't be surprised if there still are bugs. The feature is still fairly new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FirstMonthOfYear is a variable that should affect functions used to create month-based calendars. So, yes, in my opinion it should affect what QuarterName returns. I'll investigate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 09:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496396#M1101</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-07-05T09:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496397#M1102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Henric, very useful Script!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 10:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496397#M1102</guid>
      <dc:creator>joseph_morales</dc:creator>
      <dc:date>2016-07-06T10:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496398#M1103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot!!! Much appreciated!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 05:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496398#M1103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-07T05:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496399#M1104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very helpful script. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 10:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496399#M1104</guid>
      <dc:creator>danansell42</dc:creator>
      <dc:date>2016-07-07T10:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496400#M1105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;our Fiscal Calendar Year begins on the 1st July.&amp;nbsp; I am working out the ReferenceDay starting from July 2015.&amp;nbsp; I understand that this variable defines when a (week-based) year starts. Monday is start of the week here.&amp;nbsp; so am I correct by my calculation for RD (Fiscalyear) being:-&lt;/P&gt;&lt;P&gt;MakeDate(2015,07,06) - MakeDate(2015,12,31).&amp;nbsp;&amp;nbsp;&amp;nbsp; Result being :-&lt;/P&gt;&lt;P&gt;let= vCal_RD = -161, vCal_FD = 0&amp;nbsp; (i.e. Monday)&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="131220" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/131220_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;henric, what about the data in days 1,2,3,4?&amp;nbsp; would they have been included in the prior year?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 07:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496400#M1105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-14T07:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496401#M1106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your Fiscal year starts on July 1st, it sounds to me as if you use a Month-based fiscal calendar. Then you should not use the reference day at all. Instead, you should use the script on the tab "Month-based Fiscal".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you want a week-based fiscal calendar that starts on the first Monday of July, then July 7th is the first day that always belongs to week 1. Hence you should use &lt;/P&gt;&lt;P&gt;Let= vCal_RD = MakeDate(2015,07,07) - MakeDate(2015,12,31) :&lt;/P&gt;&lt;P&gt;Let= vCal_FD = 0 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first days of July will then belong to the previous fiscal year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496401#M1106</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-07-14T10:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496402#M1107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;A href="https://community.qlik.com/people/hic"&gt;hic&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Nice post&lt;/P&gt;&lt;P&gt;I want to concatenate these two tables &lt;/P&gt;&lt;P&gt;fact and fact1&lt;/P&gt;&lt;P&gt;And also i want only weeks and year that i fact table. &lt;A _jive_internal="true" href="https://community.qlik.com/message/1082955#1082955"&gt;https://community.qlik.com/message/1082955#1082955&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joshua.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 07:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1496402#M1107</guid>
      <dc:creator>ajsjoshua</dc:creator>
      <dc:date>2016-07-18T07:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1551875#M1108</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Henric,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope you can help me on the Below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My source has sales &amp;amp; budget data so it has order date, Transaction date and budget date. Please help me with some logic for the below scenario .&lt;/P&gt;&lt;P&gt;1. How to find 'Total Number of weeks in the current month'. Week starts from Monday.If the week has started already it should be considered as same week irrespective of the new month start. If the month starts on middle of the week that should consider as last week of the previous month.I am able to achieve but not as desired.&lt;/P&gt;&lt;P&gt;(Answer is: Jan 5 weeks,Feb 4 weeks,Mar 4 weeks,Apr 5 weeks, May 4 weeks,June 4 weeks, July 5 weeks,Aug 4 weeks,Sep 4 weeks,Oct 5 weeks,Nov 4 weeks,Dec 5 weeks,)&lt;/P&gt;&lt;P&gt;Result what i am getting is : Feb 5 weeks, March 6 weeks but it should be 1 week less because Feb 1 false under last week of January and march 1 falls under last week of Feb.&lt;/P&gt;&lt;P&gt;2. Max(OrderDate) falls in which week of the current month.&lt;BR /&gt;Ex: if OrderDate 3/1/2019 this is falls in 4th week of Feb.&lt;/P&gt;&lt;P&gt;I have attached the QVW.&amp;nbsp; &amp;nbsp;in the below link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Scripting/Total-Number-of-weeks-in-the-current-month/m-p/1551474#M94093" target="_self"&gt;Total Number of-weeks in the current month &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 15:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/1551875#M1108</guid>
      <dc:creator>poooja</dc:creator>
      <dc:date>2019-03-04T15:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/2046130#M1109</link>
      <description>&lt;P&gt;Hi to all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Amazing script, but as a newbie in qlik world I would like some assistance about setting the dates.&lt;/P&gt;
&lt;P&gt;I used the 445 week part, when I selected the year 2022 I got first date 28/08/2022 and last 26/08/2023.&lt;/P&gt;
&lt;P&gt;What changes I should do?&amp;nbsp; I want to use the 445 rule but year starts at Jan and finishes at Dec.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;(if it has been answered already I am sorry but I didn't understand it obviously....)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 11:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/2046130#M1109</guid>
      <dc:creator>jorgie</dc:creator>
      <dc:date>2023-03-07T11:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/2548101#M2449</link>
      <description>&lt;P&gt;Awesome, thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2026 16:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Calendars/tac-p/2548101#M2449</guid>
      <dc:creator>steveshaw</dc:creator>
      <dc:date>2026-04-29T16:42:06Z</dc:date>
    </item>
  </channel>
</rss>

