<?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: Sales Overlap / Intersection problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545266#M203650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Sorry for the messy tables, but this is what I am getting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 394px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="98"&gt;Category&lt;/TD&gt;&lt;TD class="xl66" width="296"&gt;if(count(distinct [Product])=1,&lt;BR /&gt;&amp;nbsp; 0, count(distinct [Product]))&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Contractor&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Door&lt;BR /&gt;&amp;nbsp; manufacturer&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Floor&lt;BR /&gt;&amp;nbsp; manufacturer&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Wholesale&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With my above suggestion I get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="492"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Category&lt;/TD&gt;&lt;TD class="xl64" width="394"&gt;Count(DISTINCT If(Aggr(Count&lt;BR /&gt;&amp;nbsp; (DISTINCT Category), Product)&amp;gt;1, Product ) ) &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Contractor&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Floor&lt;BR /&gt;&amp;nbsp; manufacturer&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Wholesale&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jul 2013 13:10:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-31T13:10:51Z</dc:date>
    <item>
      <title>Sales Overlap / Intersection problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545262#M203646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi all,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Consider the following table of products sold to various customer categories. Some of the products are exclusive to one customer category, hence only appearing once, and other products are shared among two or more categories:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="715" style="border: 1px solid rgb(0, 0, 0); width: 287px; height: 672px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Product Number&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Customer Category&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;1001&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Window manufacturer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;Door manufacturer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1003&lt;/TD&gt;&lt;TD&gt;Floor manufacturer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1004&lt;/TD&gt;&lt;TD&gt;Floor manufacturer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1005&lt;/TD&gt;&lt;TD&gt;Decking manufacturer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1006&lt;/TD&gt;&lt;TD&gt;Contractor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1007&lt;/TD&gt;&lt;TD&gt;Contractor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1007&lt;/TD&gt;&lt;TD&gt;Floor manufacturer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1008&lt;/TD&gt;&lt;TD&gt;Wholesale&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1009&lt;/TD&gt;&lt;TD&gt;Wholesale&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1009&lt;/TD&gt;&lt;TD&gt;Floor manufacturer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1009&lt;/TD&gt;&lt;TD&gt;Door manufacturer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1009&lt;/TD&gt;&lt;TD&gt;Contractor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1010&lt;/TD&gt;&lt;TD&gt;Door manufacturer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1011&lt;/TD&gt;&lt;TD&gt;Contractor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1012&lt;/TD&gt;&lt;TD&gt;Floor manufacturer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1012&lt;/TD&gt;&lt;TD&gt;Door manufacturer&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; Now I want to find out the number of distinct products (for each customer category) that are shared between customer categories, displayed on customer category. In fact the follwing table:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="155" style="border: 1px solid rgb(0, 0, 0); width: 629px; height: 148px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Customer Category&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;# of distinct articles that are shared by at least one other customer category&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Window manufacturer&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Door manufacturer&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Floor manufacturer&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Decking manufacturer&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Contractor&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Wholesale&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; I have tried the follwing expression in a straight table but it doesn't seem to be working:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count(DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt; (&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer Category]&lt;/SPAN&gt;), &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Product Number]&lt;/SPAN&gt;)&amp;gt;1, &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Product Number] &lt;/SPAN&gt;) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone give me a push in the right direction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 12:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545262#M203646</guid>
      <dc:creator />
      <dc:date>2013-07-31T12:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Overlap / Intersection problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545263#M203647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this (assuming that Customer Category is table dimension):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(count(distinct [Product Number])=1, 0, count(distinct [Product Number]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 12:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545263#M203647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-31T12:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Overlap / Intersection problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545264#M203648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the suggested result does not render the expected outcome. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 13:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545264#M203648</guid>
      <dc:creator />
      <dc:date>2013-07-31T13:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Overlap / Intersection problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545265#M203649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, what are you getting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 13:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545265#M203649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-31T13:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Overlap / Intersection problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545266#M203650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Sorry for the messy tables, but this is what I am getting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 394px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="98"&gt;Category&lt;/TD&gt;&lt;TD class="xl66" width="296"&gt;if(count(distinct [Product])=1,&lt;BR /&gt;&amp;nbsp; 0, count(distinct [Product]))&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Contractor&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Door&lt;BR /&gt;&amp;nbsp; manufacturer&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Floor&lt;BR /&gt;&amp;nbsp; manufacturer&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Wholesale&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With my above suggestion I get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="492"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Category&lt;/TD&gt;&lt;TD class="xl64" width="394"&gt;Count(DISTINCT If(Aggr(Count&lt;BR /&gt;&amp;nbsp; (DISTINCT Category), Product)&amp;gt;1, Product ) ) &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Contractor&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Floor&lt;BR /&gt;&amp;nbsp; manufacturer&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Wholesale&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 13:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545266#M203650</guid>
      <dc:creator />
      <dc:date>2013-07-31T13:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Overlap / Intersection problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545267#M203651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just realized I made a mistake in the expected outcome. So this is what I want it to look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Category&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; #of distinct articles shared by other categories&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Window manufacturer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;Door manufacturer&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (product nr: 1009, 1012)&lt;/P&gt;&lt;P&gt;Floor manufacturer&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (product nr: 1007, 1009, 1012)&lt;/P&gt;&lt;P&gt;Decking manufacturer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;Contractor&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; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (product nr: 1007, 1009) &lt;/P&gt;&lt;P&gt;Wholesale&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; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (product nr: 1009) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the mishap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 13:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545267#M203651</guid>
      <dc:creator />
      <dc:date>2013-07-31T13:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Overlap / Intersection problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545268#M203652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just understood what you want - count products per Category, but &lt;STRONG&gt;include only the Products which exist in more than one Category.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is it correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 13:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545268#M203652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-31T13:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Overlap / Intersection problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545269#M203653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct! The count of distinct products that exists in more than one category displayed per category&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 13:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545269#M203653</guid>
      <dc:creator />
      <dc:date>2013-07-31T13:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Overlap / Intersection problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545270#M203654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it - see attached.&lt;/P&gt;&lt;P&gt;Expresion is using set, and I created a variable with another expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 14:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545270#M203654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-31T14:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Overlap / Intersection problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545271#M203655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Michael!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 06:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545271#M203655</guid>
      <dc:creator />
      <dc:date>2013-08-01T06:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Overlap / Intersection problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545272#M203656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to bother you..... but I have stumbled across a problem. For certain products (in my dataset) the field "Product Number" are not really a number but rather a textstring, now this is not a problem in my case because I can elimate them since they are not of interest. Although it would be great to know if there is any way of making the above solution work also for cases where "Product Number" is not actually a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, for a specific entire country (and this I can't be without) the "Product Number" field is named as "3-27278", "2-55448", in fact a "-" sign in the string. This also causes the above solution to fail. Is there any way of working around this issue or adapt the above solution to this scenario?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time and your help!&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 08:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545272#M203656</guid>
      <dc:creator />
      <dc:date>2013-08-01T08:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Overlap / Intersection problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545273#M203657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved it using PurgeChar() function, for my latter problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thanks for all the help Michael!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 09:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545273#M203657</guid>
      <dc:creator />
      <dc:date>2013-08-01T09:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Overlap / Intersection problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545274#M203658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will work with text if change the variable a little, enclosing each value in single quotes:&lt;/P&gt;&lt;P&gt;=chr(39) &amp;amp; concat(distinct&lt;/P&gt;&lt;P&gt;if(aggr(count(distinct "Customer Category"),"Product Number")&amp;gt;1,&lt;/P&gt;&lt;P&gt; "Product Number")&lt;/P&gt;&lt;P&gt; , chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 13:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Overlap-Intersection-problem/m-p/545274#M203658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-01T13:21:39Z</dc:date>
    </item>
  </channel>
</rss>

