<?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 Does QV support this formula? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Does-QV-support-this-formula/m-p/233512#M85049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also handle it with data. If your data is actually stored as shown, just do something like this during the load using the previous() function.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Year, Revenue, LastYearRevenue&lt;BR /&gt;2007, $100,&lt;BR /&gt;2008, $150, $100&lt;/P&gt;&lt;P&gt;If the revenue is calculated, you could generate an AsOf table to connect things together:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;AsOfYear, YearType, Year&lt;BR /&gt;2008, Current, 2008&lt;BR /&gt;2008, Previous, 2007&lt;BR /&gt;2007, Current, 2007&lt;BR /&gt;2007, Previous, 2006&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;And build a chart something like this (modified for however you calculate Revenue)&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Dimension = AsOfYear&lt;BR /&gt;Revenue = sum({&amp;lt;YearType={'Current'}&amp;gt;} Revenue)&lt;BR /&gt;Rate = Revenue / sum({&amp;lt;YearType={'Previous'}&amp;gt;} Revenue) - 1&lt;/P&gt;&lt;P&gt;Search for "AsOf" on the forum for some examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Oct 2010 00:50:18 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-10-12T00:50:18Z</dc:date>
    <item>
      <title>Does QV support this formula?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-QV-support-this-formula/m-p/233510#M85047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I want to calculate the raise rate like: compare revenue between this year and last year, it looks like this:&lt;/P&gt;&lt;P&gt;Year Revenue Rate&lt;/P&gt;&lt;P&gt;2007 $100 -&lt;/P&gt;&lt;P&gt;2008 $150 50%&lt;/P&gt;&lt;P&gt;How can I achieve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your suggestion. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isaac Li&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 10:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-QV-support-this-formula/m-p/233510#M85047</guid>
      <dc:creator />
      <dc:date>2010-10-11T10:54:02Z</dc:date>
    </item>
    <item>
      <title>Does QV support this formula?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-QV-support-this-formula/m-p/233511#M85048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Isaac,&lt;/P&gt;&lt;P&gt;Having that data is displayed in a pivot table, you can use the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;([Revenue] - below([Revenue])) / below[Revenue]&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Depending on how you have your fields in yart, you may need to use after() ir above() instead of below().&lt;/P&gt;&lt;P&gt;Anyway, look for further documentation in the Reference Manual, Inter-record function()&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 11:18:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-QV-support-this-formula/m-p/233511#M85048</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-10-11T11:18:13Z</dc:date>
    </item>
    <item>
      <title>Does QV support this formula?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-QV-support-this-formula/m-p/233512#M85049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also handle it with data. If your data is actually stored as shown, just do something like this during the load using the previous() function.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Year, Revenue, LastYearRevenue&lt;BR /&gt;2007, $100,&lt;BR /&gt;2008, $150, $100&lt;/P&gt;&lt;P&gt;If the revenue is calculated, you could generate an AsOf table to connect things together:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;AsOfYear, YearType, Year&lt;BR /&gt;2008, Current, 2008&lt;BR /&gt;2008, Previous, 2007&lt;BR /&gt;2007, Current, 2007&lt;BR /&gt;2007, Previous, 2006&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;And build a chart something like this (modified for however you calculate Revenue)&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Dimension = AsOfYear&lt;BR /&gt;Revenue = sum({&amp;lt;YearType={'Current'}&amp;gt;} Revenue)&lt;BR /&gt;Rate = Revenue / sum({&amp;lt;YearType={'Previous'}&amp;gt;} Revenue) - 1&lt;/P&gt;&lt;P&gt;Search for "AsOf" on the forum for some examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 00:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-QV-support-this-formula/m-p/233512#M85049</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-12T00:50:18Z</dc:date>
    </item>
  </channel>
</rss>

