<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/financial-year/m-p/299976#M111111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;brianm10,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your financial year starts in April, you will need to give at least month information, too, otherwise QV can't tell if year 2011 belongs to 2010-2011 or 2011-2012, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use something like&lt;/P&gt;&lt;P&gt;yearname(DATE,0,4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please not the use of a DATE with its numerical representation here, instead of YEAR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a DATE field available, too?&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>Mon, 07 Nov 2011 10:28:18 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-11-07T10:28:18Z</dc:date>
    <item>
      <title>financial year</title>
      <link>https://community.qlik.com/t5/QlikView/financial-year/m-p/299975#M111110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a year field which holds the value '2011'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can change this to 2010-2011 so it reflects the financial year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I have:&amp;nbsp;&amp;nbsp; yearname(YEAR, 0, 4) as FinancialYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is giving me the value '1905-1906' for some reason. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 10:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/financial-year/m-p/299975#M111110</guid>
      <dc:creator />
      <dc:date>2011-11-07T10:07:59Z</dc:date>
    </item>
    <item>
      <title>financial year</title>
      <link>https://community.qlik.com/t5/QlikView/financial-year/m-p/299976#M111111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;brianm10,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your financial year starts in April, you will need to give at least month information, too, otherwise QV can't tell if year 2011 belongs to 2010-2011 or 2011-2012, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use something like&lt;/P&gt;&lt;P&gt;yearname(DATE,0,4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please not the use of a DATE with its numerical representation here, instead of YEAR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a DATE field available, too?&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>Mon, 07 Nov 2011 10:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/financial-year/m-p/299976#M111111</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-07T10:28:18Z</dc:date>
    </item>
    <item>
      <title>financial year</title>
      <link>https://community.qlik.com/t5/QlikView/financial-year/m-p/299977#M111112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a month field but its in the format as 201110.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will I need to change this also?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 11:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/financial-year/m-p/299977#M111112</guid>
      <dc:creator />
      <dc:date>2011-11-07T11:28:56Z</dc:date>
    </item>
    <item>
      <title>financial year</title>
      <link>https://community.qlik.com/t5/QlikView/financial-year/m-p/299978#M111113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I try and convert this field with the following code:&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿﻿﻿﻿﻿﻿date(posting_date, 'MM-YYYY') as Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me the values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dec-1899&lt;/P&gt;&lt;P&gt;Apr-56962﻿&lt;/P&gt;&lt;P&gt;﻿Apr-56592&lt;/P&gt;&lt;P&gt;Apr-56592&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 11:37:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/financial-year/m-p/299978#M111113</guid>
      <dc:creator />
      <dc:date>2011-11-07T11:37:19Z</dc:date>
    </item>
    <item>
      <title>financial year</title>
      <link>https://community.qlik.com/t5/QlikView/financial-year/m-p/299979#M111114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;posting_date is this YearMonth field you just mentioned? It seems it has no underlying numerical date representation, how is posting_date created? Read from a database or have you used a QV function on a DATE field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, if posting_date is just a YearMonth value, you could create a DATE field based on that, e.g. in the script like:&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;makedate(right(posting_date,4),left(posting_date,2),1) as MonthStartDate,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use this MonthStartDate as input to yearname, maybe also in the script &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;makedate(right(posting_date,4),left(posting_date,2),1) as MonthStartDate,&lt;/P&gt;&lt;P&gt;yearname(makedate(right(posting_date,4),left(posting_date,2),1),0,4) as YearName,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FROM ...&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>Mon, 07 Nov 2011 11:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/financial-year/m-p/299979#M111114</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-07T11:45:39Z</dc:date>
    </item>
    <item>
      <title>financial year</title>
      <link>https://community.qlik.com/t5/QlikView/financial-year/m-p/299980#M111115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Its read from a flat file, basically its just test data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently the only values in this field are '20111101', '20111102', '20111103'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So its a concatenation of year/month/day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 11:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/financial-year/m-p/299980#M111115</guid>
      <dc:creator />
      <dc:date>2011-11-07T11:52:30Z</dc:date>
    </item>
    <item>
      <title>financial year</title>
      <link>https://community.qlik.com/t5/QlikView/financial-year/m-p/299981#M111116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these values probably don't match your standard DateFormat set in the script or OS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could read this in as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Date(Date#(FIELD,'YYYYMMDD') as YourDateField,&lt;/P&gt;&lt;P&gt;...&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>Mon, 07 Nov 2011 11:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/financial-year/m-p/299981#M111116</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-07T11:56:09Z</dc:date>
    </item>
    <item>
      <title>financial year</title>
      <link>https://community.qlik.com/t5/QlikView/financial-year/m-p/299982#M111117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that peice of script fixed the issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 12:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/financial-year/m-p/299982#M111117</guid>
      <dc:creator />
      <dc:date>2011-11-07T12:14:08Z</dc:date>
    </item>
  </channel>
</rss>

