<?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: Pivot Table + Aggregation on total data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggregation-on-total-data/m-p/1684020#M450269</link>
    <description>&lt;P&gt;Hi Marcus, I solved with a computation on the loading side, because the SetExpression I needed within the formula was too complex and I always run out of memory during the loading of the page.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will go deeper with knowledge of TOTAL aggregator, which of course I did not know well, but as you pointed is the right strategy for such a situation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you help.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Mar 2020 06:42:53 GMT</pubDate>
    <dc:creator>jekbauita</dc:creator>
    <dc:date>2020-03-12T06:42:53Z</dc:date>
    <item>
      <title>Pivot Table + Aggregation on total data</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggregation-on-total-data/m-p/1675848#M449766</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've searched the forum but I was unable to find an answer matching my needs. I need a better understanding of the Aggr() mechanism or maybe I'm mistaking and I need to look for another way to solve my issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main problem I have is that I load specific data on a pivot table and I want to compare the average price for every row to the average price of the category of each article.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set like the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Schermata 2020-02-14 alle 16.35.31.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/28447iE366FF8E19369D90/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata 2020-02-14 alle 16.35.31.png" alt="Schermata 2020-02-14 alle 16.35.31.png" /&gt;&lt;/span&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At some point in my QlikView App I need to have a Pivot table like the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermata 2020-02-14 alle 16.49.31.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/28449iA78A6FD631035932/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata 2020-02-14 alle 16.49.31.png" alt="Schermata 2020-02-14 alle 16.49.31.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That shows just some of the columns and for instance, I don't need the category column to be shown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression for this example are very simple:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;quant. &lt;STRONG&gt;=sum(Quantity)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;amount &lt;STRONG&gt;=sum([Total amount])&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;average price &lt;STRONG&gt;=sum([Total amount]) /&amp;nbsp;sum(Quantity)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What I'm trying to achieve is to add one more column that shows, for each row, the average price of a sale based on: Sales Group - Category (so independent from Document, Costumer, Article, Article Color). I don't know the way to achieve this, because every time I try to use a type of aggregation I don't reach the result I'm trying to have. I think the problem lays in my not-so-deep knowledge of the Aggr() function and the fact that the dimensions I'm trying to aggregate aren't shown in the pivot table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, in the real application, instead of simple expression I have more complex ones, using Set Analysis, but I'd love to understand the mechanic for this to work and then I will manage myself to make it work with the real environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone any suggestion?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for every help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggregation-on-total-data/m-p/1675848#M449766</guid>
      <dc:creator>jekbauita</dc:creator>
      <dc:date>2024-11-16T01:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table + Aggregation on total data</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggregation-on-total-data/m-p/1676127#M449774</link>
      <description>&lt;P&gt;It seems quite a difficult situation the one I have, since I didn't get any suggestion I'm going to compute the values I need in the LOAD script and for the moment I'm going to keep them as "static" values in a support table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for everyone who had a look at it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 08:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggregation-on-total-data/m-p/1676127#M449774</guid>
      <dc:creator>jekbauita</dc:creator>
      <dc:date>2020-02-17T08:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table + Aggregation on total data</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggregation-on-total-data/m-p/1676234#M449777</link>
      <description>&lt;P&gt;I think aggr() isn't really suitable in your case else it should be solvable with TOTAL, like:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Unbenannt.JPG"&gt;&lt;img src="https://community.qlik.com/skins/images/F8B11FBB1963C3F5190A68D84129B237/responsive_peak/images/image_not_found.png" alt="Unbenannt.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&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>Mon, 17 Feb 2020 12:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggregation-on-total-data/m-p/1676234#M449777</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-02-17T12:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table + Aggregation on total data</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggregation-on-total-data/m-p/1683921#M450267</link>
      <description>&lt;P&gt;Did the suggestion Marcus provided work for you?&amp;nbsp; If so, do not forget to return to the thread to close things out by using the Accept as Solution button on his post if using Total worked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a Design Blog post on Total that may further explain things too:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/What-does-the-TOTAL-qualifier-do/ba-p/1472990" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/What-does-the-TOTAL-qualifier-do/ba-p/1472990&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 18:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggregation-on-total-data/m-p/1683921#M450267</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-03-11T18:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table + Aggregation on total data</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggregation-on-total-data/m-p/1684020#M450269</link>
      <description>&lt;P&gt;Hi Marcus, I solved with a computation on the loading side, because the SetExpression I needed within the formula was too complex and I always run out of memory during the loading of the page.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will go deeper with knowledge of TOTAL aggregator, which of course I did not know well, but as you pointed is the right strategy for such a situation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 06:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggregation-on-total-data/m-p/1684020#M450269</guid>
      <dc:creator>jekbauita</dc:creator>
      <dc:date>2020-03-12T06:42:53Z</dc:date>
    </item>
  </channel>
</rss>

