<?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 get acumulative values in a expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/get-acumulative-values-in-a-expression/m-p/241724#M92117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;Anybody know how to get acumulative values in a expression but not using expression's acumulative options but from the expression, i.e: getting acumulative sales by periods. It would be something like "=Sum(SALES)" with "PERIOD" as dimension but addin or changing something else in order to get acumulative sales by period.&lt;/P&gt;&lt;P&gt;Thanks again for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Aug 2010 22:05:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-04T22:05:46Z</dc:date>
    <item>
      <title>get acumulative values in a expression</title>
      <link>https://community.qlik.com/t5/QlikView/get-acumulative-values-in-a-expression/m-p/241724#M92117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;Anybody know how to get acumulative values in a expression but not using expression's acumulative options but from the expression, i.e: getting acumulative sales by periods. It would be something like "=Sum(SALES)" with "PERIOD" as dimension but addin or changing something else in order to get acumulative sales by period.&lt;/P&gt;&lt;P&gt;Thanks again for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 22:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-acumulative-values-in-a-expression/m-p/241724#M92117</guid>
      <dc:creator />
      <dc:date>2010-08-04T22:05:46Z</dc:date>
    </item>
    <item>
      <title>get acumulative values in a expression</title>
      <link>https://community.qlik.com/t5/QlikView/get-acumulative-values-in-a-expression/m-p/241725#M92118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand your question, something like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;// create new table with all distinct periods&lt;BR /&gt;// this approach is faster than using LOAD DISTINCT&lt;BR /&gt;AsOf:&lt;BR /&gt;LOAD fieldvalue('Period',iterno()) as Period&lt;BR /&gt;AUTOGENERATE 1&lt;BR /&gt;WHILE len(fieldvalue('Period',iterno()))&lt;BR /&gt;;&lt;BR /&gt;// join every Period to every AsOfPeriod&lt;BR /&gt;LEFT JOIN (AsOf)&lt;BR /&gt;LOAD Period as AsOfPeriod&lt;BR /&gt;RESIDENT AsOf&lt;BR /&gt;;&lt;BR /&gt;// remove future periods&lt;BR /&gt;INNER JOIN (AsOf)&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT AsOf&lt;BR /&gt;WHERE Period &amp;lt;= AsOfPeriod&lt;BR /&gt;;&lt;BR /&gt;// each AsOfPeriod is now linked to the current and previous periods&lt;/P&gt;&lt;P&gt;Then use AsOfPeriod as the dimension instead of Period, and a plain old sum(Sales) as your expression. All the magic to do the accumulation happens as a result of the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 22:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-acumulative-values-in-a-expression/m-p/241725#M92118</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-08-04T22:35:01Z</dc:date>
    </item>
  </channel>
</rss>

