<?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: QlikView: Sum'ing Data Grouped by Aggregate Function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/QlikView-Sum-ing-Data-Grouped-by-Aggregate-Function/m-p/2540500#M109201</link>
    <description>&lt;P&gt;To develop any logic and evaluating the data it would be better to use a table-chart because all graphical visuals have more or less limitations respectively capabilities - especially in regard to the available number of dimensions and expressions. If it worked like expected within a table-chart and not in a graphical visual it means that the visual with the applied configurations doesn't support the wanted view. Sometimes it may possible to adjust it appropriate or it makes clear that another kind of visualization would be needed.&lt;/P&gt;&lt;P&gt;Beside this you may need to extend the aggr() with more/other dimensions. Your current version considered only the Customer but not the Year.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jan 2026 10:48:07 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2026-01-08T10:48:07Z</dc:date>
    <item>
      <title>QlikView: Sum'ing Data Grouped by Aggregate Function</title>
      <link>https://community.qlik.com/t5/App-Development/QlikView-Sum-ing-Data-Grouped-by-Aggregate-Function/m-p/2540419#M109192</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I have an Aggregate function to split out Customers into bands based on a value&lt;/P&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;Aggr(&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp; IF(Sum([Value]) &amp;gt;= 1000000, '&amp;gt;1m',&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp; &amp;nbsp; IF(Sum([Value]) &amp;lt; 1000000 and Sum([Value]) &amp;gt;= 500000, '&amp;lt;1m -&amp;gt;500k',&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; IF(Sum([Value]) &amp;lt; 500000 and Sum([Value]) &amp;gt;= 50000, '&amp;lt;500k - &amp;gt;50k',&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;IF(Sum([Value]) &amp;lt; 50000, '&amp;lt;50k')&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp; &amp;nbsp; )&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp; ), [Customer]&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What I would like to do is Sum the value within a certain band, which I felt would be the case with this:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So for the band&amp;nbsp;&amp;lt;500k - &amp;gt;50k it would be:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;Sum(Aggr(IF(Sum([Value]) &amp;lt; 500000 and Sum([Value]) &amp;gt;= 50000, [Value]), [Customer]))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The number it is returning is incorrect and I cannot work out the logic in the number to guess where the error is. The Customer is unique to the data but can appear on many rows in the table, so I am wondering if this is my issue...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amos_0-1767798584952.png" style="width: 163px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186132i5A5A188BE265E801/image-dimensions/163x162?v=v2" width="163" height="162" role="button" title="Amos_0-1767798584952.png" alt="Amos_0-1767798584952.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;Would anybody have any ideas where I am going wrong?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have tried to find the answer as I do suspect I am missing something obvious and simple... so apologies for asking the question.&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Jan 2026 16:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikView-Sum-ing-Data-Grouped-by-Aggregate-Function/m-p/2540419#M109192</guid>
      <dc:creator>Amos</dc:creator>
      <dc:date>2026-01-07T16:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView: Sum'ing Data Grouped by Aggregate Function</title>
      <link>https://community.qlik.com/t5/App-Development/QlikView-Sum-ing-Data-Grouped-by-Aggregate-Function/m-p/2540426#M109194</link>
      <description>&lt;P&gt;Your first aggr() is a calculated dimension and being applied in a chart you wouldn't need extra conditions within the expressions else just applying simple measures:&lt;/P&gt;&lt;P&gt;sum(Value)&lt;BR /&gt;count(distinct Customer)&lt;BR /&gt;sum(Value) /&amp;nbsp;count(distinct Customer)&lt;BR /&gt;...&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 16:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikView-Sum-ing-Data-Grouped-by-Aggregate-Function/m-p/2540426#M109194</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-01-07T16:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView: Sum'ing Data Grouped by Aggregate Function</title>
      <link>https://community.qlik.com/t5/App-Development/QlikView-Sum-ing-Data-Grouped-by-Aggregate-Function/m-p/2540429#M109195</link>
      <description>&lt;P&gt;Hi, thanks for the reply.&lt;/P&gt;&lt;P&gt;I feel that I get what you are saying about it use within a chart but for how I am trying to display the data I do feel that I need to get the Sum'ed value for a specific band of data.&lt;/P&gt;&lt;P&gt;I am trying to create a Bar and Line graph combination where I band the Value as a Bar graph and then Line the Count of the Customer and they use that across multiple years.&lt;/P&gt;&lt;P&gt;Which would end up something like this:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amos_0-1767805463605.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186133i63F058D6669E22EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amos_0-1767805463605.png" alt="Amos_0-1767805463605.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The QlikView Line Graph does seem to want to recognise the banding which gives me something like this:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amos_1-1767805553320.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186134i00FD117479275666/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amos_1-1767805553320.png" alt="Amos_1-1767805553320.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I appreciate that it won't be a "like for like" comparison, but my thinking is that if I can capture the value per band then I can fake the bands (rather than use the AGGR function) that are there as individual expressions and so build the graph.&lt;/P&gt;&lt;P&gt;Appreciate that this was not in the original question but also felt that most people did not want to read all of the above &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So thanks for the suggestion but I don't feel it will work for how I want to display the data to the user.&lt;/P&gt;&lt;P&gt;I also get that I can have two graphs (line and bar) and overlay them and make things transparent so that it looks like one full graph, but the graphs seem to get out of line with each other quickly.&lt;/P&gt;&lt;P&gt;Thanks again.&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>Wed, 07 Jan 2026 17:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikView-Sum-ing-Data-Grouped-by-Aggregate-Function/m-p/2540429#M109195</guid>
      <dc:creator>Amos</dc:creator>
      <dc:date>2026-01-07T17:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView: Sum'ing Data Grouped by Aggregate Function</title>
      <link>https://community.qlik.com/t5/App-Development/QlikView-Sum-ing-Data-Grouped-by-Aggregate-Function/m-p/2540500#M109201</link>
      <description>&lt;P&gt;To develop any logic and evaluating the data it would be better to use a table-chart because all graphical visuals have more or less limitations respectively capabilities - especially in regard to the available number of dimensions and expressions. If it worked like expected within a table-chart and not in a graphical visual it means that the visual with the applied configurations doesn't support the wanted view. Sometimes it may possible to adjust it appropriate or it makes clear that another kind of visualization would be needed.&lt;/P&gt;&lt;P&gt;Beside this you may need to extend the aggr() with more/other dimensions. Your current version considered only the Customer but not the Year.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 10:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikView-Sum-ing-Data-Grouped-by-Aggregate-Function/m-p/2540500#M109201</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-01-08T10:48:07Z</dc:date>
    </item>
  </channel>
</rss>

