<?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 Accumulation in Bar Chart &amp; using Total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207495#M63230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have created a stacked bar chart where I want to show what the share of products sold is each month.&lt;BR /&gt;This works well when doing it for discrete months (eg. in month 1 40% of all volumes sold was Product A &amp;amp; 60% Product B) using 'total &amp;lt;month&amp;gt;'.&lt;/P&gt;&lt;P&gt;Now I would like to do the same thing but using full acumulation so that the chart displays in month 2 what the share was in month 1+2 accumulated. This sounds easy, but I just can't get my head around it...&lt;/P&gt;&lt;P&gt;Any help much appreciated! (It's the chart on the bottom in the file).&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jan 2010 14:13:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-11T14:13:18Z</dc:date>
    <item>
      <title>Accumulation in Bar Chart &amp; using Total</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207495#M63230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have created a stacked bar chart where I want to show what the share of products sold is each month.&lt;BR /&gt;This works well when doing it for discrete months (eg. in month 1 40% of all volumes sold was Product A &amp;amp; 60% Product B) using 'total &amp;lt;month&amp;gt;'.&lt;/P&gt;&lt;P&gt;Now I would like to do the same thing but using full acumulation so that the chart displays in month 2 what the share was in month 1+2 accumulated. This sounds easy, but I just can't get my head around it...&lt;/P&gt;&lt;P&gt;Any help much appreciated! (It's the chart on the bottom in the file).&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 14:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207495#M63230</guid>
      <dc:creator />
      <dc:date>2010-01-11T14:13:18Z</dc:date>
    </item>
    <item>
      <title>Accumulation in Bar Chart &amp; using Total</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207496#M63231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks to me like it works like it should ...&lt;/P&gt;&lt;P&gt;Each percentage is calculated agains the cumulative total.&lt;/P&gt;&lt;P&gt;I changed the percentages back to actual numbers and than you see it works (as far as I can tell)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 17:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207496#M63231</guid>
      <dc:creator />
      <dc:date>2010-01-11T17:56:09Z</dc:date>
    </item>
    <item>
      <title>Accumulation in Bar Chart &amp; using Total</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207497#M63232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark,&lt;/P&gt;&lt;P&gt;the chart would work for me if I were looking for the percentage of products sold over the total period of time.&lt;BR /&gt;What I'm looking for though is a chart that shows the cumulated share... below maybe a better example to illustrate:&lt;/P&gt;&lt;P&gt;The cells highlighted in yellow and the chart below is what I'm trying to achieve in QV.&lt;/P&gt;&lt;P&gt;If we look at month 2 of the chart it reads as follows: Of all products sold in month1 &lt;STRONG&gt;and month 2&lt;/STRONG&gt; 25% of the quantities have been product A and 75% product B.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6052.share4.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6052.share4.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/1273.share3.JPG"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/1777.share2.JPG"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 08:44:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207497#M63232</guid>
      <dc:creator />
      <dc:date>2010-01-12T08:44:07Z</dc:date>
    </item>
    <item>
      <title>Accumulation in Bar Chart &amp; using Total</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207498#M63233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a similar problem, which could be solved by using:&lt;/P&gt;&lt;P&gt;rangesum(above(sum(x),0,rowno(TOTAL)))/rangesum(above(sum(y),0,rowno(TOTAL)))&lt;/P&gt;&lt;P&gt;In your case should be something like:&lt;/P&gt;&lt;P&gt;A: rangesum(above(sum(A),0,rowno(TOTAL))) / (rangesum(above(sum(A),0,rowno(TOTAL))) + rangesum(above(sum(B),0,rowno(TOTAL))) )&lt;/P&gt;&lt;P&gt;B: rangesum(above(sum(B),0,rowno(TOTAL))) / rangesum(above(sum(A),0,rowno(TOTAL))) + rangesum(above(sum(B),0,rowno(TOTAL))) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 12:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207498#M63233</guid>
      <dc:creator />
      <dc:date>2010-02-08T12:19:42Z</dc:date>
    </item>
    <item>
      <title>Accumulation in Bar Chart &amp; using Total</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207499#M63234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this is heading into the direction I'm currently on. I managed to get it to work with a Pivot Table last week.&lt;/P&gt;&lt;P&gt;rangesum(before(SUM(QV_QTY),0,ColumnNo()))&lt;BR /&gt;/&lt;BR /&gt;rangesum(before(SUM(TOTAL &amp;lt;LWEEK&amp;gt;QV_QTY),0,ColumnNo()))&lt;/P&gt;&lt;P&gt;QV_QTY is the expression, LWEEK the time dimension.&lt;/P&gt;&lt;P&gt;Unfortunately this code does not work with a bar chart... I'm thinking of the moment if set analysis could be of help here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 12:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207499#M63234</guid>
      <dc:creator />
      <dc:date>2010-02-08T12:48:59Z</dc:date>
    </item>
    <item>
      <title>Accumulation in Bar Chart &amp; using Total</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207500#M63235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the expression on a line-chart, which worked for me. A line/bar-chart is nothing more than a straight table, so when is works on a straight table, it will work for the chart as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 12:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207500#M63235</guid>
      <dc:creator />
      <dc:date>2010-02-08T12:57:22Z</dc:date>
    </item>
    <item>
      <title>Accumulation in Bar Chart &amp; using Total</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207501#M63236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the issue is the dimensionality - with one dimension (time) it works, with two dimensions (time, product) it doesn't.&lt;/P&gt;&lt;P&gt;I can get it to work with two dimensions in a pivot or straight table, but changing the chart type to bar or line chart also changes the sorting order and I can't get it to show correctly.&lt;/P&gt;&lt;P&gt;I've attached an example where it works in a straight table.. maybe I'm just missing something, if you could get the data from the straight table to show in a stacked bar chart it would make my Monday great... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 13:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207501#M63236</guid>
      <dc:creator />
      <dc:date>2010-02-08T13:33:51Z</dc:date>
    </item>
    <item>
      <title>Accumulation in Bar Chart &amp; using Total</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207502#M63237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I poked at it a while and failed. If your data set is smallish, it could probably be solved with a fake month disconnected from your actual data. Then:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum( if(Month&amp;lt;=FakeMonth,Quantity))&lt;BR /&gt;/sum(total if(Month&amp;lt;=FakeMonth,Quantity))&lt;/P&gt;&lt;P&gt;Or something like that. I can't test it because I can't run your script because you used an Excel spreadsheet instead of inline loads.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 02:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207502#M63237</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-02-11T02:11:47Z</dc:date>
    </item>
    <item>
      <title>Accumulation in Bar Chart &amp; using Total</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207503#M63238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John, what an excellent idea to use a disconnected data set!&lt;/P&gt;&lt;P&gt;The formula that does the job finally is:&lt;/P&gt;&lt;P&gt;sum(if(FakeMonth&amp;gt;=Month,Quantity)) /&lt;BR /&gt;sum(TOTAL &amp;lt;FakeMonth&amp;gt; if(FakeMonth&amp;gt;=Month,Quantity))&lt;/P&gt;&lt;P&gt;(That's actually even less complicated than using above() etc.)&lt;/P&gt;&lt;P&gt;Please see the solution below if you're interested (with inline data)&lt;/P&gt;&lt;P&gt;Cheers, Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 10:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207503#M63238</guid>
      <dc:creator />
      <dc:date>2010-02-11T10:08:25Z</dc:date>
    </item>
    <item>
      <title>Accumulation in Bar Chart &amp; using Total</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207504#M63239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, glad it worked. Disconnected data sets are a very common solution in QlikView. They can cause performance problems when you have a lot of data, and selections can be a little strange since sometimes you're selecting a fake field, and sometimes you're selecting a real field, so it doesn't always behave as intended. But it's a cheap and easy solution, so it tends to get used.&lt;/P&gt;&lt;P&gt;Anyway, if it scales up to your real application, I'd say you're good. If you find it isn't working well enough for you, I'd suggest posting again, and we'll try to find a higher-performance and/or more robust approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 19:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Bar-Chart-using-Total/m-p/207504#M63239</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-02-11T19:06:02Z</dc:date>
    </item>
  </channel>
</rss>

