<?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 Financial Year calculation? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Financial-Year-calculation/m-p/378383#M141115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our financial year goes from July 2012 to Jun 2013, so when someone captures a record, they'll put it for the financial year, which is 2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my QV I need to now load the data for the current financial year, but I can't use something like "where Financial_Year = year(now()) + 1" because as soon as it's December moving over to January, the report will start looking for 2014 where it's still supposed to look for 2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sharing a QVD with multiple reports (other people report off of the same data), so I put the where statement on the load thereof in the script section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can format the Where clause to get the current financial year automatically?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2012 09:00:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-16T09:00:43Z</dc:date>
    <item>
      <title>Financial Year calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Financial-Year-calculation/m-p/378383#M141115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our financial year goes from July 2012 to Jun 2013, so when someone captures a record, they'll put it for the financial year, which is 2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my QV I need to now load the data for the current financial year, but I can't use something like "where Financial_Year = year(now()) + 1" because as soon as it's December moving over to January, the report will start looking for 2014 where it's still supposed to look for 2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sharing a QVD with multiple reports (other people report off of the same data), so I put the where statement on the load thereof in the script section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can format the Where clause to get the current financial year automatically?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 09:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Financial-Year-calculation/m-p/378383#M141115</guid>
      <dc:creator />
      <dc:date>2012-08-16T09:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Financial Year calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Financial-Year-calculation/m-p/378384#M141116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where Financial_Year = year(yearstart(today(1),1,7));&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 09:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Financial-Year-calculation/m-p/378384#M141116</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-16T09:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Financial Year calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Financial-Year-calculation/m-p/378385#M141117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I suggest using a lookup table in SQL, something like DayDate, FinancialYear, then in your SQL Statement, do an &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN tblDateLookup AS DL &lt;/P&gt;&lt;P&gt;ON DL.DayDate = YOURTABLE.TransactionDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can do a WHERE statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE DL.FinancialYear = '2014'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should do the trick. Even if you don't want to do it in SQL, do it as an inline table, as a hint, generate your dates and financial years by dragging columns down in excel. Hope this all makes sense,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 09:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Financial-Year-calculation/m-p/378385#M141117</guid>
      <dc:creator />
      <dc:date>2012-08-16T09:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Financial Year calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Financial-Year-calculation/m-p/378386#M141118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would rely on someone manually updating the lookup table and/or excel spreadsheet, plus I'm working off of an already QVD file that gets data sources from more than 1 place (sql/excel etc) and transforms it into an equal playing field (because some people capture financial year 2012/13 and other 13 or even 2013)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion though. I'll try swuehl's method, but I'm not sure how to test it other than waiting 4 months &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 09:44:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Financial-Year-calculation/m-p/378386#M141118</guid>
      <dc:creator />
      <dc:date>2012-08-16T09:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Financial Year calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/Financial-Year-calculation/m-p/378387#M141119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Thanks for the suggestion though. I'll try swuehl's method, but I'm not sure how to test it other than waiting 4 months &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace the today(1) with makedate(2013,1,1) or any other date...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 09:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Financial-Year-calculation/m-p/378387#M141119</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-16T09:49:05Z</dc:date>
    </item>
  </channel>
</rss>

