<?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 with 2 Dimensions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/RangeSum-with-2-Dimensions/m-p/15721#M1105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! NUMERIC does the trick. I guess the loading sequence matters for this RangeSum(Above) calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your good advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2018 03:28:45 GMT</pubDate>
    <dc:creator>qliksensedlin</dc:creator>
    <dc:date>2018-02-28T03:28:45Z</dc:date>
    <item>
      <title>RangeSum with 2 Dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-with-2-Dimensions/m-p/15716#M1100</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;I have a problem with using combination of RangeSum and Above functions to get a cumulative score by month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how my data looks like. I need to accumulate the score by "Month" column. But as I also have a second column "Division", my accumulation resets every 2 rows. The expression I'm using for the "Cumulative Detractor Count" column is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=rangesum(above(Count({&amp;lt;[NPS Category] = {'Detractor'}&amp;gt;}Score),0,rowno()))&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="194643" alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194643_1.PNG" style="width: 620px; height: 363px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this has to do with the order of the columns. And if I switch the "Month" and "Division" columns, I can get the correct result in "Cumulative Detractor Count" column as below.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="194644" alt="2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/194644_2.PNG" style="width: 620px; height: 384px;" /&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, my table has to be in the "Month" -&amp;gt; "Division" order (as this in effect will become a line chart having "Month" as the first dimension and "Division" as the second dimension).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to improve my expression by adding Aggr function and reset the column order logic. Here is what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(&lt;/P&gt;&lt;P&gt;rangesum(above(Count({&amp;lt;[NPS Category] = {'Detractor'}&amp;gt;}Score),0,rowno()))&lt;BR /&gt;,Division, [Submit Date]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the result as shown in "Cumulative Detractor Count 2" column contains no data at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to searched multiple treads online, but couldn't figure out what is missing in my expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please help me get this expression working right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2021 20:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-with-2-Dimensions/m-p/15716#M1100</guid>
      <dc:creator>qliksensedlin</dc:creator>
      <dc:date>2021-12-22T20:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum with 2 Dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-with-2-Dimensions/m-p/15717#M1101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this with Month instead of Submit Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;RangeSum(Above(Count({&amp;lt;[NPS Category] = {'Detractor'}&amp;gt;}Score), 0, RowNo()))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;, Division, &lt;SPAN style="color: #ff0000;"&gt;Month&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 17:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-with-2-Dimensions/m-p/15717#M1101</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-27T17:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum with 2 Dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-with-2-Dimensions/m-p/15718#M1102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 19:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-with-2-Dimensions/m-p/15718#M1102</guid>
      <dc:creator>pablolabbe</dc:creator>
      <dc:date>2018-02-27T19:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum with 2 Dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-with-2-Dimensions/m-p/15719#M1103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I tested it out, but it didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the output with your suggesion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;RangeSum(Above(Count({&amp;lt;[NPS Category] = {'Detractor'}&amp;gt;}Score), 0, RowNo()))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;, Division, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Month&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194788_3.PNG" style="height: 487px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is probabaly because "Month" is not an intrinsic dimension in my table. It is created using the expression MonthName([Submit Date]). I guess Aggr() does not accept &lt;SPAN style="font-size: 13.3333px;"&gt;MonthName([Submit Date]) as its parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Even I tried to switch to [Submit Date] as the dimension directly, using following to aggregate, it still does not give me the correct output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=Aggr(&lt;/P&gt;&lt;P&gt;RangeSum(Above(Count({&amp;lt;[NPS Category] = {'Detractor'}&amp;gt;}Score), 0, RowNo()))&lt;/P&gt;&lt;P&gt;, Division, [Submit Date])&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG alt="4.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/194801_4.PNG" style="height: 445px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So the problem is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1st, I need to get the aggregation right for table with 2 dimensions.&lt;/P&gt;&lt;P&gt;2nd, I need the aggregation to be done on a dimension with expression MonthName ([Submit Date]).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 00:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-with-2-Dimensions/m-p/15719#M1103</guid>
      <dc:creator>qliksensedlin</dc:creator>
      <dc:date>2018-02-28T00:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum with 2 Dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-with-2-Dimensions/m-p/15720#M1104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have been right about all the issues you brought up. In order to address them, all you need to do is to create the Month field in the script like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [Submit Date],&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName([Submit Date]) as [Submit Month]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;RangeSum(Above(Count({&amp;lt;[NPS Category] = {'Detractor'}&amp;gt;}Score), 0, RowNo()))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;, Division, &lt;SPAN style="color: #ff0000;"&gt;[Submit Month]&lt;/SPAN&gt;)&lt;/STRONG&gt;&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;If this doesn't work, you can try this&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;RangeSum(Above(Count({&amp;lt;[NPS Category] = {'Detractor'}&amp;gt;}Score), 0, RowNo()))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;, Division, &lt;SPAN style="color: #ff0000;"&gt;([Submit Month], (NUMERIC))&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 02:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-with-2-Dimensions/m-p/15720#M1104</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-28T02:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum with 2 Dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-with-2-Dimensions/m-p/15721#M1105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! NUMERIC does the trick. I guess the loading sequence matters for this RangeSum(Above) calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your good advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 03:28:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-with-2-Dimensions/m-p/15721#M1105</guid>
      <dc:creator>qliksensedlin</dc:creator>
      <dc:date>2018-02-28T03:28:45Z</dc:date>
    </item>
  </channel>
</rss>

