<?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: Fiscal Year Calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fiscal-Year-Calendar/m-p/800268#M282482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to find out first date of fiscal year if my fiscal year is starting from October every year?&lt;/P&gt;&lt;P&gt;thanks for help in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 11:43:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-18T11:43:32Z</dc:date>
    <item>
      <title>Fiscal Year Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-Year-Calendar/m-p/800265#M282479</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 came across and used code for the generation of a Fiscal Calendar from a previous post. There are a few lines of code though that i need a little clarity on as i want to be able to understand and explain it properly. Can anyone explain what they actually mean please. I left only the lines of code that i need explaining on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FiscalCalendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;Dual('Q' &amp;amp; Ceil(FiscalMonth/3), Ceil(FiscalMonth/3)) AS FiscalQuarter, // Fiscal Calendar Quarter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dual(Text(Date(MonthEnd(Date), 'MMM')), FiscalMonth) AS FiscalMonthName; // Fiscal Calendar Month Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;Mod(Month(Date) - $(vFiscalYearStartMonth), 12)+1 AS FiscalMonth,&amp;nbsp; // Fiscal Calendar Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearName(Date, 0, $(vFiscalYearStartMonth)) AS FiscalYear;&amp;nbsp; // Fiscal Calendar Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date($(vStartDate) + RangeSum(Peek('RowNum'), 1) - 1) AS Date,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeSum(Peek('RowNum'), 1) AS RowNum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AutoGenerate vEndDate - vStartDate + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Magen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 07:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-Year-Calendar/m-p/800265#M282479</guid>
      <dc:creator />
      <dc:date>2014-12-09T07:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Year Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-Year-Calendar/m-p/800266#M282480</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;1. Using Dual function we can assign two values to a field .. here FiscalQuarter will get text value of quarter for representation and numerical value underneath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Mod(Month...............) : this is to set the starting month of your fiscal calendar.. $(vFiscalYearStartMonth) has to set before execution of script e.g: if April is the starting month of your fiscal calendar then set variable value to 4 then FiscalMonth get the value 1 for April month...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same this is happening with YearName................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. the last set of code is to generate a sequence of date in the range of vStartDate and vEndDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 07:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-Year-Calendar/m-p/800266#M282480</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2014-12-09T07:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Year Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-Year-Calendar/m-p/800267#M282481</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;Check the explanation below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dual('Q' &amp;amp; Ceil(FiscalMonth/3), Ceil(FiscalMonth/3)) AS FiscalQuarter, // Fiscal Calendar Quarter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dual(Text(Date(MonthEnd(Date), 'MMM')), FiscalMonth) AS FiscalMonthName; // Fiscal Calendar Month Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Mod(Month(Date) - $(vFiscalYearStartMonth), 12)+1 AS FiscalMonth,&amp;nbsp; // Fiscal Calendar Month&amp;nbsp; -- Calculating the fiscal month, assume that Fiscal Year starts on April, then current month is December, then&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(12 - 4)/12 + 1 = 9, 9th month of the fiscal year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;YearName(Date, 0, $(vFiscalYearStartMonth)) AS FiscalYear;&amp;nbsp; // Fiscal Calendar Year&amp;nbsp; -- Gives the Fiscal year name based on the fiscal year starting month&amp;nbsp; -- Refer qlikview help file for explanation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date($(vStartDate) + RangeSum(Peek('RowNum'), 1) - 1) AS Date,&amp;nbsp; -- Generate date field by adding rownum to mindate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RangeSum(Peek('RowNum'), 1) AS RowNum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AutoGenerate vEndDate - vStartDate + 1;&amp;nbsp; -- Looping for each date between min and max date&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 07:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-Year-Calendar/m-p/800267#M282481</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-12-09T07:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Year Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-Year-Calendar/m-p/800268#M282482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to find out first date of fiscal year if my fiscal year is starting from October every year?&lt;/P&gt;&lt;P&gt;thanks for help in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 11:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-Year-Calendar/m-p/800268#M282482</guid>
      <dc:creator />
      <dc:date>2015-02-18T11:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Year Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Fiscal-Year-Calendar/m-p/800269#M282483</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearStart(DateFieldName, 0, 10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Where 10 is october.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 02:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fiscal-Year-Calendar/m-p/800269#M282483</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-02-23T02:10:15Z</dc:date>
    </item>
  </channel>
</rss>

