<?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 Week() beyond 52 weeks? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Week-beyond-52-weeks/m-p/161333#M35271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, but on the other hand, I just gave an idea and not a 100% solution. I expect members to do some homework themselves.&lt;/P&gt;&lt;P&gt;This "week" thing is pretty tricky and discussion cen be little sensitive based on requirements. Remember our favorite thread &lt;A href="http://community.qlik.com/forums/p/18218/71427.aspx#71427"&gt;http://community.qlik.com/forums/p/18218/71427.aspx#71427&lt;/A&gt; ? &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2009 06:39:53 GMT</pubDate>
    <dc:creator>disqr_rm</dc:creator>
    <dc:date>2009-08-20T06:39:53Z</dc:date>
    <item>
      <title>Week() beyond 52 weeks?</title>
      <link>https://community.qlik.com/t5/QlikView/Week-beyond-52-weeks/m-p/161330#M35268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;Is there a way to make week() go beyond a 1 year period? I need to display week numbers from a range of more than 3 years, so I need to make the week count go above 100. Anyone know an easy way to do this? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 21:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-beyond-52-weeks/m-p/161330#M35268</guid>
      <dc:creator />
      <dc:date>2009-08-19T21:22:51Z</dc:date>
    </item>
    <item>
      <title>Week() beyond 52 weeks?</title>
      <link>https://community.qlik.com/t5/QlikView/Week-beyond-52-weeks/m-p/161331#M35269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;Get the start year stored in Start_Year variable, something like min(year(Date)) and then&lt;/P&gt;&lt;P&gt;LOAD week(Date) * (year(Date) - $(Start_Year) + 1) as BigWeekNumber&lt;/P&gt;&lt;P&gt;Just an idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 21:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-beyond-52-weeks/m-p/161331#M35269</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-08-19T21:30:35Z</dc:date>
    </item>
    <item>
      <title>Week() beyond 52 weeks?</title>
      <link>https://community.qlik.com/t5/QlikView/Week-beyond-52-weeks/m-p/161332#M35270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That won't work. Let's say you want to start counting weeks from Monday, December 31, 2007, which QlikView considers week 1 of 2008:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;December 31, 2007 -&amp;gt; 1&lt;BR /&gt;January 1, 2008 -&amp;gt; 2&lt;BR /&gt;January 7, 2008 -&amp;gt; 4&lt;BR /&gt;December 28, 2008 -&amp;gt; 104&lt;BR /&gt;December 29, 2008 -&amp;gt; 2&lt;BR /&gt;January 1, 2009 -&amp;gt; 3&lt;BR /&gt;January 5, 2009 -&amp;gt; 6&lt;BR /&gt;December 31, 2009 -&amp;gt; 159&lt;BR /&gt;January 1, 2010 -&amp;gt; 212&lt;/P&gt;&lt;P&gt;I'd recommend this (replacing the date with whatever starting date you want):&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;1+floor((Date-date#(20071231,'YYYYMMDD'))/7)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 03:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-beyond-52-weeks/m-p/161332#M35270</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-08-20T03:42:27Z</dc:date>
    </item>
    <item>
      <title>Week() beyond 52 weeks?</title>
      <link>https://community.qlik.com/t5/QlikView/Week-beyond-52-weeks/m-p/161333#M35271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, but on the other hand, I just gave an idea and not a 100% solution. I expect members to do some homework themselves.&lt;/P&gt;&lt;P&gt;This "week" thing is pretty tricky and discussion cen be little sensitive based on requirements. Remember our favorite thread &lt;A href="http://community.qlik.com/forums/p/18218/71427.aspx#71427"&gt;http://community.qlik.com/forums/p/18218/71427.aspx#71427&lt;/A&gt; ? &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 06:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-beyond-52-weeks/m-p/161333#M35271</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-08-20T06:39:53Z</dc:date>
    </item>
    <item>
      <title>Week() beyond 52 weeks?</title>
      <link>https://community.qlik.com/t5/QlikView/Week-beyond-52-weeks/m-p/161334#M35272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eep! Don't remind me! &lt;IMG alt="Embarrassed" src="http://community.qlik.com/emoticons/emotion-10.gif" /&gt; &lt;IMG alt="Wink" src="http://community.qlik.com/emoticons/emotion-5.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 06:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-beyond-52-weeks/m-p/161334#M35272</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-08-20T06:54:38Z</dc:date>
    </item>
  </channel>
</rss>

