<?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 How to load the financial year during the load script itself? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179850#M46524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul!&lt;/P&gt;&lt;P&gt;Thanks for your reply! Instead of using the script sent by you I am using another script and getting the required result. May i know will it affects some time later on.&lt;/P&gt;&lt;P&gt;YearName(DATE,0,4) as [FinancialYear1]&lt;/P&gt;&lt;P&gt;// Instead of using the above one. I am using the below one&lt;/P&gt;&lt;P&gt;Date(yearstart(DATE,0,4),'YYYY') as [Fiscal Year]&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Rikab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Mar 2010 10:50:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-15T10:50:14Z</dc:date>
    <item>
      <title>How to load the financial year during the load script itself?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179845#M46519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;How to load the financial year during the load script in the same way which has been given below????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Calender:&lt;BR /&gt; Load&lt;BR /&gt; DATE,&lt;BR /&gt; Day(DATE) as Day,&lt;BR /&gt; DayName(DATE) as [Day Name],&lt;BR /&gt; WeekDay(DATE) as [Day of Week],&lt;BR /&gt; WeekName(DATE) as [Week Name],&lt;BR /&gt; LunarWeekName(DATE) as [Lunar Week Name],&lt;BR /&gt; Month(DATE) as [Month],&lt;BR /&gt; MonthName(DATE) as [Month Name],&lt;BR /&gt; QuarterName(DATE) as [Quarter Name],&lt;BR /&gt; Year(DATE) as [Year]&lt;BR /&gt; &lt;B&gt;????(DATE) as [FinancialYear]&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;Resident t1;&lt;BR /&gt;&lt;BR /&gt;Drop Table t1;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Mar 2010 08:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179845#M46519</guid>
      <dc:creator />
      <dc:date>2010-03-13T08:52:21Z</dc:date>
    </item>
    <item>
      <title>How to load the financial year during the load script itself?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179846#M46520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you can use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearName(DATE,0,4) as [FinancialYear]&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;YearName&lt;B&gt;(Today(),&lt;/B&gt;0&lt;B&gt;,&lt;/B&gt;4) it will give 2009-2010&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Rahul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Mar 2010 17:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179846#M46520</guid>
      <dc:creator />
      <dc:date>2010-03-13T17:24:02Z</dc:date>
    </item>
    <item>
      <title>How to load the financial year during the load script itself?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179847#M46521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We usually load the table of fiscal periods with the beginning and end dates, and then generate the calendar for all the days the belong to each period, using WHILE. This way, each date is getting associated with the fiscal Year and Period number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Mar 2010 02:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179847#M46521</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-03-14T02:24:35Z</dc:date>
    </item>
    <item>
      <title>How to load the financial year during the load script itself?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179848#M46522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, dsjain,&lt;/P&gt;&lt;P&gt;If my memory doesn't fail, then the begining and the end of the financial year could be different from calendar year. I have similar case with quarters what are different from quarters based on months. I use the source table with period ending dates and Lookup function.&lt;/P&gt;&lt;P&gt;In your case may be source table in Excel and Intervalmatch statement could be the solution&lt;/P&gt;&lt;P&gt;E.g. the source table could look like...&lt;/P&gt;&lt;P&gt;Finansial year Begin Date End Date&lt;BR /&gt; 2006 2006.02.01 2007.01.31&lt;BR /&gt; 2007 2007.02.01 2008.01.31&lt;BR /&gt; 2008 2008.02.01 2009.01.31&lt;BR /&gt; 2009 2009.02.01 2010.01.31&lt;BR /&gt; 2010 2010.02.01 2011.01.31&lt;/P&gt;&lt;P&gt;...and the statement&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;FinYears:&lt;BR /&gt;Load&lt;BR /&gt; [Financial Year] as FinYear,&lt;BR /&gt; Num(Date([Begin Date])) as FinBegin,&lt;BR /&gt; Num(Date([End Date])) as FinEnd&lt;BR /&gt;From SourceExcel.xls........;&lt;BR /&gt;&lt;BR /&gt;Left Join (Calender)&lt;BR /&gt;Intervalmatch (DATE, FinYear)&lt;BR /&gt;Load&lt;BR /&gt; FinBegin,&lt;BR /&gt; FinEnd,&lt;BR /&gt; FinYear&lt;BR /&gt;Resident FinYears;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;After that you can join table FinYears to Calender and drop unnecessary table and fields. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That just one of the possible solutions&lt;/P&gt;&lt;P&gt;Rds,&lt;BR /&gt;AT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 08:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179848#M46522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-15T08:20:41Z</dc:date>
    </item>
    <item>
      <title>How to load the financial year during the load script itself?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179849#M46523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are looking for a function, like all the other functions in you example, that returns the FinancialYear.. I'm afraid you won't find it.&lt;/P&gt;&lt;P&gt;A FinancialYear does not have a standard function, because there is no default definition for it. The definition for FinancialYear is something you will have to make yourself, because it can be different for each company.&lt;/P&gt;&lt;P&gt;Your Financial Year could start on February 2nd, or October 21st, or any other date..&lt;/P&gt;&lt;P&gt;Three possible options: (there are more)&lt;/P&gt;&lt;P&gt;- If your Financial year is the same as the Calendar Year, you can just use Year()&lt;/P&gt;&lt;P&gt;- If it is not too complex, you might think of a calculation, for example: if your financial year begins in March, then you could do something like&lt;BR /&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;PRE style="margin: 0px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;if( Month(DATE)&amp;lt;=3,&lt;BR /&gt;&lt;/STRONG&gt;  &lt;STRONG&gt;Year(DATE) -1,&lt;BR /&gt;&lt;/STRONG&gt;  &lt;STRONG&gt;Year(DATE),&lt;/STRONG&gt;&lt;BR /&gt;) as &lt;STRONG&gt;[FinancialYear]&lt;BR /&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt; &lt;STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;- If the definition is complex, you should make a seperate table (import or inline) that you can then join/map to you existing calender, like already suggested by Artjoms Tukums&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 09:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179849#M46523</guid>
      <dc:creator />
      <dc:date>2010-03-15T09:01:31Z</dc:date>
    </item>
    <item>
      <title>How to load the financial year during the load script itself?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179850#M46524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul!&lt;/P&gt;&lt;P&gt;Thanks for your reply! Instead of using the script sent by you I am using another script and getting the required result. May i know will it affects some time later on.&lt;/P&gt;&lt;P&gt;YearName(DATE,0,4) as [FinancialYear1]&lt;/P&gt;&lt;P&gt;// Instead of using the above one. I am using the below one&lt;/P&gt;&lt;P&gt;Date(yearstart(DATE,0,4),'YYYY') as [Fiscal Year]&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Rikab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 10:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179850#M46524</guid>
      <dc:creator />
      <dc:date>2010-03-15T10:50:14Z</dc:date>
    </item>
    <item>
      <title>How to load the financial year during the load script itself?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179851#M46525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Both will give the same result&lt;/P&gt;&lt;P&gt;only difference is in out put&lt;/P&gt;&lt;P&gt;YearName(DATE,0,4) will give 2009-2010&lt;/P&gt;&lt;P&gt;Date(yearstart(DATE,0,4),'YYYY') will give 2009&lt;/P&gt;&lt;P&gt;other wise both are correct for any given date&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 11:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179851#M46525</guid>
      <dc:creator />
      <dc:date>2010-03-15T11:19:55Z</dc:date>
    </item>
    <item>
      <title>How to load the financial year during the load script itself?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179852#M46526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi At,&lt;/P&gt;&lt;P&gt;Using the below function I am getting the required result. Please check and let me know whether I am correct or not. If I am wrong let me know where I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Date(yearstart(DATE,0,4),'YYYY') as [Fiscal Year] // Gives output as 2005,2006&lt;BR /&gt;YearName(DATE,0,4) as [FinancialYear1] // Gives output as 2005-2006,2006-2007&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Rikab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 06:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179852#M46526</guid>
      <dc:creator />
      <dc:date>2010-03-17T06:02:19Z</dc:date>
    </item>
    <item>
      <title>How to load the financial year during the load script itself?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179853#M46527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MdBoer,&lt;/P&gt;&lt;P&gt;I got it done by using the below function. As for your clients financial year starts from april 1st and not in the middle like that way you have mentioned in your example. Please refer and put me your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&amp;lt;pre&amp;gt;Date(yearstart(DATE,0,4),'YYYY') as [Fiscal Year] // Gives output as 2005,2006&lt;BR /&gt;YearName(DATE,0,4) as [FinancialYear1] // Gives output as 2005-2006,2006-2007&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Rikab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 06:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-the-financial-year-during-the-load-script-itself/m-p/179853#M46527</guid>
      <dc:creator />
      <dc:date>2010-03-17T06:06:08Z</dc:date>
    </item>
  </channel>
</rss>

