<?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: Sum values grouped by Id in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389018#M458979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Domenico this is an example !&lt;/P&gt;&lt;P&gt;Can You provide sample data ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2017 08:36:37 GMT</pubDate>
    <dc:creator>antoniotiman</dc:creator>
    <dc:date>2017-11-15T08:36:37Z</dc:date>
    <item>
      <title>Sum values grouped by Id in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389013#M458974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a set of data like that:&lt;BR /&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100 €&lt;/P&gt;&lt;P&gt;100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200 €&lt;/P&gt;&lt;P&gt;200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500 €&lt;/P&gt;&lt;P&gt;200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 700 €&lt;/P&gt;&lt;P&gt;200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100 €&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I have a pivot table with a bucket of age group (&amp;lt;30, 31-40, 41-50, etc), so each ID belongs to a certain age group.&lt;/P&gt;&lt;P&gt;I would show, for every group age, the sum of the "Value" for age group. Since there are several ID with multiple "Value", I'd like to Sum the values that belongs to the same ID (assuming ID 100 as age 20, and ID 200 as age 50, I would show that the &amp;lt;30 Age group has 300 €, and the 41-50 Age Group has 1300 €).&lt;BR /&gt;I tried with the&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(aggr(Value,&amp;nbsp; ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and also with the &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(total&amp;lt;ID&amp;gt; Value).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but it isn't working at all.&lt;/P&gt;&lt;P&gt;Can you please help me?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 16:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389013#M458974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T16:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values grouped by Id in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389014#M458975</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;try this: &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;aggr(&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Value),&amp;nbsp; ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 16:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389014#M458975</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2017-11-14T16:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values grouped by Id in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389015#M458976</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 think the problem might be the Euro Currency symbol try the below as an equation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Aggr(Sum(num(left(Value,len(Value)-1))),ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR you could change the field in the script to be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'courier new', courier;"&gt;num(left(Value,len(Value)-1)) as Value&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 16:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389015#M458976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T16:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values grouped by Id in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389016#M458977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; ID,Age&lt;BR /&gt; 100,20&lt;BR /&gt; 200,50&lt;BR /&gt; 300,45&lt;BR /&gt; 400,35]&lt;/SPAN&gt;;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; ID, Value&lt;BR /&gt; 100, 100 &lt;BR /&gt; 100, 200 &lt;BR /&gt; 200, 500 &lt;BR /&gt; 200, 700 &lt;BR /&gt; 200, 100 &lt;BR /&gt; 300, 500 &lt;BR /&gt; 400, 700 &lt;BR /&gt; ]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183250_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 17:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389016#M458977</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-14T17:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values grouped by Id in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389017#M458978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all. Youssef, your solution doesn't work, every row has the "0" value now.&lt;BR /&gt;Aron, actually I don't have the Euro Currency symbol, I'm sorry I wrote it only for show that it is a numeric value.&lt;BR /&gt;Anyway, you also proposed the same functions of Aron that sadly it's not working.&lt;BR /&gt;Antonio, I can't use the LOAD inline because I've a big set of data, loaded from a SQL table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 07:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389017#M458978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-15T07:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values grouped by Id in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389018#M458979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Domenico this is an example !&lt;/P&gt;&lt;P&gt;Can You provide sample data ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 08:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389018#M458979</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-15T08:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values grouped by Id in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389019#M458980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved. Since I'm using a pivot table, and the datas are already grouped, the Aggr function it's not necessary. A simple Sum(Value) works. It's curious, anyway, that the Aggr doesn't work in this case.&lt;/P&gt;&lt;P&gt;Thanks everybody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 08:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-grouped-by-Id-in-pivot-table/m-p/1389019#M458980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-15T08:51:28Z</dc:date>
    </item>
  </channel>
</rss>

