<?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 Manipulating Week Numbers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Manipulating-Week-Numbers/m-p/254259#M1205705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im having trouble manipulating dates using the "Week" function in the script. I want to be able to reassign what date the "week" function works from.&lt;/P&gt;&lt;P&gt;I want the week numbering to start at the last week of september for each year i.e. so Week 1 is 28/09/2009 and not 04/01/2010. I'm using the below coding but it doesn't take into consideration weeks with 53 weeks in them.&lt;/P&gt;&lt;P&gt;&lt;B&gt;LOAD&lt;/B&gt; Date,&lt;/P&gt;&lt;P&gt;Week([Date]) &lt;B&gt;as&lt;/B&gt; Week,&lt;/P&gt;&lt;P&gt;if((week([Date])-39)&amp;lt;=0, (week([Date])-39)+52, (week([Date])-39)) &lt;B&gt;as&lt;/B&gt; [Financial Week]&lt;/P&gt;&lt;P&gt;Is there a way to count the number of weeks in any given year in the code so that I can replace the "+52" part? At the moment, the code is giving me two financial week 14's when you look at 28/12/2009 and 04/01/2010.&lt;/P&gt;&lt;P&gt;Please look at the attached file to see what i mean.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Apr 2010 14:18:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-29T14:18:27Z</dc:date>
    <item>
      <title>Manipulating Week Numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Manipulating-Week-Numbers/m-p/254259#M1205705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im having trouble manipulating dates using the "Week" function in the script. I want to be able to reassign what date the "week" function works from.&lt;/P&gt;&lt;P&gt;I want the week numbering to start at the last week of september for each year i.e. so Week 1 is 28/09/2009 and not 04/01/2010. I'm using the below coding but it doesn't take into consideration weeks with 53 weeks in them.&lt;/P&gt;&lt;P&gt;&lt;B&gt;LOAD&lt;/B&gt; Date,&lt;/P&gt;&lt;P&gt;Week([Date]) &lt;B&gt;as&lt;/B&gt; Week,&lt;/P&gt;&lt;P&gt;if((week([Date])-39)&amp;lt;=0, (week([Date])-39)+52, (week([Date])-39)) &lt;B&gt;as&lt;/B&gt; [Financial Week]&lt;/P&gt;&lt;P&gt;Is there a way to count the number of weeks in any given year in the code so that I can replace the "+52" part? At the moment, the code is giving me two financial week 14's when you look at 28/12/2009 and 04/01/2010.&lt;/P&gt;&lt;P&gt;Please look at the attached file to see what i mean.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 14:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manipulating-Week-Numbers/m-p/254259#M1205705</guid>
      <dc:creator />
      <dc:date>2010-04-29T14:18:27Z</dc:date>
    </item>
  </channel>
</rss>

