<?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: Qlikview 12 New Week Numbering seems wrong? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-12-New-Week-Numbering-seems-wrong/m-p/1171214#M915604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you ever found a solution for this problem?&lt;/P&gt;&lt;P&gt;I am having the same issue. I set the variables to give me the first Sunday of 2016 that includes the day 4 of Jan, which should be the week of the 1/3/2016.&lt;/P&gt;&lt;P&gt;Qlik gives the the right day, but gives me year 2015. So the result is like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/3/2105&lt;/P&gt;&lt;P&gt;1/4/2016&lt;/P&gt;&lt;P&gt;1/5/2016&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is causing my weeks to be off a whole week, therefore giving wrong totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2016 21:34:40 GMT</pubDate>
    <dc:creator>luizcdepaula</dc:creator>
    <dc:date>2016-06-20T21:34:40Z</dc:date>
    <item>
      <title>Qlikview 12 New Week Numbering seems wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-12-New-Week-Numbering-seems-wrong/m-p/1171213#M915602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I discovered that QV12 appears to support general week numbering natively but it doesn't work as I expect, can anyone help me understand how to use this feature?&amp;nbsp; Details follow..... (I'm using version &lt;SPAN style="font-size: 13.3333px;"&gt;12.0.201 SR2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV 12 now generates the following new number interpretation variables in all new docs (default values shown)&lt;/P&gt;&lt;P&gt;SET FirstWeekDay=0;&lt;/P&gt;&lt;P&gt;SET BrokenWeeks=1;&lt;/P&gt;&lt;P&gt;SET ReferenceDay=0;&lt;/P&gt;&lt;P&gt;SET FirstMonthOfYear=1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought, great, I can change these and have functions like Week() and WeekDay() etc respond appropriately but I didn't get the results that I expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my example:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SET FirstWeekDay=5;&amp;nbsp; (weeks start on Saturday)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SET BrokenWeeks=0; (unbroken weeks)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SET ReferenceDay=0; (not applicable to unbroken weeks)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SET FirstMonthOfYear=1;&amp;nbsp; (default)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;With these settings I get:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;vDate = 03-Jan-2016&amp;nbsp; (my test date, this is a Sun)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Week(vDate) = 1 (we agree)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WeekYear(vDate) = 2015 (I expected 2016 because this is week 1 of 2016?)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WeekDay(vDate) = Sun (we agree)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Num(WeekDay(vDate)) = 1 (we agree)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;A key characteristic is that WeekYear always seems to change between Sun &amp;amp; Mon (default behaviour) independent of FirstWeekDay!&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;It gets worse if I change FirstMonthOfYear=2 (Feb), eg:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;YearStart(vDate) = 01-Jan-2016 (I expected 01-Feb-2015)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;QuarterName(vDate) = Jan-Mar 2016 (I expected Nov-Jan ?)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Clearly I have misunderstood something, can anyone help?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thx&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Robin&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/Qlikview-12-New-Week-Numbering-seems-wrong/m-p/1171213#M915602</guid>
      <dc:creator>robinrouleur</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview 12 New Week Numbering seems wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-12-New-Week-Numbering-seems-wrong/m-p/1171214#M915604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you ever found a solution for this problem?&lt;/P&gt;&lt;P&gt;I am having the same issue. I set the variables to give me the first Sunday of 2016 that includes the day 4 of Jan, which should be the week of the 1/3/2016.&lt;/P&gt;&lt;P&gt;Qlik gives the the right day, but gives me year 2015. So the result is like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/3/2105&lt;/P&gt;&lt;P&gt;1/4/2016&lt;/P&gt;&lt;P&gt;1/5/2016&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is causing my weeks to be off a whole week, therefore giving wrong totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 21:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-12-New-Week-Numbering-seems-wrong/m-p/1171214#M915604</guid>
      <dc:creator>luizcdepaula</dc:creator>
      <dc:date>2016-06-20T21:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview 12 New Week Numbering seems wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-12-New-Week-Numbering-seems-wrong/m-p/1171215#M915605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, No Luiz but good to have you confirm it's not just me!&amp;nbsp; I ended sticking with my QV11 Calendar script, it's based on HIC's post &lt;A href="https://community.qlik.com/qlik-blogpost/3545"&gt;Redefining the Week Numbers&lt;/A&gt;&amp;nbsp; I think I found a bug in his script for broken weeks but I have never followed it up with him and it may just be my interpretation of the definitions.&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, 21 Jun 2016 00:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-12-New-Week-Numbering-seems-wrong/m-p/1171215#M915605</guid>
      <dc:creator>robinrouleur</dc:creator>
      <dc:date>2016-06-21T00:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview 12 New Week Numbering seems wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-12-New-Week-Numbering-seems-wrong/m-p/1171216#M915606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it is a bug with the WeekYear function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I applied the changes from the HIC post &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"&gt;Redefining the Week Numbers&lt;/A&gt;, but the year 2015 for the first day of the week 1 is still showing.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" height="190" src="https://community.qlik.com/legacyfs/online/128673_pastedImage_0.png" style="width: 309px; height: 190.104px;" width="309" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 14:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-12-New-Week-Numbering-seems-wrong/m-p/1171216#M915606</guid>
      <dc:creator>luizcdepaula</dc:creator>
      <dc:date>2016-06-21T14:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview 12 New Week Numbering seems wrong?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-12-New-Week-Numbering-seems-wrong/m-p/1171217#M915608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone else helped me with the new Master Calendar script and it worked. The date of the first Sunday of the year now has 2016 as the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the link to the post below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/221724"&gt;WeekYear giving wrong year&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 21:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-12-New-Week-Numbering-seems-wrong/m-p/1171217#M915608</guid>
      <dc:creator>luizcdepaula</dc:creator>
      <dc:date>2016-06-21T21:26:04Z</dc:date>
    </item>
  </channel>
</rss>

