<?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 Aggregation: finding the biggest customer for each product in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363458#M135173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with invoices for a full year. Each invoice specifies the Customer, the Product and the Volume sold. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to make the following table:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Product&lt;/LI&gt;&lt;LI&gt;Total volume sold of the product&lt;/LI&gt;&lt;LI&gt;Name of the largest customer&amp;nbsp; (in terms of volume purchased across all products, not just the volume of the product itself) buying the product&lt;/LI&gt;&lt;LI&gt;Total volume purchased&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, the first two are trivial, but I am struggeling with the expressions for the last 2 columns.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have spend hours on this, so help would be very much appreciated!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2012 18:32:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-21T18:32:39Z</dc:date>
    <item>
      <title>Aggregation: finding the biggest customer for each product</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363458#M135173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with invoices for a full year. Each invoice specifies the Customer, the Product and the Volume sold. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to make the following table:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Product&lt;/LI&gt;&lt;LI&gt;Total volume sold of the product&lt;/LI&gt;&lt;LI&gt;Name of the largest customer&amp;nbsp; (in terms of volume purchased across all products, not just the volume of the product itself) buying the product&lt;/LI&gt;&lt;LI&gt;Total volume purchased&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, the first two are trivial, but I am struggeling with the expressions for the last 2 columns.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have spend hours on this, so help would be very much appreciated!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 18:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363458#M135173</guid>
      <dc:creator />
      <dc:date>2012-03-21T18:32:39Z</dc:date>
    </item>
    <item>
      <title>Aggregation: finding the biggest customer for each product</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363459#M135174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that the customer will be like this using product as dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(if(Rank(Sum({&amp;lt;Client= P(Client), Product=&amp;gt;}SubTotal)) = 1, Client), Client)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 19:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363459#M135174</guid>
      <dc:creator />
      <dc:date>2012-03-21T19:23:40Z</dc:date>
    </item>
    <item>
      <title>Aggregation: finding the biggest customer for each product</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363460#M135175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Federico,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion. This helps a lot, but I don't have the final solution yet. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using your suggestion, I have been able to make a table chart with dimension Customer. When I select a product, this table gives me the ranking of the customers from large to small and also the volume of the customers&lt;SPAN style="text-decoration: underline;"&gt; across all products (not just the product selected).&lt;/SPAN&gt; See below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/12319_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿Now, I want to take the next step. Rather than having the above table with dimension Customer and having to select products to find the largest customer, I would like to make a chart with dimension Product, which shows for each product the biggest customer and the Customer's volume across all products. I have tried your aggregation formula, but to get anything displayed, I need to aggregate across both products and customers. When I do this, I get the customer buying the biggest volume of the specific product rather tha the biggest overall customer who buys the particular product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Marc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 10:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363460#M135175</guid>
      <dc:creator />
      <dc:date>2012-03-22T10:25:36Z</dc:date>
    </item>
    <item>
      <title>Aggregation: finding the biggest customer for each product</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363461#M135176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The&amp;nbsp; previous formula only worked for the 1st ranked product-client, didnt do the job...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a formula for a table with product as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(if(Rank(Sum({&amp;lt;Product=&amp;gt;}total &amp;lt;Client&amp;gt; SubTotal)) = 1, Client), Product, Client)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This shows the the biggest client thats buys each product.&lt;/P&gt;&lt;P&gt;In a minute the volume formula...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 17:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363461#M135176</guid>
      <dc:creator />
      <dc:date>2012-03-22T17:41:48Z</dc:date>
    </item>
    <item>
      <title>Aggregation: finding the biggest customer for each product</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363462#M135177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aggr(if(Rank(Sum({&amp;lt;Product=&amp;gt;}total &amp;lt;Client&amp;gt; SubTotal)) = 1, Sum({&amp;lt;Product=&amp;gt;}total &amp;lt;Client&amp;gt; SubTotal)), Product, Client)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 17:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363462#M135177</guid>
      <dc:creator />
      <dc:date>2012-03-22T17:45:01Z</dc:date>
    </item>
    <item>
      <title>Aggregation: finding the biggest customer for each product</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363463#M135178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Federico,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fantastic. Works perfect. Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 21:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363463#M135178</guid>
      <dc:creator />
      <dc:date>2012-03-22T21:23:28Z</dc:date>
    </item>
    <item>
      <title>Aggregation: finding the biggest customer for each product</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363464#M135179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Federico,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;don't understand wath is&amp;nbsp; SubTotal&amp;nbsp;&amp;nbsp;&amp;nbsp; in your formula ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u explain me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 09:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363464#M135179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-23T09:11:01Z</dc:date>
    </item>
    <item>
      <title>Aggregation: finding the biggest customer for each product</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363465#M135180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SubTotal is whatever he is using, could be Qty, sales, anything. In this case I believe it should be volume.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 15:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-finding-the-biggest-customer-for-each-product/m-p/363465#M135180</guid>
      <dc:creator />
      <dc:date>2012-03-23T15:33:07Z</dc:date>
    </item>
  </channel>
</rss>

