<?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 Fisical Year Display in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fisical-Year-Display/m-p/188363#M504245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like Fiscal Year to be displayed between the ranges below. Currently this script does nothing and only displays the calendar years I already have scripted. Maybe I missing the proper syntax.&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;FisicalYear:&lt;BR /&gt;MAPPING LOAD * Inline [&lt;BR /&gt;invoice_date, Year&lt;BR /&gt;(10/31/2009 - 11/01/2010), 2010,&lt;BR /&gt;(10/31/2008 - 11/01/2009), 2009,&lt;BR /&gt;(10/31/2007 - 11/01/2008), 2008,&lt;BR /&gt;(10/31/2006 - 11/01/2007), 2007,&lt;BR /&gt;(10/31/2005 - 11/01/2006), 2006,&lt;BR /&gt;(10/31/2004 - 11/01/2005), 2005,&lt;BR /&gt;(10/31/2003 - 11/01/2004), 2004,&lt;BR /&gt;(10/31/2002 - 11/01/2003), 2003,&lt;BR /&gt;(10/31/2001 - 11/01/2002), 2002,&lt;BR /&gt;]&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried the below solution I found on the forums.&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;[Fiscal Calendar]:&lt;BR /&gt;LOAD date(date#(20061231,'YYYYMMDD')+recno(),'MM/DD/YY') as "invoice_date"&lt;BR /&gt;AUTOGENERATE today()-date#(20061231,'YYYYMMDD')&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN ([Fiscal Calendar])&lt;BR /&gt;LOAD&lt;BR /&gt; "invoice_date"&lt;BR /&gt;,date(monthstart(invoice_date),'MMM YY') as "Month Fisical"&lt;BR /&gt;,date(yearstart(invoice_date),'YYYY') as "Calendar Year"&lt;BR /&gt;,date(yearstart(invoice_date,0,4),'YYYY') as "Fiscal Year"&lt;BR /&gt;RESIDENT [Fiscal Calendar]&lt;BR /&gt;;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This solution worked better but not all my invoice_dates are showing up. My invoice_date values from the database show up in the YYYY-MM-DD TT:TT:TT.TTT format. I would say it is was a date format conversion issue but the above code 'YYYYMMDD' does convert SOME of the date values correctly and others it does not convert and thus are not displayed. I do not understand why and can not find a pattern.&lt;/P&gt;&lt;P&gt;Thanks for any help on the above or other methods of doing this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Dec 2009 22:50:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-15T22:50:45Z</dc:date>
    <item>
      <title>Fisical Year Display</title>
      <link>https://community.qlik.com/t5/QlikView/Fisical-Year-Display/m-p/188363#M504245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like Fiscal Year to be displayed between the ranges below. Currently this script does nothing and only displays the calendar years I already have scripted. Maybe I missing the proper syntax.&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;FisicalYear:&lt;BR /&gt;MAPPING LOAD * Inline [&lt;BR /&gt;invoice_date, Year&lt;BR /&gt;(10/31/2009 - 11/01/2010), 2010,&lt;BR /&gt;(10/31/2008 - 11/01/2009), 2009,&lt;BR /&gt;(10/31/2007 - 11/01/2008), 2008,&lt;BR /&gt;(10/31/2006 - 11/01/2007), 2007,&lt;BR /&gt;(10/31/2005 - 11/01/2006), 2006,&lt;BR /&gt;(10/31/2004 - 11/01/2005), 2005,&lt;BR /&gt;(10/31/2003 - 11/01/2004), 2004,&lt;BR /&gt;(10/31/2002 - 11/01/2003), 2003,&lt;BR /&gt;(10/31/2001 - 11/01/2002), 2002,&lt;BR /&gt;]&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried the below solution I found on the forums.&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;[Fiscal Calendar]:&lt;BR /&gt;LOAD date(date#(20061231,'YYYYMMDD')+recno(),'MM/DD/YY') as "invoice_date"&lt;BR /&gt;AUTOGENERATE today()-date#(20061231,'YYYYMMDD')&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN ([Fiscal Calendar])&lt;BR /&gt;LOAD&lt;BR /&gt; "invoice_date"&lt;BR /&gt;,date(monthstart(invoice_date),'MMM YY') as "Month Fisical"&lt;BR /&gt;,date(yearstart(invoice_date),'YYYY') as "Calendar Year"&lt;BR /&gt;,date(yearstart(invoice_date,0,4),'YYYY') as "Fiscal Year"&lt;BR /&gt;RESIDENT [Fiscal Calendar]&lt;BR /&gt;;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This solution worked better but not all my invoice_dates are showing up. My invoice_date values from the database show up in the YYYY-MM-DD TT:TT:TT.TTT format. I would say it is was a date format conversion issue but the above code 'YYYYMMDD' does convert SOME of the date values correctly and others it does not convert and thus are not displayed. I do not understand why and can not find a pattern.&lt;/P&gt;&lt;P&gt;Thanks for any help on the above or other methods of doing this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 22:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fisical-Year-Display/m-p/188363#M504245</guid>
      <dc:creator />
      <dc:date>2009-12-15T22:50:45Z</dc:date>
    </item>
    <item>
      <title>Fisical Year Display</title>
      <link>https://community.qlik.com/t5/QlikView/Fisical-Year-Display/m-p/188364#M504246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was a date format issue I just the below in my SQL.&lt;/P&gt;&lt;P&gt;CONVERT(varchar(23),invoice_date,101) AS invoice_date,&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(invoice_date,0,3),'YYYY') as "Fiscal Year"&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The 11 value displays how many months 'in' the year you want to be.&lt;/P&gt;&lt;P&gt;...sometimes I enjoy answering my own questions.&lt;/P&gt;&lt;P&gt;Hopefully this will help someone else someday.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 23:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fisical-Year-Display/m-p/188364#M504246</guid>
      <dc:creator />
      <dc:date>2009-12-15T23:40:51Z</dc:date>
    </item>
  </channel>
</rss>

