<?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: Aligning dates to Fiscal Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aligning-dates-to-Fiscal-Year/m-p/1137412#M911041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script is working fine as far as the months and quarters are concerned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to bring in the weeks and align them to the fiscal year i.e. July - June&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I included the following,but still having issues in that the week start's on Monday as opposed to Sunday:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vCal_FD = 6; // First Day of the week (0=Mon, 1=Tue, ... , 6=Sun)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WeekStart(Date ([PKL_PickedDate]+ MakeDate(2000,1,1)), 6, $(vCal_FD))as WeekStart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dual(WeekStart(Date([PKL_PickedDate] + MakeDate(2000,1,1))),WeekStart(AddMonths(Date([PKL_PickedDate] + MakeDate(2000,1,1)),6))) as PickedFiscalWeek;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shamit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2016 03:48:40 GMT</pubDate>
    <dc:creator>shamitshah</dc:creator>
    <dc:date>2016-06-07T03:48:40Z</dc:date>
    <item>
      <title>Aligning dates to Fiscal Year</title>
      <link>https://community.qlik.com/t5/QlikView/Aligning-dates-to-Fiscal-Year/m-p/1137410#M911039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following in the script to align the dates to the Fiscal Year July - June.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))) &amp;gt; 6, Year(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)))+1, Year(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)))) as FiscalYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))),month(addmonths(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)),6))) as FiscalMonth,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; Week(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))) as Week;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Currently, the above expression for the week shows the week is aligned to the calendar year. I need an additional expression for the week to be aligned to the fiscal year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shamit&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&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/Aligning-dates-to-Fiscal-Year/m-p/1137410#M911039</guid>
      <dc:creator>shamitshah</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning dates to Fiscal Year</title>
      <link>https://community.qlik.com/t5/QlikView/Aligning-dates-to-Fiscal-Year/m-p/1137411#M911040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried playing around with the scrip provided by &lt;A href="https://community.qlik.com/qlik-users/23109"&gt;jagan&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7094"&gt;Fiscal and Standard Calendar generation&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 00:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aligning-dates-to-Fiscal-Year/m-p/1137411#M911040</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-07T00:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning dates to Fiscal Year</title>
      <link>https://community.qlik.com/t5/QlikView/Aligning-dates-to-Fiscal-Year/m-p/1137412#M911041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script is working fine as far as the months and quarters are concerned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to bring in the weeks and align them to the fiscal year i.e. July - June&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I included the following,but still having issues in that the week start's on Monday as opposed to Sunday:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vCal_FD = 6; // First Day of the week (0=Mon, 1=Tue, ... , 6=Sun)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WeekStart(Date ([PKL_PickedDate]+ MakeDate(2000,1,1)), 6, $(vCal_FD))as WeekStart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dual(WeekStart(Date([PKL_PickedDate] + MakeDate(2000,1,1))),WeekStart(AddMonths(Date([PKL_PickedDate] + MakeDate(2000,1,1)),6))) as PickedFiscalWeek;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shamit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 03:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aligning-dates-to-Fiscal-Year/m-p/1137412#M911041</guid>
      <dc:creator>shamitshah</dc:creator>
      <dc:date>2016-06-07T03:48:40Z</dc:date>
    </item>
  </channel>
</rss>

