<?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 of Financial Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Week-of-Financial-Year/m-p/282428#M1190266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haven't found an easy QlikView funtion way, maybe I have missed something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could always use&lt;/P&gt;&lt;P&gt;=num(([Date]+275-(MakeDate(Year([Date]+275-mod([Date]-2,7)+3), 1, (mod([Date]-2,7)+1) )-10))/7-0.5,'###0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to calculate the week of financial year (starting April). Week numbering is in accordance / analogy to ISO-8601.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: If you want a different start of financial year, replace both occurences of 275 with number of days from financial year start till end of calendar year (i.e. April 1st&amp;nbsp; to December 31 = 275)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jul 2011 12:13:24 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-07-15T12:13:24Z</dc:date>
    <item>
      <title>Week of Financial Year</title>
      <link>https://community.qlik.com/t5/QlikView/Week-of-Financial-Year/m-p/282427#M1190265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I stuck in calculating the week of the financial year....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, The financial year starts from April to March.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So the first week of April should be the starting week of the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; How can I get this result...? Help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;P&gt;RB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 05:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-of-Financial-Year/m-p/282427#M1190265</guid>
      <dc:creator />
      <dc:date>2011-07-15T05:36:36Z</dc:date>
    </item>
    <item>
      <title>Week of Financial Year</title>
      <link>https://community.qlik.com/t5/QlikView/Week-of-Financial-Year/m-p/282428#M1190266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haven't found an easy QlikView funtion way, maybe I have missed something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could always use&lt;/P&gt;&lt;P&gt;=num(([Date]+275-(MakeDate(Year([Date]+275-mod([Date]-2,7)+3), 1, (mod([Date]-2,7)+1) )-10))/7-0.5,'###0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to calculate the week of financial year (starting April). Week numbering is in accordance / analogy to ISO-8601.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: If you want a different start of financial year, replace both occurences of 275 with number of days from financial year start till end of calendar year (i.e. April 1st&amp;nbsp; to December 31 = 275)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 12:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-of-Financial-Year/m-p/282428#M1190266</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-15T12:13:24Z</dc:date>
    </item>
  </channel>
</rss>

