<?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: Aggr &amp; Rangesum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098775#M522241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very close. The formula is already correct. Is there a possibility to show 50 wen e.g. June 2016 is collapsed? And 110 when 2016 is collapsed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jun 2016 13:00:01 GMT</pubDate>
    <dc:creator>carolin01</dc:creator>
    <dc:date>2016-06-13T13:00:01Z</dc:date>
    <item>
      <title>Aggr &amp; Rangesum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098767#M522233</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;If the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rangesum(Above(sum({$&amp;lt;OrderPhase_Desc = {'Revenue'}&amp;gt;}NettAmount$(vCurrency)), 0,rowno())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that I use it in a Pivot table having three dimensions: FYear, FPYearDesc and Transaction Date. What I want is that the Rangesum calculates the sum only within a FPYearDesc (means a period). Or in other words an aggregation within one month like this:&lt;/P&gt;&lt;P&gt;Value of Day 1 = Day 1,&lt;/P&gt;&lt;P&gt;Value of Day 1+2 = Value Day 2&lt;/P&gt;&lt;P&gt;Values of Day 1+2+3 = Value Day 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What it does now is it does a calculation over all values no matter which FPYearDesc. How do I need to adjust it? I tried it with Aggr, but then I don´t get the value in each line...only in the first line then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 10:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098767#M522233</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2016-06-13T10:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rangesum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098768#M522234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using Dimensionality() or total&amp;lt;Dim...&amp;gt; function or can you share small sample to try with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 10:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098768#M522234</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-06-13T10:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rangesum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098769#M522235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like &lt;A href="https://community.qlik.com/people/digvijay"&gt;digvijay&lt;/A&gt;‌ would you be able to share a sample with the expected output to provide you with better help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 10:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098769#M522235</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-13T10:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rangesum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098770#M522236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How does your pivot table chart layout look like? Do you have any dimension pivoted? And which dimension is last and second to last w.r.t sort order?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a pivot table,you might need to use another chart inter record function (e.g. &lt;STRONG&gt;&lt;EM&gt;Before()&lt;/EM&gt;&lt;/STRONG&gt; instead of&lt;STRONG&gt; Above()&lt;/STRONG&gt; ) for pivoted dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the chart inter record functions will &lt;STRONG&gt;consider column / row segments&lt;/STRONG&gt;, so Transaction Date need to be the last in sort order to reset the Rangesum accordingly at segment bounderies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 10:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098770#M522236</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-13T10:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rangesum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098771#M522237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is FYear / &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FPYearDesc / &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TransactionDate. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 12:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098771#M522237</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2016-06-13T12:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rangesum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098772#M522238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added a sample qvw now. Please see above. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 12:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098772#M522238</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2016-06-13T12:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rangesum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098773#M522239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still not sure what your desired output is, but is this what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/127653_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rangesum(Above(sum({$&amp;lt;OrderPhase_Desc = {'Revenue'}&amp;gt;}NettAmount), 0, RowNo()))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 12:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098773#M522239</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-13T12:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rangesum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098774#M522240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carolin, probably I misunderstood something, I tried your expression (adapted) and it seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only issue I found is when some parts of the pivot table are colapsed and others expanded, I added a condition trying to check this: &lt;/P&gt;&lt;P&gt;If(IsNull(rowno()), Sum(NettAmount), Rangesum(Above(sum(NettAmount), 0,rowno())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In this sample seems to work but in a more complex table it can fail&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 12:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098774#M522240</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-06-13T12:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rangesum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098775#M522241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very close. The formula is already correct. Is there a possibility to show 50 wen e.g. June 2016 is collapsed? And 110 when 2016 is collapsed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 13:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098775#M522241</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2016-06-13T13:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rangesum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098776#M522242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Dimensionality() = 3, Rangesum(Above(sum({$&amp;lt;OrderPhase_Desc = {'Revenue'}&amp;gt;}NettAmount), 0, RowNo())), Sum(NettAmount))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 13:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098776#M522242</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-13T13:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rangesum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098777#M522243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for all of your help. As my real case was a lot more complex the combination of everything helped a lot so that I could solve it now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 15:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rangesum/m-p/1098777#M522243</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2016-06-13T15:35:23Z</dc:date>
    </item>
  </channel>
</rss>

