<?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: Count Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Problem/m-p/1335538#M411968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;May be this:&lt;BR /&gt;&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;- How many customers ordered in exactly one order??? --&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Count (DISTINCT {&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;CustomerID = {"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count (DISTINCT OrderID) = 1&lt;/SPAN&gt;"}&lt;/SPAN&gt;&amp;gt;} CustomerID)&lt;/STRONG&gt;&lt;/SPAN&gt;&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;- How many customers ordered in multiple orders??? --&amp;gt; &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Count (DISTINCT {&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;CustomerID = {"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count (DISTINCT OrderID) &amp;gt; 1&lt;/SPAN&gt;"}&lt;/SPAN&gt;&amp;gt;} CustomerID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jun 2017 15:15:43 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-06-08T15:15:43Z</dc:date>
    <item>
      <title>Count Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Problem/m-p/1335537#M411967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my first post after learning a lot from this forum. Thanks a lot.&lt;/P&gt;&lt;P&gt;I hope you can help me with this problem, because I didn't find a solution yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table of order positions with OrderIDs and CustomerIDs. Each Order can have multiple rows (order positions) in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a pivot table I have to answer the following questions:&lt;/P&gt;&lt;P&gt;- How many orders do I have?&amp;nbsp; --&amp;gt; Count (DISTINCT OrderID)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;- How many customers do I have?&amp;nbsp; --&amp;gt; Count (DISTINCT CustomerID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;- How many customers ordered in exactly one order???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;- How many customers ordered in multiple orders???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a short extract of my table:&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 274px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="font-size: 8pt; color: #333333; font-weight: bold; font-family: Tahoma; border: 0.5pt solid gainsboro; background: whitesmoke;" width="66"&gt;OrderID&lt;/TD&gt;&lt;TD class="xl67" style="font-size: 8pt; color: #333333; font-weight: bold; font-family: Tahoma; border: 0.5pt solid gainsboro; background: whitesmoke;" width="89"&gt;CustomerID&lt;/TD&gt;&lt;TD class="xl67" style="font-size: 8pt; color: #333333; font-weight: bold; font-family: Tahoma; border: 0.5pt solid gainsboro; background: whitesmoke;" width="70"&gt;Quantity&lt;/TD&gt;&lt;TD class="xl68" style="font-size: 8pt; color: #333333; font-weight: bold; font-family: Tahoma; border: 0.5pt solid gainsboro; background: whitesmoke;" width="49"&gt;Price&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;1734872&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1002392&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;63,7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;1770372&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1010522&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;50,38&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;1770372&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1010522&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;38,57&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;1771172&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1008542&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;43,53&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;1772382&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1010522&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;33,45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;1781662&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1012682&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;13,4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;1781672&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1012682&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;53,61&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;1781682&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1012682&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;13,4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;1782712&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1000752&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;16,72&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;1782712&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;1000752&lt;/TD&gt;&lt;TD class="xl63" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 8pt; color: #333333; font-family: Tahoma; border: 0.5pt solid gainsboro; background: white;"&gt;16,72&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see customer 1010522 has two orders (1770372 and 1772382), customer 1012682 has three orders.&lt;/P&gt;&lt;P&gt;So I have two customers with multiple orders and three customers with exactly one order. That's what I need expressions for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A lot of thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 13:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Problem/m-p/1335537#M411967</guid>
      <dc:creator>ck14nobel</dc:creator>
      <dc:date>2017-06-08T13:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Problem/m-p/1335538#M411968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;May be this:&lt;BR /&gt;&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;- How many customers ordered in exactly one order??? --&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Count (DISTINCT {&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;CustomerID = {"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count (DISTINCT OrderID) = 1&lt;/SPAN&gt;"}&lt;/SPAN&gt;&amp;gt;} CustomerID)&lt;/STRONG&gt;&lt;/SPAN&gt;&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;- How many customers ordered in multiple orders??? --&amp;gt; &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Count (DISTINCT {&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;CustomerID = {"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count (DISTINCT OrderID) &amp;gt; 1&lt;/SPAN&gt;"}&lt;/SPAN&gt;&amp;gt;} CustomerID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 15:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Problem/m-p/1335538#M411968</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-08T15:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Problem/m-p/1335539#M411969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Sunny, that works for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 07:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Problem/m-p/1335539#M411969</guid>
      <dc:creator>ck14nobel</dc:creator>
      <dc:date>2017-06-09T07:53:18Z</dc:date>
    </item>
  </channel>
</rss>

