<?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 year set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-year-set-analysis/m-p/345747#M127885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use set analysis to do a year on year comparison using the below. This works on a normal year eg 2012 but our financial year is 2012/13.&lt;/P&gt;&lt;P&gt;Does anyone know how i can get the previous year so 2011/12?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only (JOINERCalendar.FinancialYear - 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Manisha&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2012 15:01:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-11T15:01:49Z</dc:date>
    <item>
      <title>Previous year set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-set-analysis/m-p/345747#M127885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use set analysis to do a year on year comparison using the below. This works on a normal year eg 2012 but our financial year is 2012/13.&lt;/P&gt;&lt;P&gt;Does anyone know how i can get the previous year so 2011/12?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only (JOINERCalendar.FinancialYear - 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Manisha&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 15:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-set-analysis/m-p/345747#M127885</guid>
      <dc:creator />
      <dc:date>2012-07-11T15:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-set-analysis/m-p/345748#M127886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Date(AddMonths(Date#('2012/12','YYYY/MM'),-12) ,'YYYY/MM')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gives 2011/11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 15:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-set-analysis/m-p/345748#M127886</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-07-11T15:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-set-analysis/m-p/345749#M127887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick response the financial year can be selected so i changed your code to the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; =Date(AddMonths(Date#(JOINERCalendar.FinancialYear,'YYYY/MM'),-12) ,'YYYY/MM')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however if i have 2011/12 selected then the previous year shows as 2010/12 instead of 2010/11?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manisha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 15:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-set-analysis/m-p/345749#M127887</guid>
      <dc:creator />
      <dc:date>2012-07-11T15:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-set-analysis/m-p/345750#M127888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Use like this in dynamic date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; = Date(AddMonths(Today(),-12) ,'YYYY/MM') you will get the 2011 / 07 where Today() replace of your datefield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = Date(AddMonths(Date#('2012/12','YYYY/MM'),-13) ,'YYYY/MM') you will get 2011/ 11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Iyyappan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 15:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-set-analysis/m-p/345750#M127888</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2012-07-11T15:20:49Z</dc:date>
    </item>
  </channel>
</rss>

