<?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: Last Fiscal Year comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-Fiscal-Year-comparison/m-p/801415#M282866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the model by Henric. However when I try to get June previous year values, it doesnt seem to work.&lt;/P&gt;&lt;P&gt;Here is my set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;=sum({$&amp;lt;fyear = {$(=Max(fyear)-1)}, fmonth={"6"}, YearMonth = , Quarter=, Year =, Month =, FMonth =, FYear =, Date = &amp;gt;} Amount/1000)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Dec 2014 01:01:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-10T01:01:50Z</dc:date>
    <item>
      <title>Last Fiscal Year comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Fiscal-Year-comparison/m-p/801413#M282864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I just started to build reports in Qlikview and seek some help for the following.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I encountered a small issue while trying to do Year on Year analysis in Qlikview.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I want to show column for June in the previous financial year (i.e June 2014 for 2013/2014 fin year).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I tried to use standard approach which is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;EM&gt;=&lt;STRONG&gt;Sum ({$&amp;lt;FY= {$ (=Max (FY)-1)}, Month = {June} &amp;gt;} Amount)&lt;/STRONG&gt;).&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;However, QlikView does not seem to recognize my FY field as numerical. It works with max (FY) but not with max(FY)-1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I do not have a master calendar. Here are all my date-related fields in the load script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-decoration: underline;"&gt;&lt;EM&gt;Month(Date) as Month,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-decoration: underline;"&gt;&lt;EM&gt;Year(Date) as Year,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-decoration: underline;"&gt;&lt;EM&gt;quarterName(Date) as Quarter,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-decoration: underline;"&gt;&lt;EM&gt;Date(Monthstart(Date), 'MMM-YYYY') as YearMonth,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-decoration: underline;"&gt;&lt;EM&gt;Date(yearstart(Date,0,7),'YYYY') as FY,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-decoration: underline;"&gt;&lt;EM&gt;dual(year(addmonths(Date, 1-$(vFirstMonth))) &amp;amp; '/' &amp;amp; right(year(addmonths(Date, 1-$(vFirstMonth)))+1,2), year(addmonths(Date, 1-$(vFirstMonth)))) AS DateFieldFiscalYear,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-decoration: underline;"&gt;&lt;EM&gt;dual('Quarter ' &amp;amp; ceil(month(addmonths(Date, 1-$(vFirstMonth)))/3), ceil(month(addmonths(Date, 1-$(vFirstMonth)))/3)) AS DateFieldFiscalQuarter,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-decoration: underline;"&gt;&lt;EM&gt;num(month(addmonths(Date, 1-$(vFirstMonth))))AS DateFieldFiscalMonth,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks a lot in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 00:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Fiscal-Year-comparison/m-p/801413#M282864</guid>
      <dc:creator />
      <dc:date>2014-12-10T00:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Last Fiscal Year comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Fiscal-Year-comparison/m-p/801414#M282865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3138"&gt;Fiscal Year&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 00:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Fiscal-Year-comparison/m-p/801414#M282865</guid>
      <dc:creator />
      <dc:date>2014-12-10T00:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Last Fiscal Year comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Fiscal-Year-comparison/m-p/801415#M282866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the model by Henric. However when I try to get June previous year values, it doesnt seem to work.&lt;/P&gt;&lt;P&gt;Here is my set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;=sum({$&amp;lt;fyear = {$(=Max(fyear)-1)}, fmonth={"6"}, YearMonth = , Quarter=, Year =, Month =, FMonth =, FYear =, Date = &amp;gt;} Amount/1000)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 01:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Fiscal-Year-comparison/m-p/801415#M282866</guid>
      <dc:creator />
      <dc:date>2014-12-10T01:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Last Fiscal Year comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Fiscal-Year-comparison/m-p/801416#M282867</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: underline;"&gt;=sum({$&amp;lt;fmonth={"6"}, YearMonth = , Quarter=, Year ={$(=Max(Year)), $(=Max(Year) - 1)}, Month =, FMonth =, FYear =, Date = &amp;gt;} Amount/1000)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: underline;"&gt;The above expression gives the 6 th month Amount for 2014 and 2013.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: underline;"&gt;If you want previous year then use this&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: underline;"&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: underline;"&gt;=sum({$&amp;lt;fmonth={"6"}, YearMonth = , Quarter=, Year ={$(=Max(Year) - 1)}, Month =, FMonth =, FYear =, Date = &amp;gt;} Amount/1000)&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: underline;"&gt;Regards,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: underline;"&gt;Jagan.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 03:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Fiscal-Year-comparison/m-p/801416#M282867</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-12-10T03:03:36Z</dc:date>
    </item>
  </channel>
</rss>

