<?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 Growth% Sales calculation with time dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Growth-Sales-calculation-with-time-dimension/m-p/170783#M41061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's start by simplifying a bit. (A-B)/B = A/B - 1, so we won't have to repeat the expression for B. Then honestly, I'd probably write a separate "expression" for each field in the group, because I'm not thinking of any way to do Time-1 other than separating it out. Are they selecting a specific Year, Quarter or Month? Assuming they are, maybe something like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;pick(match(getcurrentfield(Time),'Year','Quarter','Month')&lt;BR /&gt; ,sum({&amp;lt;Year={'$(=Year-1)'}&amp;gt;} Sales)&lt;BR /&gt; ,sum({&amp;lt;Quarter={ however you define the previous quarter }&amp;gt;} Sales)&lt;BR /&gt; ,sum({&amp;lt;Month={ however you define the previous month }&amp;gt;} Sales))&lt;BR /&gt; /sum(Sales) - 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Nov 2010 22:52:08 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-11-03T22:52:08Z</dc:date>
    <item>
      <title>Growth% Sales calculation with time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Sales-calculation-with-time-dimension/m-p/170782#M41060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!, I want to calculate the growht% of sales between months or quarters or years in a pivot table.&lt;/P&gt;&lt;P&gt;(SalesFromPreviousSelectionTimeDimension-SalesFromCurrentTimeDimension)/SalesFromCurrenttimeDimension&lt;/P&gt;&lt;P&gt;I've seen the use of Set Analysis to apply this, but my question is if I can use a time cycle group that I created to dynamicaly calculate the growth depending on the level heriarchy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My time cycle group is a standard one called Time:&lt;/P&gt;&lt;P&gt;-Year&lt;/P&gt;&lt;P&gt;-Quarter&lt;/P&gt;&lt;P&gt;-Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question if somehow I can come up with an expression that uses this group in the pivot table&lt;/P&gt;&lt;P&gt;((${&amp;lt;Time=-1&amp;gt;}Sales-${&amp;lt;Time&amp;gt;})Sales)/${&amp;lt;Time&amp;gt;}Sales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 17:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Sales-calculation-with-time-dimension/m-p/170782#M41060</guid>
      <dc:creator />
      <dc:date>2010-11-03T17:12:01Z</dc:date>
    </item>
    <item>
      <title>Growth% Sales calculation with time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Sales-calculation-with-time-dimension/m-p/170783#M41061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's start by simplifying a bit. (A-B)/B = A/B - 1, so we won't have to repeat the expression for B. Then honestly, I'd probably write a separate "expression" for each field in the group, because I'm not thinking of any way to do Time-1 other than separating it out. Are they selecting a specific Year, Quarter or Month? Assuming they are, maybe something like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;pick(match(getcurrentfield(Time),'Year','Quarter','Month')&lt;BR /&gt; ,sum({&amp;lt;Year={'$(=Year-1)'}&amp;gt;} Sales)&lt;BR /&gt; ,sum({&amp;lt;Quarter={ however you define the previous quarter }&amp;gt;} Sales)&lt;BR /&gt; ,sum({&amp;lt;Month={ however you define the previous month }&amp;gt;} Sales))&lt;BR /&gt; /sum(Sales) - 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 22:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Sales-calculation-with-time-dimension/m-p/170783#M41061</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-03T22:52:08Z</dc:date>
    </item>
    <item>
      <title>Growth% Sales calculation with time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Sales-calculation-with-time-dimension/m-p/170784#M41062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!,&lt;/P&gt;&lt;P&gt;I also stumbled upon the "before" function that helps me calculate this too!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 00:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Sales-calculation-with-time-dimension/m-p/170784#M41062</guid>
      <dc:creator />
      <dc:date>2010-11-04T00:22:08Z</dc:date>
    </item>
    <item>
      <title>Growth% Sales calculation with time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-Sales-calculation-with-time-dimension/m-p/170785#M41063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks for referencing the 'Before' function - it works very cleanly in a less complex pivot table&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;by adding the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Growth%=Sum(Sales)/Before(sum(Sales))-1 &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 18:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-Sales-calculation-with-time-dimension/m-p/170785#M41063</guid>
      <dc:creator />
      <dc:date>2011-06-28T18:47:41Z</dc:date>
    </item>
  </channel>
</rss>

