<?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: Fiscal week starting from Monday. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fiscal-week-starting-from-Monday/m-p/1581190#M598177</link>
    <description>&lt;P&gt;Why not set the first day of the week to Monday in the script where all the initial environment variables are set...&lt;/P&gt;&lt;P&gt;SET FirstWeekDay=7;&lt;/P&gt;&lt;P&gt;The default is 6 and equates to Sunday. 7 equates to Monday, etc...&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2019 15:28:10 GMT</pubDate>
    <dc:creator>johnca</dc:creator>
    <dc:date>2019-05-16T15:28:10Z</dc:date>
    <item>
      <title>Fiscal week starting from Monday.</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-week-starting-from-Monday/m-p/1581015#M598176</link>
      <description>&lt;P&gt;I am trying to start my week in fiscal calendar from Monday.It starts from Monday only for the current year but for the previous year it starts from Sunday.I want to start the week from Monday for all the years.&lt;/P&gt;&lt;P&gt;Below is the expression i've used:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Div(Date-YearStart(Date,0,4),7)+1 as Week,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kindly help,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hamza&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 11:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-week-starting-from-Monday/m-p/1581015#M598176</guid>
      <dc:creator>hamzabob1</dc:creator>
      <dc:date>2019-05-16T11:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal week starting from Monday.</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-week-starting-from-Monday/m-p/1581190#M598177</link>
      <description>&lt;P&gt;Why not set the first day of the week to Monday in the script where all the initial environment variables are set...&lt;/P&gt;&lt;P&gt;SET FirstWeekDay=7;&lt;/P&gt;&lt;P&gt;The default is 6 and equates to Sunday. 7 equates to Monday, etc...&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 15:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-week-starting-from-Monday/m-p/1581190#M598177</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2019-05-16T15:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal week starting from Monday.</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-week-starting-from-Monday/m-p/1581355#M598178</link>
      <description>&lt;P&gt;Hii John,&lt;/P&gt;&lt;P&gt;Thanks for your rpl,but still am facing the same issue..&lt;/P&gt;&lt;P&gt;hamza&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 03:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-week-starting-from-Monday/m-p/1581355#M598178</guid>
      <dc:creator>hamzabob1</dc:creator>
      <dc:date>2019-05-17T03:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal week starting from Monday.</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-week-starting-from-Monday/m-p/1596245#M598179</link>
      <description>&lt;P&gt;The following is in regard to fiscal year, but it may be of some help in getting you on the right track, it is a design blog post from Henric Cronstrom, hopefully it gets you a bit further on things.&amp;nbsp; There are a bunch of other posts out there as well, so I would be sure to search further if this one does not get you exactly what you need, as there may be another with the additional detail you need...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Fiscal-Year/ba-p/1472103" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Fiscal-Year/ba-p/1472103&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 12:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-week-starting-from-Monday/m-p/1596245#M598179</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-06-26T12:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal week starting from Monday.</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-week-starting-from-Monday/m-p/1596343#M598180</link>
      <description>&lt;P&gt;Thanks for that link Brett. I ended up playing with that far too long, but was able to create something close. It needs some finagling to get it to work YoY but I did get it to set the start week to 1 on April 1st. Getting it to not count week 1 UNTIL Monday in the first week of the year is the next challenge. Otherwise it works okay.&lt;/P&gt;&lt;P&gt;/* Set date range for calendar */&lt;/P&gt;&lt;P&gt;LET vDateMin = Num(MakeDate(2015,4,1));&lt;BR /&gt;LET vDateMax = Floor(MonthEnd(Today()));&lt;BR /&gt;LET vDateToday = Num(Today());&lt;/P&gt;&lt;P&gt;TempCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt;Date($(vDateMin) + RowNo() - 1) AS TempDate&lt;BR /&gt;AUTOGENERATE 1 WHILE $(vDateMin)+IterNo()-1&amp;lt;= $(vDateMax);&lt;/P&gt;&lt;P&gt;/* HC's code, modified for vFW and fWeek below; */&lt;/P&gt;&lt;P&gt;Set vFM = 4 ; // First month of fiscal year&lt;BR /&gt;Set vFW = 14 ; /* Added to get the First week of fiscal year, as close to April 1st as possible */&lt;/P&gt;&lt;P&gt;Calendar:&lt;BR /&gt;Load TempDate as Date,&amp;nbsp; &amp;nbsp;/* date to join to other data */&lt;BR /&gt;WeekDay,&amp;nbsp; &amp;nbsp; &amp;nbsp;/* To verify day of week when week starts */&lt;BR /&gt;Year + If(Month&amp;gt;=$(vFM), 1, 0) as fYear, // Numeric fiscal year&lt;BR /&gt;Mod(Month-$(vFM), 12)+1 as fMonth, // Numeric fiscal month&lt;BR /&gt;Mod(Week-$(vFW), 52)+1 as fWeek /* Added for the week. Not perfect but can be modified to get what you need */&lt;BR /&gt;;&lt;BR /&gt;Load TempDate,&lt;BR /&gt;Year(TempDate) as Year, // Your standard master calendar&lt;BR /&gt;Month(TempDate) as Month,&lt;BR /&gt;Week(TempDate) as Week,&lt;BR /&gt;WeekDay(TempDate) as WeekDay&lt;BR /&gt;RESIDENT TempCalendar&lt;BR /&gt;ORDER BY TempDate ASC;&lt;/P&gt;&lt;P&gt;DROP TABLE TempCalendar;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, this should help Hamza...&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 14:37:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-week-starting-from-Monday/m-p/1596343#M598180</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2019-06-26T14:37:06Z</dc:date>
    </item>
  </channel>
</rss>

