<?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 Cumulative sum with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-with-set-analysis/m-p/224340#M76764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ichark, how about using above() function?&lt;/P&gt;&lt;P&gt;What I say is, if is the first row, your cumullative is the first sum value, otherwise you have to sum the current value with the above value.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Something like this (untested), please add your set analysis stuff :&lt;/P&gt;&lt;P&gt;if ( rowno() = 1, sum( debits magasin), sum(debits magasin) + above (sum(debits magasin)) )&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Dec 2010 03:12:52 GMT</pubDate>
    <dc:creator>marcel_olmo</dc:creator>
    <dc:date>2010-12-17T03:12:52Z</dc:date>
    <item>
      <title>Cumulative sum with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-with-set-analysis/m-p/224339#M76763</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 have a table that contains the following data:&lt;/P&gt;&lt;P&gt;year month Code_mag debit&lt;/P&gt;&lt;P&gt;2010 09 100 100&lt;/P&gt;&lt;P&gt;2009 09 111 200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2010 08 100 300&lt;/P&gt;&lt;P&gt;2009 08 111 400&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;....&lt;/P&gt;&lt;P&gt;i have a pivot table that calculates the cumul debit .&lt;/P&gt;&lt;P&gt;so when i select for example in my calendar month 09 and Year 2010 ; i have to calculate the cumul sum when month &amp;lt;= selected month&lt;/P&gt;&lt;P&gt;i dont have a problem for 2010 and the expression is:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt; Mois = {'&amp;lt;=$(vMois)'}&amp;gt;} [Debit_Mag.Nombre de Débits Magasin])&lt;/P&gt;&lt;P&gt;vMois =GetselectedField(Mois)&lt;/P&gt;&lt;P&gt;my problem is when i want to calculate the cumul sum of (Year -1)&lt;/P&gt;&lt;P&gt;the expression (SUM( { $&amp;lt;Année={$(=Only(Année)-1) } &amp;gt; {&amp;lt; Mois = {'&amp;lt;=$(vMois)'}&amp;gt;} [Debit_Mag.Nombre de Débits Magasin])) dont work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas ???&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 17:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum-with-set-analysis/m-p/224339#M76763</guid>
      <dc:creator />
      <dc:date>2010-12-15T17:04:44Z</dc:date>
    </item>
    <item>
      <title>Cumulative sum with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-with-set-analysis/m-p/224340#M76764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ichark, how about using above() function?&lt;/P&gt;&lt;P&gt;What I say is, if is the first row, your cumullative is the first sum value, otherwise you have to sum the current value with the above value.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Something like this (untested), please add your set analysis stuff :&lt;/P&gt;&lt;P&gt;if ( rowno() = 1, sum( debits magasin), sum(debits magasin) + above (sum(debits magasin)) )&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 03:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum-with-set-analysis/m-p/224340#M76764</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-12-17T03:12:52Z</dc:date>
    </item>
    <item>
      <title>Cumulative sum with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-with-set-analysis/m-p/224341#M76765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Marcel. It helped me a lot today. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Piskitta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 09:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum-with-set-analysis/m-p/224341#M76765</guid>
      <dc:creator />
      <dc:date>2011-12-21T09:42:07Z</dc:date>
    </item>
  </channel>
</rss>

