<?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 Counting customers with certain variables in orders in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-customers-with-certain-variables-in-orders/m-p/1096675#M941694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running into a problem. I want to count the number of customers who have ordered a certain set of clothes in their orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I at first made the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;%ARTICLE_VARIANT = {'A','B*','C','D'}, CUSTOMER = &lt;/P&gt;&lt;P&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'A'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'B*'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'C'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'D'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;gt;} DISTINCT &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me the number of customers who ordered all these articles. Now I have another set of different articles I would like to calculate as well. IE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;count({$&amp;lt;%ARTICLE_VARIANT = {'D','E*','F','G'}, CUSTOMER = &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'D'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'E*'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'F'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'G'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;gt;} DISTINCT &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Now if I just sum these calculations I run into a problem. The result of the first can be 4 customers and of the second can be 4 customers, so the result would be 8. But what if a single customer ordered both sets. The result should be 7 instead of 8.&amp;nbsp; How can I do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jan 2016 13:31:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-15T13:31:30Z</dc:date>
    <item>
      <title>Counting customers with certain variables in orders</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-customers-with-certain-variables-in-orders/m-p/1096675#M941694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running into a problem. I want to count the number of customers who have ordered a certain set of clothes in their orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I at first made the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;%ARTICLE_VARIANT = {'A','B*','C','D'}, CUSTOMER = &lt;/P&gt;&lt;P&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'A'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'B*'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'C'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'D'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;gt;} DISTINCT &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me the number of customers who ordered all these articles. Now I have another set of different articles I would like to calculate as well. IE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;count({$&amp;lt;%ARTICLE_VARIANT = {'D','E*','F','G'}, CUSTOMER = &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'D'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'E*'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'F'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;p({$&amp;lt;%&lt;SPAN style="font-size: 13.3333px;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'G'}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;gt;} DISTINCT &lt;SPAN style="font-size: 13.3333px;"&gt;CUSTOMER&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Now if I just sum these calculations I run into a problem. The result of the first can be 4 customers and of the second can be 4 customers, so the result would be 8. But what if a single customer ordered both sets. The result should be 7 instead of 8.&amp;nbsp; How can I do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2016 13:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-customers-with-certain-variables-in-orders/m-p/1096675#M941694</guid>
      <dc:creator />
      <dc:date>2016-01-15T13:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Counting customers with certain variables in orders</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-customers-with-certain-variables-in-orders/m-p/1096676#M941695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out this description:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/124235"&gt;Combining logical operators in set analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2016 17:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-customers-with-certain-variables-in-orders/m-p/1096676#M941695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-15T17:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Counting customers with certain variables in orders</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-customers-with-certain-variables-in-orders/m-p/1096677#M941696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe try to create a combined set the contains both customer sub sets, then do the DISTINCT count:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{$&amp;lt;%ARTICLE_VARIANT = {'A','B*','C','D'}, CUSTOMER =&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;p({$&amp;lt;%&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'A'}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;p({$&amp;lt;%&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'B*'}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;p({$&amp;lt;%&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'C'}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;p({$&amp;lt;%&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'D'}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;CUSTOMER&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;+&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&amp;lt;%ARTICLE_VARIANT = {'D','E*','F','G'}, CUSTOMER =&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;p({$&amp;lt;%&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'D'}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;p({$&amp;lt;%&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'E*'}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;p({$&amp;lt;%&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'F'}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;CUSTOMER&lt;/SPAN&gt;)*&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;p({$&amp;lt;%&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ARTICLE_VARIANT&lt;/SPAN&gt; = {'G'}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;CUSTOMER&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;}&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DISTINCT &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;CUSTOMER&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2016 17:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-customers-with-certain-variables-in-orders/m-p/1096677#M941696</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-15T17:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Counting customers with certain variables in orders</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-customers-with-certain-variables-in-orders/m-p/1096678#M941697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 11:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-customers-with-certain-variables-in-orders/m-p/1096678#M941697</guid>
      <dc:creator />
      <dc:date>2016-01-18T11:46:37Z</dc:date>
    </item>
  </channel>
</rss>

