<?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: Iterative Year vs Prior Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Iterative-Year-vs-Prior-Year/m-p/658892#M1071835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this by using set analysis, for current year sales&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={'$(=Max(Year))'}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;and for previous year sales &lt;/P&gt;&lt;P&gt;sum(&amp;lt;Year={'$(=Max(Year)-1)'}&amp;gt;sales)&lt;/P&gt;&lt;P&gt;hope this will help you..&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;bhawna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2014 05:36:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-12T05:36:41Z</dc:date>
    <item>
      <title>Iterative Year vs Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Iterative-Year-vs-Prior-Year/m-p/658890#M1071830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a scenario.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In the sample table below, I need to show the&amp;nbsp; sales by year…&amp;nbsp;&amp;nbsp;&amp;nbsp; And for each year, I need to show the last yr and last 2nd year sales for that year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;For example in 2014, &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Current Year = 2014 Sales &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Last Year = 2013 Sales &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;Current Year = 2013 Sales &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Last Year = 2012 Sales &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive-pre"&gt;&lt;CODE&gt;&lt;SPAN class="diff-add"&gt; |----------2013------------|---------2014-------------|&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class="jive-pre"&gt;&lt;CODE&gt;&lt;SPAN class="diff-add"&gt; | Last Year | Current Year | Last Year | Current Year | &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ive tried but when i nest them under a year dimension.. the calculations are not working..&lt;/P&gt;&lt;P&gt;is there a way around this, to come up with this kind of report format? our user is very particular in having such format..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using an existing model and are not allowed to do any modifications so are options are limited to report calculations, expression or set analysis..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 03:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Iterative-Year-vs-Prior-Year/m-p/658890#M1071830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-12T03:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Year vs Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Iterative-Year-vs-Prior-Year/m-p/658891#M1071832</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;Have a look at attached application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 05:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Iterative-Year-vs-Prior-Year/m-p/658891#M1071832</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-08-12T05:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Year vs Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Iterative-Year-vs-Prior-Year/m-p/658892#M1071835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this by using set analysis, for current year sales&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={'$(=Max(Year))'}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;and for previous year sales &lt;/P&gt;&lt;P&gt;sum(&amp;lt;Year={'$(=Max(Year)-1)'}&amp;gt;sales)&lt;/P&gt;&lt;P&gt;hope this will help you..&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;bhawna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 05:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Iterative-Year-vs-Prior-Year/m-p/658892#M1071835</guid>
      <dc:creator />
      <dc:date>2014-08-12T05:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Year vs Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Iterative-Year-vs-Prior-Year/m-p/658893#M1071836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi asfhaq,, thanks for it... very interesting,, i used it a reference..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Bhawna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; thanks for this.. This calculation is working... but when i nest them under a year dimension, they no longer work...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; is there a way to revise this calculation where in it will pickup the iterate value of the year column on top of it.. and use that to compute for the current and previous yr... ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 09:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Iterative-Year-vs-Prior-Year/m-p/658893#M1071836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-12T09:01:31Z</dc:date>
    </item>
  </channel>
</rss>

