<?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 Fiscal Weeks - Week 1 in September in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fiscal-Weeks-Week-1-in-September/m-p/386555#M696740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a calendar field in my script to change the week numbers so that week 1 starts on the first Monday in September. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, 03/09/2012 is usually week 36, but I want it to be week 1. &lt;/P&gt;&lt;P&gt;Similarly, 31/12/2012 is the first day of week 1 in my existing calendar, but I would want this date to be in week 18 for my new week field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I had done what I needed to do by using the MakeDate function in my script. This seems to work perfectly up until 07/01/2013, when suddenly the week numbers on my new week field changed to be Sunday starting weeks (rather than Monday starting as they were up until that point).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help greatly appreciated.&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;Danielle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2013 15:31:08 GMT</pubDate>
    <dc:creator>danielle_v</dc:creator>
    <dc:date>2013-04-22T15:31:08Z</dc:date>
    <item>
      <title>Fiscal Weeks - Week 1 in September</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-Weeks-Week-1-in-September/m-p/386555#M696740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a calendar field in my script to change the week numbers so that week 1 starts on the first Monday in September. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, 03/09/2012 is usually week 36, but I want it to be week 1. &lt;/P&gt;&lt;P&gt;Similarly, 31/12/2012 is the first day of week 1 in my existing calendar, but I would want this date to be in week 18 for my new week field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I had done what I needed to do by using the MakeDate function in my script. This seems to work perfectly up until 07/01/2013, when suddenly the week numbers on my new week field changed to be Sunday starting weeks (rather than Monday starting as they were up until that point).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help greatly appreciated.&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;Danielle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 15:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-Weeks-Week-1-in-September/m-p/386555#M696740</guid>
      <dc:creator>danielle_v</dc:creator>
      <dc:date>2013-04-22T15:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Weeks - Week 1 in September</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-Weeks-Week-1-in-September/m-p/386556#M696741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;Right(WeekName(TempDate,0,-36),2) as NewWeek&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then your week 36 will start by 1 i think&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 17:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-Weeks-Week-1-in-September/m-p/386556#M696741</guid>
      <dc:creator />
      <dc:date>2013-04-22T17:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Weeks - Week 1 in September</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-Weeks-Week-1-in-September/m-p/386557#M696742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks, this has achieved exactly what I need&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 08:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-Weeks-Week-1-in-September/m-p/386557#M696742</guid>
      <dc:creator>danielle_v</dc:creator>
      <dc:date>2013-04-23T08:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Weeks - Week 1 in September</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-Weeks-Week-1-in-September/m-p/386558#M696743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very useful discussion. I am leveraging this to create a fiscal calender that starts in october (starts on saturday for the week whose monday is first monday of October). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using below script to adjust the weeks. So fiscal week 1 in 2012 starts on Sat, 1st Oct 2011 and goes on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,13,-2),2) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FiscalWeek &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,13,-2),2)&amp;gt;0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,13,-2),2)&amp;lt;=13,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;YearName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;YearName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,0)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FiscalYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weeks are working perfect but I am facing problem in scripting years properly. I am incrementing year with the script above (logic: for first 13 quarters increment calender year by 1 to get fiscal year and after that use calender year as fiscal year). This does not apply to certain exceptions like 12/31/2012 (attached screenshot) as its in fiscal week 14 and calender year is still 2011 not 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how to handle years when starting fiscal calender different than calender year? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping with this. I very much appreciate it.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="45149" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/45149_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 19:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-Weeks-Week-1-in-September/m-p/386558#M696743</guid>
      <dc:creator />
      <dc:date>2013-08-07T19:40:22Z</dc:date>
    </item>
  </channel>
</rss>

