<?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 Re: Current vs. Previous Fiscal Year Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Fiscal-Year-Expression/m-p/663362#M241655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, happy to help&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2014 08:55:48 GMT</pubDate>
    <dc:creator>c_gilbert</dc:creator>
    <dc:date>2014-07-29T08:55:48Z</dc:date>
    <item>
      <title>Current vs. Previous Fiscal Year Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Fiscal-Year-Expression/m-p/663359#M241652</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;With a little help from the Qlikview community, I have managed to create some variables for the years to be used for labelling, these are;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCurrentYear = Cal_FiscalYear&lt;/P&gt;&lt;P&gt;vPreviousYear = num(left(MaxString(Cal_FiscalYear),4)-1)&amp;amp;'/'&amp;amp;num(right(MaxString(Cal_FiscalYear),4)-1,'00')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;However, my issue now is that I'm struggling to do any calculations based on current year and previous year (I want to look at volume for the selected year vs. volume for selected year minus 1) . My variables don't seem to work in calculations, and I've tried all sorts of set analysis but can't seem to get anythgin to work. I seemt o be able to get the selected year calculation to work ok, but can't get any set analysis around year-1 to bring back any data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any guidance much appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 11:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Fiscal-Year-Expression/m-p/663359#M241652</guid>
      <dc:creator>danielle_v</dc:creator>
      <dc:date>2014-07-28T11:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs. Previous Fiscal Year Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Fiscal-Year-Expression/m-p/663360#M241653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This is the set analysis we use for the previous year:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt; ({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year_Fiscal&lt;/SPAN&gt; = {'$(vPreviousFiscalYear)'} &amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Op Activity Count]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 11:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Fiscal-Year-Expression/m-p/663360#M241653</guid>
      <dc:creator>c_gilbert</dc:creator>
      <dc:date>2014-07-28T11:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs. Previous Fiscal Year Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Fiscal-Year-Expression/m-p/663361#M241654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked perfectly... many thanks for helping me out again!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 08:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Fiscal-Year-Expression/m-p/663361#M241654</guid>
      <dc:creator>danielle_v</dc:creator>
      <dc:date>2014-07-29T08:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs. Previous Fiscal Year Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Fiscal-Year-Expression/m-p/663362#M241655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, happy to help&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 08:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Fiscal-Year-Expression/m-p/663362#M241655</guid>
      <dc:creator>c_gilbert</dc:creator>
      <dc:date>2014-07-29T08:55:48Z</dc:date>
    </item>
  </channel>
</rss>

