<?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: Using set analysis to generate a percentage in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-generate-a-percentage/m-p/664487#M475925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You just need the word "total" in your denominator, assuming that product is the dimension of your chart.&lt;/P&gt;&lt;P&gt;count({&amp;lt;location_id={"=sum(customer_gross_sales)&amp;gt;1000"} &amp;gt;} location_id)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;count({&amp;lt;location_id={"=sum(customer_gross_sales)&amp;gt;1000"} &amp;gt;} total location_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have other dimensions in the chart, then you would need &amp;lt;&amp;gt; brackets after the word total and include all dimensions in there except for Product. For example, total &amp;lt;Country,Date&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2014 15:52:25 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2014-06-26T15:52:25Z</dc:date>
    <item>
      <title>Using set analysis to generate a percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-generate-a-percentage/m-p/664486#M475924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to calculate what percentage of customers spending over a certain level have bought products from us. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this syntax I can count the number of customers spending more than £1000 based on my current selection (which is fine). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;location_id={"=sum(customer_gross_sales)&amp;gt;1000"} &amp;gt;} location_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can use the same syntax to say how many customers spending more than £1000 are buying each product. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I don't know how to do is get the count of the total number of customers spending more than £1000 and use it to divide the number of customers spending more than £1000 on each product by?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to use a variable? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 15:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-generate-a-percentage/m-p/664486#M475924</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-26T15:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis to generate a percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-generate-a-percentage/m-p/664487#M475925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You just need the word "total" in your denominator, assuming that product is the dimension of your chart.&lt;/P&gt;&lt;P&gt;count({&amp;lt;location_id={"=sum(customer_gross_sales)&amp;gt;1000"} &amp;gt;} location_id)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;count({&amp;lt;location_id={"=sum(customer_gross_sales)&amp;gt;1000"} &amp;gt;} total location_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have other dimensions in the chart, then you would need &amp;lt;&amp;gt; brackets after the word total and include all dimensions in there except for Product. For example, total &amp;lt;Country,Date&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 15:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-generate-a-percentage/m-p/664487#M475925</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-06-26T15:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis to generate a percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-generate-a-percentage/m-p/664488#M475926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vlad. That's exactly what I needed to do. I want to evolve this to be able to show the product penetration over time but that can wait until another iteration. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 15:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-generate-a-percentage/m-p/664488#M475926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-26T15:59:22Z</dc:date>
    </item>
  </channel>
</rss>

