<?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: Calculating Cross-Dimensional Percentage Changes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Cross-Dimensional-Percentage-Changes/m-p/268731#M1188497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikstarter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's quite a challenge for a start &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could maybe use &lt;/P&gt;&lt;P&gt;=aggr((sum(Sales)-above(sum(Sales)))/above(sum(Sales)),Group,Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to keep close to your approach using above function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is working (see attached sample), but using above, the results may depend on sort order.&lt;/P&gt;&lt;P&gt; And using the aggr-function around above, I think the order for above is determined by load order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably there are some other approaches to solve your request, I leave it to others for today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps and have fun,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2011 17:30:44 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-09-16T17:30:44Z</dc:date>
    <item>
      <title>Calculating Cross-Dimensional Percentage Changes</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cross-Dimensional-Percentage-Changes/m-p/268730#M1188496</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'm working on a stacked chart displaying yearly revenue data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So each bar represents the total revenue for a given year and is stacked/built from the revenues of composite businesses in that year. Within the graph, I want to calculate the year-on-year percentage change in total revenues. &lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;I have tried using a code of the form: &lt;/P&gt;&lt;P&gt;=(sum({expression})-above(sum{expression}))/above(sum{expression}).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, because the data is multidimensional, with "Year" being the larger dimension, the "above()" command doesn't work - instead it calculates the percentage difference between businesses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to construct the code so that qlikview overrides (or ignores) the business dimension for the purposes of this calculation only, or should I investigate changes in the expression I am using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 16:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cross-Dimensional-Percentage-Changes/m-p/268730#M1188496</guid>
      <dc:creator />
      <dc:date>2011-09-16T16:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cross-Dimensional Percentage Changes</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cross-Dimensional-Percentage-Changes/m-p/268731#M1188497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikstarter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's quite a challenge for a start &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could maybe use &lt;/P&gt;&lt;P&gt;=aggr((sum(Sales)-above(sum(Sales)))/above(sum(Sales)),Group,Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to keep close to your approach using above function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is working (see attached sample), but using above, the results may depend on sort order.&lt;/P&gt;&lt;P&gt; And using the aggr-function around above, I think the order for above is determined by load order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably there are some other approaches to solve your request, I leave it to others for today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps and have fun,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 17:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cross-Dimensional-Percentage-Changes/m-p/268731#M1188497</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-16T17:30:44Z</dc:date>
    </item>
  </channel>
</rss>

