<?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: formule rangesum with before in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/formule-rangesum-with-before/m-p/570632#M1111758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;STRONG&gt;After()&lt;/STRONG&gt; with a trick for Desc sort like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=RangeSum(Sum(Amount*-1), After(Sum(Amount*-1),1, NoOfColumns() - ColumnNo()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 10:50:22 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-02-26T10:50:22Z</dc:date>
    <item>
      <title>formule rangesum with before</title>
      <link>https://community.qlik.com/t5/QlikView/formule-rangesum-with-before/m-p/570631#M1111756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have build a formula with the following expression :&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rangesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*-1),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;before&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*-1),1,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ColumnNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The dimension of my pivot table is period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The sort of period is desc. so&amp;nbsp; the newest period is my first column. I have included an example. I have no problem with sort asc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 10:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formule-rangesum-with-before/m-p/570631#M1111756</guid>
      <dc:creator>francisvandergr</dc:creator>
      <dc:date>2014-02-26T10:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: formule rangesum with before</title>
      <link>https://community.qlik.com/t5/QlikView/formule-rangesum-with-before/m-p/570632#M1111758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;STRONG&gt;After()&lt;/STRONG&gt; with a trick for Desc sort like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=RangeSum(Sum(Amount*-1), After(Sum(Amount*-1),1, NoOfColumns() - ColumnNo()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 10:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formule-rangesum-with-before/m-p/570632#M1111758</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-02-26T10:50:22Z</dc:date>
    </item>
  </channel>
</rss>

