<?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: Pick the year before in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pick-the-year-before/m-p/387405#M1158527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year={$(=max(Year)-1)}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2013 18:04:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-01-02T18:04:42Z</dc:date>
    <item>
      <title>Pick the year before</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-the-year-before/m-p/387401#M1158523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a straight table that is setup to show Sales Data by customer.&amp;nbsp; I want to do a comparison to last year.&amp;nbsp; So if 2012 is choosen as a filter, I want a column to show sales in 2011.&amp;nbsp; How can I get it to know to subtract a year in that column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 16:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-the-year-before/m-p/387401#M1158523</guid>
      <dc:creator />
      <dc:date>2013-01-02T16:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pick the year before</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-the-year-before/m-p/387402#M1158524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;SPAN class="replyToName" style="font-size: 14px;"&gt;ljames77&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do it by creating a variable for maxyear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly find the attachement of sample qvw&lt;/P&gt;&lt;P&gt;i hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mukram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 17:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-the-year-before/m-p/387402#M1158524</guid>
      <dc:creator />
      <dc:date>2013-01-02T17:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pick the year before</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-the-year-before/m-p/387403#M1158525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a trial version of qlikview so I cannot open your document, any way you can send over the script in an email?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lance H. James, CPA&lt;/P&gt;&lt;P&gt;Director of Finance&lt;/P&gt;&lt;P&gt;The Aspen Brands Company&lt;/P&gt;&lt;P&gt;Kate Aspen · Baby Aspen&lt;/P&gt;&lt;P&gt;678.282.0053 x 777&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="cid:image001.gif@01CDE8E7.62B9DE10"&gt;&lt;/A&gt;&amp;lt;http://www.theaspenbrands.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="cid:image002.gif@01CDE8E7.62B9DE10"&gt;&lt;/A&gt;&amp;lt;http://www.kateaspen.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="cid:image003.gif@01CDE8E7.62B9DE10"&gt;&lt;/A&gt;&amp;lt;http://www.babyaspen.com/&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 17:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-the-year-before/m-p/387403#M1158525</guid>
      <dc:creator />
      <dc:date>2013-01-02T17:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pick the year before</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-the-year-before/m-p/387404#M1158526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Dear &lt;SPAN class="replyToName" style="font-size: 14px;"&gt;ljames77&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;script:&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Country,Sales,Year&lt;/P&gt;&lt;P&gt;US,24000,2010&lt;/P&gt;&lt;P&gt;US,25000,2011&lt;/P&gt;&lt;P&gt;US,10000,2012&lt;/P&gt;&lt;P&gt;UK,40000,2011&lt;/P&gt;&lt;P&gt;UK,50000,2012&lt;/P&gt;&lt;P&gt;SA,1200,2009&lt;/P&gt;&lt;P&gt;SA,15000,2010&lt;/P&gt;&lt;P&gt;SA,1000,2011&lt;/P&gt;&lt;P&gt;SA,25000,2012&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;First create a variable vMaxYear=Max(Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a stright table with following Expressions:.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; first expression:&lt;/P&gt;&lt;P&gt;for current Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =sum({&amp;lt;Year={'$(=VMaxYear)'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; second expression:&lt;/P&gt;&lt;P&gt;for prevoius Year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =sum({&amp;lt;Year={'$(=VMaxYear-1)'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thrid expressions:&lt;/P&gt;&lt;P&gt;&amp;nbsp; diffrence beween the above two year&lt;/P&gt;&lt;P&gt;&amp;nbsp; =Column(1)-Column(2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mukram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 17:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-the-year-before/m-p/387404#M1158526</guid>
      <dc:creator />
      <dc:date>2013-01-02T17:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pick the year before</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-the-year-before/m-p/387405#M1158527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year={$(=max(Year)-1)}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 18:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-the-year-before/m-p/387405#M1158527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-02T18:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pick the year before</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-the-year-before/m-p/387406#M1158528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 18:56:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-the-year-before/m-p/387406#M1158528</guid>
      <dc:creator />
      <dc:date>2013-01-02T18:56:05Z</dc:date>
    </item>
  </channel>
</rss>

