<?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: How to Aggr a RangeSum Command in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Aggr-a-RangeSum-Command/m-p/1665447#M728428</link>
    <description>&lt;P&gt;Your approach missed an outer aggregation - in this way it's rather a calculated dimension. Therefore try it in this way:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;avg(&lt;/STRONG&gt;aggr(Sum(TOTAL line_total),prodcat)&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; or maybe with&lt;BR /&gt;aggr(&lt;STRONG&gt;NODISTINCT&lt;/STRONG&gt; Sum(TOTAL line_total),prodcat)&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2020 14:40:19 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2020-01-14T14:40:19Z</dc:date>
    <item>
      <title>How to Aggr a RangeSum Command</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Aggr-a-RangeSum-Command/m-p/1665169#M728427</link>
      <description>&lt;P&gt;I am attempting to create an expression using RangeSum command and aggr.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a running % of sales by a line grouping.&lt;/P&gt;&lt;P&gt;The row is by Product with the Product Grouped in a higher level grouping call prodcat&lt;/P&gt;&lt;P&gt;In other words, I want to see the % of sales by product X the prodcat&lt;/P&gt;&lt;P&gt;When I enter the following, all works well.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=(Rangesum(Above(Sum(line_total),0,RowNo(TOTAL))))/Sum(TOTAL line_total)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I attempt to aggr by prodcat, I get sporadic results, only one row in the grouping returns a %.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=(Rangesum(Above(Sum(line_total),0,RowNo(TOTAL))))/aggr(Sum(TOTAL line_total),prodcat)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlikview so be gentle???&amp;nbsp; LOL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Aggr-a-RangeSum-Command/m-p/1665169#M728427</guid>
      <dc:creator>BojiRigger</dc:creator>
      <dc:date>2024-11-16T19:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Aggr a RangeSum Command</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Aggr-a-RangeSum-Command/m-p/1665447#M728428</link>
      <description>&lt;P&gt;Your approach missed an outer aggregation - in this way it's rather a calculated dimension. Therefore try it in this way:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;avg(&lt;/STRONG&gt;aggr(Sum(TOTAL line_total),prodcat)&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; or maybe with&lt;BR /&gt;aggr(&lt;STRONG&gt;NODISTINCT&lt;/STRONG&gt; Sum(TOTAL line_total),prodcat)&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 14:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Aggr-a-RangeSum-Command/m-p/1665447#M728428</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-01-14T14:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Aggr a RangeSum Command</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Aggr-a-RangeSum-Command/m-p/1666437#M728429</link>
      <description>&lt;P&gt;Marcus,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much.&amp;nbsp; Changing divisor to&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;aggr(&lt;/SPAN&gt;&lt;STRONG&gt;NODISTINCT&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;Sum(TOTAL line_total),prodcat) worked perfectly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Really appreciate the advice!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Randy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 19:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Aggr-a-RangeSum-Command/m-p/1666437#M728429</guid>
      <dc:creator>BojiRigger</dc:creator>
      <dc:date>2020-01-16T19:22:29Z</dc:date>
    </item>
  </channel>
</rss>

