<?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 Which takes precedence - TOTAL qualifier or Set Analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Which-takes-precedence-TOTAL-qualifier-or-Set-Analysis/m-p/602603#M222741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot table, dimension "company", and expressions for total sales for each month, a year total, and the % of each company's sales for the total. The problem is computing the percentage, both on the company level, and at the chart level. For all my calculations, I don't want to include the TAX GROUP, which is in a different business but whose records are in my table (and which I can't exclude at the script level, as mgmt. wants to see their report in a separate tab). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the formula: (note: Year Sales is just the sum of the monthly sales by company, and it computes correctly)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;% of sales = [Year Sales]/sum({&amp;lt;company-={'TAX GROUP'}&amp;gt;} TOTAL if(Class='Broker',extprice))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I include TOTAL in the expression, my denominator DOES include the Tax Group. However, if I exclude it, instead of the chart&lt;/P&gt;&lt;P&gt;showing (e.g.) if company XYZ has $10,000 out of $1 million total sales "1%", it shows "100%", and it does that for every company,&lt;/P&gt;&lt;P&gt;when what we want to see is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABC&amp;nbsp;&amp;nbsp; $35,000&amp;nbsp;&amp;nbsp; 3.5%&lt;/P&gt;&lt;P&gt;DEF&amp;nbsp;&amp;nbsp; $52,000&amp;nbsp;&amp;nbsp; 5.2%&lt;/P&gt;&lt;P&gt;XYZ&amp;nbsp;&amp;nbsp; $10,000&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0%, etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want in the denominator is the total sales for ALL companies EXCEPT Tax Group. How would I show that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2014 14:59:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-06T14:59:39Z</dc:date>
    <item>
      <title>Which takes precedence - TOTAL qualifier or Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Which-takes-precedence-TOTAL-qualifier-or-Set-Analysis/m-p/602603#M222741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot table, dimension "company", and expressions for total sales for each month, a year total, and the % of each company's sales for the total. The problem is computing the percentage, both on the company level, and at the chart level. For all my calculations, I don't want to include the TAX GROUP, which is in a different business but whose records are in my table (and which I can't exclude at the script level, as mgmt. wants to see their report in a separate tab). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the formula: (note: Year Sales is just the sum of the monthly sales by company, and it computes correctly)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;% of sales = [Year Sales]/sum({&amp;lt;company-={'TAX GROUP'}&amp;gt;} TOTAL if(Class='Broker',extprice))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I include TOTAL in the expression, my denominator DOES include the Tax Group. However, if I exclude it, instead of the chart&lt;/P&gt;&lt;P&gt;showing (e.g.) if company XYZ has $10,000 out of $1 million total sales "1%", it shows "100%", and it does that for every company,&lt;/P&gt;&lt;P&gt;when what we want to see is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABC&amp;nbsp;&amp;nbsp; $35,000&amp;nbsp;&amp;nbsp; 3.5%&lt;/P&gt;&lt;P&gt;DEF&amp;nbsp;&amp;nbsp; $52,000&amp;nbsp;&amp;nbsp; 5.2%&lt;/P&gt;&lt;P&gt;XYZ&amp;nbsp;&amp;nbsp; $10,000&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0%, etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want in the denominator is the total sales for ALL companies EXCEPT Tax Group. How would I show that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 14:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Which-takes-precedence-TOTAL-qualifier-or-Set-Analysis/m-p/602603#M222741</guid>
      <dc:creator />
      <dc:date>2014-05-06T14:59:39Z</dc:date>
    </item>
  </channel>
</rss>

