<?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 Previous Fiscal Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Fiscal-Year/m-p/654416#M239116</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;&lt;/P&gt;&lt;P&gt;I am doing some analysis using a fiscal calendar where the years are formatted as 2013/2014, 2014/2015 etc. These have been loaded into the script using the dual function, so each fiscal year also has a numeric value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I'm facing is that I need to create variables for current and previous year. The current year variable (=Fiscal_Year) works fine, and correctly returns the year formatted as yyyy/yyyy in a textbox. However, I'm struggling to get the previous year variable to work in the same way. I've set the variable as =Fiscal_Year-1, this returns the correct numeric value for the fical year, but I can;t get it to return in the text box in the required yyyy/yyyy format. I've tried adding text() around the statement, but to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help greatly appreicated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2014 14:01:53 GMT</pubDate>
    <dc:creator>danielle_v</dc:creator>
    <dc:date>2014-07-25T14:01:53Z</dc:date>
    <item>
      <title>Previous Fiscal Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Fiscal-Year/m-p/654416#M239116</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;&lt;/P&gt;&lt;P&gt;I am doing some analysis using a fiscal calendar where the years are formatted as 2013/2014, 2014/2015 etc. These have been loaded into the script using the dual function, so each fiscal year also has a numeric value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I'm facing is that I need to create variables for current and previous year. The current year variable (=Fiscal_Year) works fine, and correctly returns the year formatted as yyyy/yyyy in a textbox. However, I'm struggling to get the previous year variable to work in the same way. I've set the variable as =Fiscal_Year-1, this returns the correct numeric value for the fical year, but I can;t get it to return in the text box in the required yyyy/yyyy format. I've tried adding text() around the statement, but to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help greatly appreicated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 14:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Fiscal-Year/m-p/654416#M239116</guid>
      <dc:creator>danielle_v</dc:creator>
      <dc:date>2014-07-25T14:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Fiscal Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Fiscal-Year/m-p/654417#M239117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the code we use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vPreviousFiscalYear:&lt;/P&gt;&lt;P&gt;=num(left(MaxString(Year_Fiscal),4)-1)&amp;amp;'-'&amp;amp;num(right(MaxString(Year_Fiscal),2)-1,'00')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 14:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Fiscal-Year/m-p/654417#M239117</guid>
      <dc:creator>c_gilbert</dc:creator>
      <dc:date>2014-07-25T14:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Fiscal Year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Fiscal-Year/m-p/654418#M239118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Charlotte, this has done the trick perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 15:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Fiscal-Year/m-p/654418#M239118</guid>
      <dc:creator>danielle_v</dc:creator>
      <dc:date>2014-07-25T15:19:14Z</dc:date>
    </item>
  </channel>
</rss>

