<?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: Accumulation sum in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802319#M283214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try straight chart for this it will give good performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Dec 2014 09:16:32 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2014-12-10T09:16:32Z</dc:date>
    <item>
      <title>Accumulation sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802318#M283213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a following data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Year, Country, Sales&lt;/P&gt;&lt;P&gt;2010, USA, 6013&lt;/P&gt;&lt;P&gt;2011, USA, 5295&lt;/P&gt;&lt;P&gt;2012, USA, 5551&lt;/P&gt;&lt;P&gt;2013, USA, 6932&lt;/P&gt;&lt;P&gt;2010, UK, 4512&lt;/P&gt;&lt;P&gt;2011, UK, 3976&lt;/P&gt;&lt;P&gt;2012, UK, 4691&lt;/P&gt;&lt;P&gt;2013, UK, 5276&lt;/P&gt;&lt;P&gt;2010, Japan, 2765&lt;/P&gt;&lt;P&gt;2011, Japan, 2567&lt;/P&gt;&lt;P&gt;2012, Japan, 3111&lt;/P&gt;&lt;P&gt;2013, Japan, 3234&lt;/P&gt;&lt;P&gt;2010, Germany, 4374&lt;/P&gt;&lt;P&gt;2011, Germany, 5673&lt;/P&gt;&lt;P&gt;2012, Germany, 4322&lt;/P&gt;&lt;P&gt;2013, Germany, 7654&lt;/P&gt;&lt;P&gt;2010, France, 4965&lt;/P&gt;&lt;P&gt;2011, France, 5097&lt;/P&gt;&lt;P&gt;2012, France, 5419&lt;/P&gt;&lt;P&gt;2013, France, 5732&lt;/P&gt;&lt;P&gt;2010, Australia, 3966&lt;/P&gt;&lt;P&gt;2011, Australia, 4087&lt;/P&gt;&lt;P&gt;2012, Australia, 2376&lt;/P&gt;&lt;P&gt;2013, Australia, 3784&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I create a new pivot with Year and Country dimensions&lt;/P&gt;&lt;P&gt;I can easily calculate:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sales by Country&lt;/STRONG&gt;&amp;nbsp; &lt;EM&gt;=Sum(Sales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total in country dimension&lt;/STRONG&gt; &lt;EM&gt;=RangeSum(Above(Sum(Sales),0,RowNo()))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;And overall Total&lt;/STRONG&gt; &lt;EM&gt;=RangeSum(Above(TOTAL Sum(Sales), 0, RowNo(TOTAL)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I calculate an overall total by countries? I want full accumulation sum only by countries through the years. This can be easily achieved by swapping dimensions, but this method does not suit me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 09:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802318#M283213</guid>
      <dc:creator />
      <dc:date>2014-12-10T09:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802319#M283214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try straight chart for this it will give good performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 09:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802319#M283214</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-10T09:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802320#M283215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure, if it fullfill your request...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeSum(Above(aggr(Sum(Sales), Country), 0, RowNo(TOTAL)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 09:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802320#M283215</guid>
      <dc:creator>mato32188</dc:creator>
      <dc:date>2014-12-10T09:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802321#M283216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to get Line Chart like this&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik_pic1.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/73109_Qlik_pic1.jpg" style="height: 393px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;But only way i see is to make an espression for each country.&lt;/P&gt;&lt;P&gt;=RangeSum(Above(Sum({&amp;lt;Country={'Australia'}&amp;gt;}Sales),0,RowNo()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 09:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802321#M283216</guid>
      <dc:creator />
      <dc:date>2014-12-10T09:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802322#M283217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case, you can use Year, Country as dimensions and sum(sales) as expression, but mark Full Accumulation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 09:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802322#M283217</guid>
      <dc:creator>mato32188</dc:creator>
      <dc:date>2014-12-10T09:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802323#M283218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it works. &lt;/P&gt;&lt;P&gt;But can i do it without built-in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Accumulation?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 09:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802323#M283218</guid>
      <dc:creator />
      <dc:date>2014-12-10T09:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802324#M283219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, before I copied the wrong expression, I wanted to to say this:&lt;/P&gt;&lt;P&gt;If(IsNull(Above(TOTAL Acc, Count(DISTINCT TOTAL Country))), 0 , Above(TOTAL Acc, Count(DISTINCT TOTAL Country)))+Sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Acc is the name of the expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 10:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802324#M283219</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-12-10T10:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802325#M283220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works! Now I will try to understand how it works ))). Do you think it is easiest way? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 10:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802325#M283220</guid>
      <dc:creator />
      <dc:date>2014-12-10T10:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802326#M283221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably there is a better and easier way, but I don't get how to do it right now. &lt;/P&gt;&lt;P&gt;Martin's solution is the easiest way if you can fit that in your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I suggest will only work if there are the same number countries each year. It takes the last accumulated value 6 rows above (6=Number of countries) and sum the sales of the current row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first IsNull is to check if this is the first value for each country, and sum '0' instead of NULL (NULL+Value = NULL, 0+Value=Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 10:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802326#M283221</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-12-10T10:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802327#M283222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the Alt() function like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alt(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Above(TOTAL Acc, Count(DISTINCT TOTAL Country)), 0&lt;/SPAN&gt;) &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;+ Sum(Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alt : The &lt;SPAN class="Bold"&gt;alt&lt;/SPAN&gt; function returns the first of the parameters that has a valid number representation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 11:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802327#M283222</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2014-12-10T11:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802328#M283223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, it makes the expression much easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 15:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-sum-in-pivot-table/m-p/802328#M283223</guid>
      <dc:creator />
      <dc:date>2014-12-10T15:39:19Z</dc:date>
    </item>
  </channel>
</rss>

