<?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 Dividing rows by unique customer total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dividing-rows-by-unique-customer-total/m-p/205984#M503454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to do a calculation, in a straight table, that counts the number of customers by a particular category. A person can show up in multiple categories. I want the denominator to be based on the total number of unique customers and the numerator to be based on the total in that particular category. I'm guessing I'd do something with the aggr function or set analysis, but I can't seem to get the correct answer. Any help is much appreciated.&lt;/P&gt;&lt;P&gt;I've attached a sample qvw as reference.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Apr 2010 15:34:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-07T15:34:08Z</dc:date>
    <item>
      <title>Dividing rows by unique customer total</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-rows-by-unique-customer-total/m-p/205984#M503454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to do a calculation, in a straight table, that counts the number of customers by a particular category. A person can show up in multiple categories. I want the denominator to be based on the total number of unique customers and the numerator to be based on the total in that particular category. I'm guessing I'd do something with the aggr function or set analysis, but I can't seem to get the correct answer. Any help is much appreciated.&lt;/P&gt;&lt;P&gt;I've attached a sample qvw as reference.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 15:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-rows-by-unique-customer-total/m-p/205984#M503454</guid>
      <dc:creator />
      <dc:date>2010-04-07T15:34:08Z</dc:date>
    </item>
    <item>
      <title>Dividing rows by unique customer total</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-rows-by-unique-customer-total/m-p/205985#M503455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob, enclosed you will find the expected values, the solution was quite simple so I do not know if this is what you where expecting.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 16:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-rows-by-unique-customer-total/m-p/205985#M503455</guid>
      <dc:creator />
      <dc:date>2010-04-07T16:13:14Z</dc:date>
    </item>
    <item>
      <title>Dividing rows by unique customer total</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-rows-by-unique-customer-total/m-p/205986#M503456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;Simple solution to this one, you simply need to add the "Total" identifier to your expression for % of Total as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=count(distinct customer_id)/count(total distinct customer_id)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope it helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 16:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-rows-by-unique-customer-total/m-p/205986#M503456</guid>
      <dc:creator />
      <dc:date>2010-04-07T16:16:15Z</dc:date>
    </item>
    <item>
      <title>Dividing rows by unique customer total</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-rows-by-unique-customer-total/m-p/205987#M503457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ivan and Nigel,&lt;/P&gt;&lt;P&gt;Thank you both for taking the time to provide your solutions. I thought it might be something I was missing.&lt;/P&gt;&lt;P&gt;rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 16:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-rows-by-unique-customer-total/m-p/205987#M503457</guid>
      <dc:creator />
      <dc:date>2010-04-07T16:22:59Z</dc:date>
    </item>
  </channel>
</rss>

