<?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: Rangesum question in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5223#M414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My bad. Temporary brain drop... The total qualifier should of course be in the Above() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, it won't work with field specifiers after the total qualifier. So the work around must be a conditional evaluation like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Year=Above(total Year),Above(total Sum(Sales)),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2018 14:36:43 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2018-01-23T14:36:43Z</dc:date>
    <item>
      <title>Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5217#M408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a rangesum function in a pivot table which I can't make it work as I need.&lt;/P&gt;&lt;P&gt;This is the formula I'm using, it works fine till i keep CalendarYear dimension out of the pivot table, once I put it inside the pivot, the&amp;nbsp; rolling is interrupted at any new calendar year:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pivot.JPG" class="jive-image image-1" height="218" src="https://community.qlik.com/legacyfs/online/191010_Pivot.JPG" style="height: 217.619px; width: 758px;" width="758" /&gt;&lt;/P&gt;&lt;P&gt;The January yellow highlighted value should be 47 instead , just as in the following screen shot, with no calendar year&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" height="220" src="https://community.qlik.com/legacyfs/online/191011_Capture.JPG" style="height: 220.37px; width: 763px;" width="763" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 11:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5217#M408</guid>
      <dc:creator>marcoserilio</dc:creator>
      <dc:date>2018-01-23T11:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5218#M409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the total qualifier:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;RangeSum( &lt;STRONG&gt;total&lt;/STRONG&gt; &amp;lt;expression&amp;gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Above( &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;total&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &amp;lt;expression&amp;gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 11:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5218#M409</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2018-01-23T11:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5219#M410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never seen this syntax before. I have seen TOTAL within Above() function, but never seen RangeSum() with TOTAL. Also, TOTAL within Above() doesn't really allow to use field names between &amp;lt;&amp;gt;. But it seems that RangeSum() does. Do you have a blog where we can read more about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 12:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5219#M410</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-23T12:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5220#M411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to paste the formula I'm using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangesum( above( sum(PurchasePlanQuantity),0,RowNo()+12) )-(rangesum( above( sum(ShippedQty),0,RowNo()+12) )+rangesum( above( sum(WhStockQty),0,RowNo()+12) ))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 13:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5220#M411</guid>
      <dc:creator>marcoserilio</dc:creator>
      <dc:date>2018-01-23T13:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5221#M412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric, thanks for your answer, I tried and put a total in the editor, but qlik doesn't allow the total predicate &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/191026_Capture.JPG" style="height: 913px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 13:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5221#M412</guid>
      <dc:creator>marcoserilio</dc:creator>
      <dc:date>2018-01-23T13:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5222#M413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what confuses me... I have never seen TOTAL within RangeSum, but if Henric has mentioned about this, I would think that we are probably missing something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 13:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5222#M413</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-23T13:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5223#M414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My bad. Temporary brain drop... The total qualifier should of course be in the Above() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, it won't work with field specifiers after the total qualifier. So the work around must be a conditional evaluation like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Year=Above(total Year),Above(total Sum(Sales)),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 14:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5223#M414</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2018-01-23T14:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5224#M415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(&lt;/P&gt;&lt;P&gt;Year=Above(total Year),&lt;/P&gt;&lt;P&gt;Rangesum(Above( total [Po-Consolidated] ) , Sum(PurchasePlanQuantity), -Sum(ShippedQty), -Sum(WhStockQty) ),&lt;/P&gt;&lt;P&gt;RangeSum( Sum(PurchasePlanQuantity), -Sum(ShippedQty), -Sum(WhStockQty))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 15:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5224#M415</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2018-01-23T15:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5225#M416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never thought of using this work around, this is amazing. Thanks for sharing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 03:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5225#M416</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-24T03:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5226#M417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Enric, awesome script but it's still giving me what I've got already. The range sum of the Calendar Year dimension, I'm trying on the other hand to include the above calendar year dimension into the current calendar year dimension.&lt;/P&gt;&lt;P&gt;The 29 units to which the arrow is pointing should be 49 instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/191145_Capture.JPG" style="height: 241px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 09:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5226#M417</guid>
      <dc:creator>marcoserilio</dc:creator>
      <dc:date>2018-01-24T09:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5227#M418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, then it's just a matter of moving the condition to the dimension above Year. Try&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; If( ColorCode=Above(total &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ColorCode&lt;/SPAN&gt;), ...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;instead&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 09:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5227#M418</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2018-01-24T09:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5228#M419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll give it a try right away&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 09:13:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5228#M419</guid>
      <dc:creator>marcoserilio</dc:creator>
      <dc:date>2018-01-24T09:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5229#M420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fantastic HIC. Thanks for sharing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm learning a lot reading your solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 09:22:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5229#M420</guid>
      <dc:creator>Thiago_Justen_</dc:creator>
      <dc:date>2018-01-24T09:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5230#M421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric, close but not yet. Now the first row of the new dimension is correct, but from the 2nd row on, still the rolling is only taking into consideration current dimension figures:&lt;/P&gt;&lt;P&gt;see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the February testmsr value should be 89 instead: 49 testmsr value from January + 40 Po units in Febrary-0 Shd in February - 0 WhStockQty in February. I have tried to adapt your script but I didn't make it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/191175_Capture.JPG" style="height: 250px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 10:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5230#M421</guid>
      <dc:creator>marcoserilio</dc:creator>
      <dc:date>2018-01-24T10:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5231#M422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that the column TestMsr is the one that we're looking at. But since you changed the name of the column, you need to change this in the expression to reflect that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Rangesum(Above( total [Po-Consolidated] ) , X ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will take the value of &lt;STRONG style="text-decoration: underline;"&gt;Po-Consolidated&lt;/STRONG&gt; from the line above, and add X. But now you instead want the value of TestMsr from the line above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, then you need to change the expression to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ColorCode=Above(total ColorCode), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Rangesum(Above( total [TestMsr] ) , Sum(PurchasePlanQuantity), -Sum(ShippedQty), -Sum(WhStockQty) ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; RangeSum( Sum(PurchasePlanQuantity), -Sum(ShippedQty), -Sum(WhStockQty))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 11:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5231#M422</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2018-01-24T11:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum question</title>
      <link>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5232#M423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad. Thanks for the tip and the explanation as well, you've been a great help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 11:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rangesum-question/m-p/5232#M423</guid>
      <dc:creator>marcoserilio</dc:creator>
      <dc:date>2018-01-24T11:10:40Z</dc:date>
    </item>
  </channel>
</rss>

