<?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: Calendar issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410228#M812236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="OP2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177689_OP2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="OP3.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/177690_OP3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Sep 2017 17:13:27 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2017-09-25T17:13:27Z</dc:date>
    <item>
      <title>Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410224#M812230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing one issue.&lt;/P&gt;&lt;P&gt;this is my script using for calendar......&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;Calendar Script:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FactTable&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;2014-01-01&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;STRONG&gt;Temp:&lt;/STRONG&gt; //Using the fact to extract min and max date&lt;/P&gt;&lt;P&gt;LOAD MIN(Date) as minDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Today() as maxDate&lt;/P&gt;&lt;P&gt;Resident FactTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinDate = Num(Peek('minDate', 0, 'Temp'));&lt;/P&gt;&lt;P&gt;LET vMaxDate = Num(Peek('maxDate', 0, 'Temp'));&lt;/P&gt;&lt;P&gt;DROP Tables Temp, FactTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempCalendar&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vMinDate) + IterNo() - 1 as Num,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date($(vMinDate) + IterNo() - 1) as TempDate&lt;/P&gt;&lt;P&gt;AutoGenerate&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1 While $(vMinDate) + IterNo() -1 &amp;lt;= $(vMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MasterCalendar&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; TempDate as OrderDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Week(TempDate) as Week,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(TempDate) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(TempDate) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Day(TempDate) as Day,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Weekday(TempDate) as WeekDay,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Q' &amp;amp; ceil(month(TempDate) / 3) as Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Q' &amp;amp; Ceil(Month(TempDate)/3) &amp;amp; '-' &amp;amp; Year(TempDate) as QuarterYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp; MonthName(TempDate) as MonthYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Week(TempDate)&amp;amp;'-'&amp;amp;Year(TempDate) as WeekYear&lt;/P&gt;&lt;P&gt;Resident TempCalendar&lt;/P&gt;&lt;P&gt;Order By TempDate ASC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table TempCalendar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, &lt;STRONG&gt;2017 year,&lt;/STRONG&gt; maximum week showing 52, how come??&lt;/P&gt;&lt;P&gt;Maximum week should be 39...&lt;/P&gt;&lt;P&gt;if i click 52 week also i.e associating to &lt;STRONG&gt;01-01-2017&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did i anything wrong ??, Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410224#M812230</guid>
      <dc:creator>paulwalker</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar issue</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410225#M812231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where you are seeing that. I am getting correct one only&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177655_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 16:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410225#M812231</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-25T16:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar issue</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410226#M812232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How come??&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;PFA, &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 17:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410226#M812232</guid>
      <dc:creator>paulwalker</dc:creator>
      <dc:date>2017-09-25T17:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar issue</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410227#M812233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you select Month Sep it will display max month 39 to you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached all seems correct and fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 17:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410227#M812233</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-09-25T17:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar issue</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410228#M812236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="OP2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177689_OP2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="OP3.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/177690_OP3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 17:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410228#M812236</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-09-25T17:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar issue</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410229#M812238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i select Month, what is the use of maximum week ???&lt;/P&gt;&lt;P&gt;If i make selection 2017 year, that should show.. Max week 39..&amp;nbsp;&amp;nbsp; (if i select month what is the use of Week function ??)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why it's coming 52 week, and i.e also &lt;STRONG&gt;01-01-2017&amp;nbsp; ??&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 17:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410229#M812238</guid>
      <dc:creator>paulwalker</dc:creator>
      <dc:date>2017-09-25T17:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar issue</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410230#M812239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Week 52 for 01/01/2017 is because it is associated to the last week of 2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌&amp;nbsp; has some great posts on this subject...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" data-containerid="2588" data-containertype="37" data-objectid="3527" data-objecttype="38" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/01/21/week-start" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Redefining the Week Start&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" data-containerid="2588" data-containertype="37" data-objectid="3545" data-objecttype="38" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/01/27/week-numbers" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Redefining the Week Numbers&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Good luck!&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 19:08:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410230#M812239</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-09-25T19:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar issue</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410231#M812241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;[MasterCalendar]:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// just in case&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &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;CalDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// it will be in format defined in your SET DateFormat=, or in your system format&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &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;CalDay&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;week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &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;CalWeek&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;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &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;CalMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// simple month name; it is dual - numeric and text&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;dual&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp; '-' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&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;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), '00')) &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;CalMonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Month-Year format, dual&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &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;CalYear&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;WeekDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &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;CalWeekday&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;WeekEnd&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;(DateID, 0, 5) as CalWeekEnd&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style="color: #ff0000;"&gt;,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This change in syntax is accepted correctly in script&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt; 'Q' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/3) &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;CalQuarter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// in format Q1, Q2, Q3, Q4&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// dual('Q' &amp;amp; ceil(month(DateID)/3) &amp;amp; '-' &amp;amp; year(DateID)) as MonthQuarter,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/3) &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;CalYearQtr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Qn-Year, dual&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// and whatever else you may want here...&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Date_src;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Drop&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Date_src; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;//But following is not getting accepted&lt;/SPAN&gt;&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;[MasterCalendar]:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// just in case&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &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;CalDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// it will be in format defined in your SET DateFormat=, or in your system format&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &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;CalDay&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style="color: #ff0000;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;week(DateID&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;, 6, 0) as CalWeek, &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style="color: #ff0000;"&gt;I tried defining Sunday as start day, 0 for broken week and '01/01/2017' as start day for the year.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style="color: #ff0000;"&gt;01/01/2017 is showing up in week 52 of 2017 (So agreeing to what Paul is saying)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 20:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410231#M812241</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-09-25T20:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar issue</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410232#M812244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An option for that depending upon how you want your calendar to display is to use the WeekYear() function to pull the Year to the corresponding week that your day falls under.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 20:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410232#M812244</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-09-25T20:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar issue</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410233#M812246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="01012017 in Week52.PNG" class="jive-image image-1" src="/legacyfs/online/177703_01012017 in Week52.PNG" style="width: 620px; height: 250px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression in Text&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('01/01/2017', 6, 0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;As per help on week, it should take additional optional parameter. Not sure what the issue is.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/week.htm" title="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/week.htm"&gt;https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/week.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 21:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410233#M812246</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-09-25T21:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar issue</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410234#M812247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI I've added this to refine and correct values&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;SET FirstWeekDay=6;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 01:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410234#M812247</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-26T01:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar issue</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410235#M812248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually i saw this post, but i didn't notice..&lt;/P&gt;&lt;P&gt;Thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 02:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410235#M812248</guid>
      <dc:creator>paulwalker</dc:creator>
      <dc:date>2017-09-26T02:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410236#M812249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice Solution... !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 02:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410236#M812249</guid>
      <dc:creator>paulwalker</dc:creator>
      <dc:date>2017-09-26T02:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410237#M812250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can flag suitable answer as correct and numerous helpful ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 02:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/1410237#M812250</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-26T02:36:36Z</dc:date>
    </item>
  </channel>
</rss>

