<?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 Numerical &amp; Weighted Distribution in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269177#M100980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl, Thanks for you reply.&lt;/P&gt;&lt;P&gt;I've tried the suggested formula...but all the figures are always 100% whatever i filter on my Customer or Product fileds and at any level of their hyerarchies...&lt;/P&gt;&lt;P&gt;Where am I doing wrong?&lt;/P&gt;&lt;P&gt;Sergiovery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2011 11:02:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-01T11:02:11Z</dc:date>
    <item>
      <title>Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269175#M100978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm new both with QV(10) and in the group...so please be patient &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Question: I would like to build up a report usefull for all the people used to work in FMCG (Fast Moving Consumer Goods) Market. This report is called Numerica &amp;amp; Weighted Distribution Analysis. It gives the idea about your distribution over the market with your product portfolio. So if someone say "this product ha a WD/ND of 75/83" it means that he has listed this product in 75% of the outlets where is developed the 83% of the total (country) value.&lt;/P&gt;&lt;P&gt;Now the question.&lt;/P&gt;&lt;P&gt;My DB has this fileds:&lt;/P&gt;&lt;P&gt;- CustomID&lt;/P&gt;&lt;P&gt;- ProductID&lt;/P&gt;&lt;P&gt;- Invoice_Value&lt;/P&gt;&lt;P&gt;Rule to calculate the WD: anytime a customer (CustomerID), in a fixed timerange, has purchased a specific product (ProductID), I have to add his TOTAL Turnover (not only the turnover developed with the specific product, but the one realized with all the products) to a variable (i.e. vBuyersTO). At the end the value of the variable vBuyersTO has to be divided by the total turnover developed by ALL the customers (including also the ones that haven't purchased the specific product) with ALL the product (idem).&lt;/P&gt;&lt;P&gt;Rule to calculate the ND: anytime a customer (CustomerID), in a fixed timerange, has purchased a specific product (ProductID), I have to count it into a variable (i.e. vBuyersNR). At the end the value of the variable vBuyersNR has to be divided by the total count of the ALL the customers (including also the customers that haven't purchased the specific product).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody time and willness to help me in doing this exercise?&lt;/P&gt;&lt;P&gt;Sergiovery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 17:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269175#M100978</guid>
      <dc:creator />
      <dc:date>2011-11-30T17:20:27Z</dc:date>
    </item>
    <item>
      <title>Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269176#M100979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergiovery,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your expressions (e.g. in a text box) could look like this (in my understanding of the requirements):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WD:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;CustomID=p(),ProductID=&amp;gt;} Invoice_Value) / sum({&amp;lt;CustomID=,ProductID=&amp;gt;} Invoice_Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ND:&lt;/P&gt;&lt;P&gt;=count( CustomID) / count({&amp;lt;ProductID=&amp;gt;} CustomID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here I count each purchase (anytime) of Customer, also multiple buys. If you need to count the distinct customer in either the numerator or denominator, please add a DISTINCT qualifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. the set analysis I've used will be problematic if you use this in charts with dimensions and you expect it to regard the dimensions values, e.g. if you create a chart and use ProductID as dimension, the expressions won't be evaluated per ProductID value. You need to select one productID to see the correct values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 00:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269176#M100979</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-01T00:21:30Z</dc:date>
    </item>
    <item>
      <title>Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269177#M100980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl, Thanks for you reply.&lt;/P&gt;&lt;P&gt;I've tried the suggested formula...but all the figures are always 100% whatever i filter on my Customer or Product fileds and at any level of their hyerarchies...&lt;/P&gt;&lt;P&gt;Where am I doing wrong?&lt;/P&gt;&lt;P&gt;Sergiovery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 11:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269177#M100980</guid>
      <dc:creator />
      <dc:date>2011-12-01T11:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269178#M100981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, not sure what's going on on your side. What do you mean with any level of their hierarchy?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at attached sample and check if the results look reasonably.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 13:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269178#M100981</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-01T13:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269179#M100982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl,&lt;/P&gt;&lt;P&gt;finnaly I failed in the adaptation of you suggestion to my problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt;&lt;/P&gt;&lt;P&gt;I thin it is much easer to send you a piece of my job...as soon as I understand how to attach a file to this discussion (I told you: I'm now to QV ad to the group!). I hope that with it you can have a better clarificaion of my needs.&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I do not want&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to take advantage&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of your&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;availability&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;so I will try&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to do&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a file&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;very simple&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and focused&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;on the point&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In the while thanks again&lt;/P&gt;&lt;P&gt;Sergiovery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 16:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269179#M100982</guid>
      <dc:creator />
      <dc:date>2011-12-01T16:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269180#M100983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can attach a file using the advanced editor (link on right upper corner of the editor window).&lt;/P&gt;&lt;P&gt;The advanced editor is also used if you modify an existing post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 16:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269180#M100983</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-01T16:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269181#M100984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK Swuehl,&lt;/P&gt;&lt;P&gt;here attached the two files I hope can better explain what I would like to do...&lt;/P&gt;&lt;P&gt;1. XSL the desired output (obviously it is not dynamic)&lt;/P&gt;&lt;P&gt;2. QVW filled with the full hierarchyes of Products/Customers and SalesMan (real codes) and the turnover figures (invented)&lt;/P&gt;&lt;P&gt;Feel free to comment every think you wont. &lt;/P&gt;&lt;P&gt;Thanks in advance for your time, support and availabilty &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sergiovery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 16:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269181#M100984</guid>
      <dc:creator />
      <dc:date>2011-12-01T16:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269182#M100985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am new to this technology and am very interested how your project works out. I resolve these same types of business problems regularly but with different tools. Please keep me in the loop as of your experience. If I was stronger with the tool i'd gladly assist. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...In time. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 16:58:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269182#M100985</guid>
      <dc:creator />
      <dc:date>2011-12-01T16:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269183#M100986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergiovery,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please have a look at attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just used the expressions above with field names adapted.&lt;/P&gt;&lt;P&gt;It looks like the WD number is correct for the samples I checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ND number is much smaller in my calculation. In your table, I think you only take those customer into account with any Fatturato. In your attached sample files, it seems that you have a lot of CodCli that seems to have no Fatturato. Shall these be taken out from the denominator count?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I noticed of course that your excel table shows a cross table with dimension CodProd. As I said above, if you want something like that, this approach will come to its limit since it will not look at the actual dimension value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is really what you need, we must look for a different approach (which should be possible, but not as "simple" as above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But first, we shall agree on the expressions we need to calculate WD and ND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 17:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269183#M100986</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-01T17:25:14Z</dc:date>
    </item>
    <item>
      <title>Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269184#M100987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I spend yesteday some big minutes in&amp;nbsp; Sergey issue's&amp;nbsp; with no solution to calculate the&amp;nbsp; WD (market share of all the outlets who have sold the product).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think it's possible&amp;nbsp; to build a chart instead of a text box with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProductId&amp;nbsp;&amp;nbsp; as Dimension&lt;/P&gt;&lt;P&gt;WD&amp;nbsp;&amp;nbsp;&amp;nbsp; as Expression&amp;nbsp; &lt;/P&gt;&lt;P&gt;For ND&amp;nbsp; I used&amp;nbsp;&amp;nbsp; =count(DISTINCT {&amp;lt;Product=P(Product)&amp;gt;} Id )&amp;nbsp;&amp;nbsp; /&amp;nbsp; Count(&amp;nbsp; ALL DISTINCT&amp;nbsp; Id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance Stefan if you find a solution to WD in a straigt table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 20:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269184#M100987</guid>
      <dc:creator />
      <dc:date>2011-12-01T20:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269185#M100988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sergiovery and Jean-Jacques,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, I think it is possible, maybe using CodProd as dimension and as expressions for WD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( aggr(if(sum(Fatturato), sum(total&amp;lt;CodCli&amp;gt; Fatturato)), CodCli, CodProd ))&lt;/P&gt;&lt;P&gt;/sum(total Fatturato)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for ND maybe (since I am not sure what the correct expression is, see above)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(DISTINCT CodCli )&amp;nbsp;&amp;nbsp; /&amp;nbsp; Count({&amp;lt;CodCli= {"=sum(Fatturato)&amp;gt;0"}&amp;gt;}&amp;nbsp; total DISTINCT&amp;nbsp; CodCli)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice weekend,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;SPAN id="mce_marker"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 23:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269185#M100988</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-01T23:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269186#M100989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Swuehl&lt;/P&gt;&lt;P&gt;I've problem in open both your files...it seams I haven't licence rights.&lt;/P&gt;&lt;P&gt;I'm using QW10 Personal Edition.&lt;/P&gt;&lt;P&gt;I'm doing something wrong?&lt;/P&gt;&lt;P&gt;Sergiovery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 08:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269186#M100989</guid>
      <dc:creator />
      <dc:date>2011-12-02T08:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269187#M100990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With&amp;nbsp; PE, you can't open my files without losing one of yours recovery attempts. So don't open these files . &lt;/P&gt;&lt;P&gt;Just use the given expressions in your file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 08:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269187#M100990</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-02T08:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269188#M100991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK Swuehl. I'm going to analyze the algorithm you suggest...at the level of my "poor" knowledge &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'll come back to you soon!&lt;/P&gt;&lt;P&gt;As usual...thanks in advance.&lt;/P&gt;&lt;P&gt;Sergiovery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 09:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269188#M100991</guid>
      <dc:creator />
      <dc:date>2011-12-02T09:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269189#M100992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swuehl,&lt;/P&gt;&lt;P&gt;finally, after several hours spend over this issue, I'm back to you... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm really not able to exit the "empasse".&lt;/P&gt;&lt;P&gt;I think an easer version of the layout can better explain the method I was trying to approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Period Jan-Jun 2011&lt;/P&gt;&lt;P&gt;====================================================================== &lt;/P&gt;&lt;P&gt;Prod.s&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trea-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trea-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Total customer turnover and treated products&lt;BR /&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ters&amp;nbsp;&amp;nbsp;&amp;nbsp; ND&amp;nbsp;&amp;nbsp;&amp;nbsp; ters TO&amp;nbsp;&amp;nbsp;&amp;nbsp; WD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alfa&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Beta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Gamma Lambda&amp;nbsp; Epsilon Zeta&lt;BR /&gt;======================================================================&lt;/P&gt;&lt;P&gt;Total&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.180&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 750&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 620&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 832&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 550&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 428&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;======================================================================&lt;BR /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.010&amp;nbsp;&amp;nbsp;&amp;nbsp; 63%&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&lt;BR /&gt; A.a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.582&amp;nbsp;&amp;nbsp;&amp;nbsp; 50%&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp; &lt;BR /&gt; A.b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 832&amp;nbsp;&amp;nbsp;&amp;nbsp; 26%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp; &lt;BR /&gt; A.c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.260&amp;nbsp;&amp;nbsp;&amp;nbsp; 40%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.798&amp;nbsp;&amp;nbsp;&amp;nbsp; 57%&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&lt;BR /&gt; Ba.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.370&amp;nbsp;&amp;nbsp;&amp;nbsp; 43%&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp; &lt;BR /&gt; B.b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.178&amp;nbsp;&amp;nbsp;&amp;nbsp; 37%&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.452&amp;nbsp;&amp;nbsp;&amp;nbsp; 46%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp; &lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 550&amp;nbsp;&amp;nbsp;&amp;nbsp; 17%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x &lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;E&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.920&amp;nbsp;&amp;nbsp;&amp;nbsp; 60%&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x &lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 83%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.810&amp;nbsp;&amp;nbsp; 100%&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&lt;BR /&gt;======================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explanations:&lt;/P&gt;&lt;P&gt;1. Prod.s = Product hierarchy that could consists of hundreds of product codes...&lt;/P&gt;&lt;P&gt;2. Treaters = Customers that has purchased at least once the specific product. Totally there are 6 treaters (in the selected timeframe, customer Zeta has not put in place any order but it partecipates to the calculation in anycase)&lt;/P&gt;&lt;P&gt;3. ND --&amp;gt; one of the objectives of the report --&amp;gt; Numerical Distribution = Number of Customers that have purchased the product in the selected timeframe over the total customers&lt;/P&gt;&lt;P&gt;4. Treaters TO = Total Turnover of the customers treating the specific product. This value is NOT the turnover developed by the treating customer with the specific product. It is its total value purchased with all the products developed in the indicated timeframe..&lt;/P&gt;&lt;P&gt;5. WD --&amp;gt; the second objective of the report --&amp;gt; Weighted Distribution = total turnover of the customers treating the specific product / Total Company Turnover with all products and all customers boths calculated referring to the specified timeframe.&lt;/P&gt;&lt;P&gt;6. the table include, at this point, the information needed: total turnover per customer (with all the products) and if the customer treates the specific product ("x" in columns).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the problem of mine:&lt;/P&gt;&lt;P&gt;1. how totalize the total turnover of a customers if it treats a product (as you can see, product "A" has, in column "Treaters TO" 2'010 because the 3 customers treating that product have a own total turnover of 750+832+428=2'010. This total IS NOT the Turnover developed by the product across the 3 treaters! It may be that the products belonging to Group A (A.a, A.b, A.c) in the selected timeframe could develop a total turnvoer of 350 (clearly different by 2'010)&lt;/P&gt;&lt;P&gt;2. how keep the Customer turnover independent by the Product selection (at line "A.a" the sum is always referring to the Total Turnover of the customer tretating that product --&amp;gt; 750+832=1'582)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do really hope this can clarify to you the problem and allows you to give me additional support. In any case, thanks a lot for whatever support you can give me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sergiovery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 09:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269189#M100992</guid>
      <dc:creator />
      <dc:date>2011-12-05T09:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269190#M100993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergiovery,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the clarification, I see especially ND now clearer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked my above expressions in your app? I can replicate your excel file values with these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see two potential issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If you are using more than CodProd dimension, maybe for your Product hierarchy, the stated expression will probably look different (you'll need to adapt the aggr() dimensions and maybe also the expression within).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If you select on Product, but want the results to not change, you will need to disregard this selection, for example, to disregard all selections, thus having constant results in your table, you could use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WD:&lt;/P&gt;&lt;P&gt;=sum({1} aggr(if(sum({1} Fatturato), sum( {1} total&amp;lt;CodCli&amp;gt; Fatturato)), CodCli, CodProd ))&lt;/P&gt;&lt;P&gt;/sum({1} total Fatturato)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ND:&lt;/P&gt;&lt;P&gt; =count({1}DISTINCT CodCli )&amp;nbsp;&amp;nbsp; /&amp;nbsp; Count({1&amp;lt;CodCli= {"=sum({1} Fatturato)&amp;gt;0"}&amp;gt;}&amp;nbsp; total DISTINCT&amp;nbsp; CodCli)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt; =count({1}DISTINCT CodCli )&amp;nbsp;&amp;nbsp; /&amp;nbsp; Count({1} total DISTINCT&amp;nbsp; CodCli)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this does not help you too much, I would prefer if you could build another simple sample together with your expected results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 22:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269190#M100993</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-05T22:36:34Z</dc:date>
    </item>
    <item>
      <title>Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269191#M100994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl&lt;/P&gt;&lt;P&gt;Again thank for you kindly support.&lt;/P&gt;&lt;P&gt;Im going to analize your suggestion and, probably, I'll come back to you attention.&lt;/P&gt;&lt;P&gt;Sergiovery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 08:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269191#M100994</guid>
      <dc:creator />
      <dc:date>2011-12-06T08:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical &amp; Weighted Distribution</title>
      <link>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269192#M100995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl,&lt;/P&gt;&lt;P&gt;Here is the fully detailed calculation process. I hope it is clear enough to understand the concept.&lt;/P&gt;&lt;P&gt;Please note the Database in the sheet "DB".If you would like to set a different timeframe to see what happen...feel free, to modify cells I3, J3 and K3 as you prefer.&lt;/P&gt;&lt;P&gt;To run the filter (I don't know if you have knowledge about Excel mechanisms...sorry if you are familiar with excel!) simply combine Alt + A + Q + Alt+O + Enter.&lt;/P&gt;&lt;P&gt;As usual...thanks for your support. Don't hesitate to ask for additional details.&lt;/P&gt;&lt;P&gt;Sergiovery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 14:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numerical-Weighted-Distribution/m-p/269192#M100995</guid>
      <dc:creator />
      <dc:date>2011-12-06T14:34:12Z</dc:date>
    </item>
  </channel>
</rss>

