<?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: Aggregate over dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969624#M964002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you , but that expression gives me the % over the total amount of sales and what i want is the % over the Max amount of any country&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2015 15:57:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-13T15:57:56Z</dc:date>
    <item>
      <title>Aggregate over dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969621#M963999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I'm trying to get the next scenario,&lt;/P&gt;&lt;P&gt;The info:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country, Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Brasil, 10000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA, 15000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Spain, 5000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want to get the percentage of each country over the country with the highest sales, in this case&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Brasil,10000, 66%&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA,15000, 100%&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Spain,5000, 33%&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;I've tried &lt;STRONG&gt;sum(Sales)/ max(aggr(sum(Sales),Country))&lt;/STRONG&gt; but I only get the same value as a regular SUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 14:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969621#M963999</guid>
      <dc:creator />
      <dc:date>2015-10-13T14:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate over dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969622#M964000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;sum(Sales)/&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;sum(TOTAL Sales)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 15:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969622#M964000</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-10-13T15:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate over dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969623#M964001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This formula gives the correct solution, however you might need to have another dimension like period and product which provides more accurate scenario.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Sum(Sales)/&lt;/P&gt;&lt;P&gt;Max(aggr(Sum(Sales),Country))&lt;/P&gt;&lt;P&gt;Lets say for Year 2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sales would be .... sum(Sales)/Max(aggr(Sum(&amp;lt;Year={2015}&amp;gt;),Product,Country)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: You might try with TOTAL function as well..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 15:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969623#M964001</guid>
      <dc:creator>SreeniJD</dc:creator>
      <dc:date>2015-10-13T15:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate over dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969624#M964002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you , but that expression gives me the % over the total amount of sales and what i want is the % over the Max amount of any country&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 15:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969624#M964002</guid>
      <dc:creator />
      <dc:date>2015-10-13T15:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate over dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969625#M964003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thank you, but if I don't have any extra dimension?&lt;/P&gt;&lt;P&gt;For a textbox I get the right value with the expression that I posted, but I need it in a straight table as a column, If I use other more specific dimension&amp;nbsp; i don't get the right value.&lt;/P&gt;&lt;P&gt;I posted an excel file of what I want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 18:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969625#M964003</guid>
      <dc:creator />
      <dc:date>2015-10-13T18:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate over dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969626#M964004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for my misunderstanding&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;sum(Sales)/ max(total aggr(sum(Sales),Country))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 18:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969626#M964004</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-10-13T18:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate over dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969627#M964005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum(Sales) / Max(Total Aggr(Sum(Sales), Country))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 18:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969627#M964005</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-10-13T18:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate over dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969628#M964006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;sum(Sales) / max(total Sales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/101925_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 18:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969628#M964006</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-10-13T18:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate over dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969629#M964007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everybody was very helpfull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 21:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-over-dimensions/m-p/969629#M964007</guid>
      <dc:creator />
      <dc:date>2015-10-13T21:15:39Z</dc:date>
    </item>
  </channel>
</rss>

