<?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: Yearly Value by Historic Years Automatically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Yearly-Value-by-Historic-Years-Automatically/m-p/417010#M491397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year={$(=Year(Today())-X)}&amp;gt;} [Invoice Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where X represents how many years you want to subtract from today.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2012 10:05:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-09-18T10:05:44Z</dc:date>
    <item>
      <title>Yearly Value by Historic Years Automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Value-by-Historic-Years-Automatically/m-p/417009#M491396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I calculate a value for spend by customers and compare against historic figures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set expression for each year at the moment &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Year={'2012'}&amp;gt;}[Invoice Value])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Year={'2011'}&amp;gt;}[Invoice Value])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Year={'2010'}&amp;gt;}[Invoice Value])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to fix this in permanently rather than adding one each year going forward, for example using Year=(vToday)-1 , -2, -3, -4 etc for the past 5 years for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 10:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Value-by-Historic-Years-Automatically/m-p/417009#M491396</guid>
      <dc:creator />
      <dc:date>2012-09-18T10:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly Value by Historic Years Automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Value-by-Historic-Years-Automatically/m-p/417010#M491397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year={$(=Year(Today())-X)}&amp;gt;} [Invoice Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where X represents how many years you want to subtract from today.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 10:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Value-by-Historic-Years-Automatically/m-p/417010#M491397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-18T10:05:44Z</dc:date>
    </item>
  </channel>
</rss>

