<?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 set expression to count customer who only purchasing selective products at one product group without purchasing other products at that group in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/set-expression-to-count-customer-who-only-purchasing-selective/m-p/2135660#M92303</link>
    <description>&lt;P&gt;hi gurus,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so I have a data structure like this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;product group, product, customer, units ,sales&lt;/P&gt;
&lt;P&gt;let 's say one of product groups is beverage, so product would be soda, juice , etc&amp;nbsp; but we have other product group like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;bread, diary ....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;now I want to know the count of customers who have only purchased product 'Juice' under product group of beverage&amp;nbsp;without purchasing any other beverage products across the board ....that means,&amp;nbsp; the count of those customers who have only purchased Juice but may also purchased bread products or diary products.....&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;so far I seem to be able to&amp;nbsp; get the customer count that only purchasing Juice without purchasing any other products at all... like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count({$&amp;lt;[Product Group]={'beverage'}, [Customer Full Name] ={"=Count( Distinct [Product Group])=1"}&amp;gt;} [Customer ])&lt;/P&gt;
&lt;P&gt;but do not get correct numbers by keeping the exclusion only at the level of product group of beverage&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any suggestions?&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 05:19:52 GMT</pubDate>
    <dc:creator>coloful_architect</dc:creator>
    <dc:date>2023-11-08T05:19:52Z</dc:date>
    <item>
      <title>set expression to count customer who only purchasing selective products at one product group without purchasing other products at that group</title>
      <link>https://community.qlik.com/t5/App-Development/set-expression-to-count-customer-who-only-purchasing-selective/m-p/2135660#M92303</link>
      <description>&lt;P&gt;hi gurus,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so I have a data structure like this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;product group, product, customer, units ,sales&lt;/P&gt;
&lt;P&gt;let 's say one of product groups is beverage, so product would be soda, juice , etc&amp;nbsp; but we have other product group like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;bread, diary ....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;now I want to know the count of customers who have only purchased product 'Juice' under product group of beverage&amp;nbsp;without purchasing any other beverage products across the board ....that means,&amp;nbsp; the count of those customers who have only purchased Juice but may also purchased bread products or diary products.....&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;so far I seem to be able to&amp;nbsp; get the customer count that only purchasing Juice without purchasing any other products at all... like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count({$&amp;lt;[Product Group]={'beverage'}, [Customer Full Name] ={"=Count( Distinct [Product Group])=1"}&amp;gt;} [Customer ])&lt;/P&gt;
&lt;P&gt;but do not get correct numbers by keeping the exclusion only at the level of product group of beverage&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any suggestions?&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 05:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-expression-to-count-customer-who-only-purchasing-selective/m-p/2135660#M92303</guid>
      <dc:creator>coloful_architect</dc:creator>
      <dc:date>2023-11-08T05:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: set expression to count customer who only purchasing selective products at one product group without purchasing other products at that group</title>
      <link>https://community.qlik.com/t5/App-Development/set-expression-to-count-customer-who-only-purchasing-selective/m-p/2135993#M92334</link>
      <description>&lt;P&gt;Perhaps this?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Count({$&amp;lt;[Product Group]=&lt;STRONG&gt;E(&lt;/STRONG&gt;{$&amp;lt;[Product Group]&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/FONT&gt;={'beverage'}&amp;gt;} &lt;STRONG&gt;[Product Group])&lt;/STRONG&gt;, [Customer Full Name] ={"=Count( Distinct [Product Group])=1"}&amp;gt;} [Customer ])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 20:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-expression-to-count-customer-who-only-purchasing-selective/m-p/2135993#M92334</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2023-11-08T20:25:47Z</dc:date>
    </item>
  </channel>
</rss>

