<?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: how to get this count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859639#M300982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;You&amp;nbsp; can use:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ProductType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'')='penpencil' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ProductType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'')='pencilpen',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OrderID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2015 11:55:17 GMT</pubDate>
    <dc:creator>ankit777</dc:creator>
    <dc:date>2015-05-27T11:55:17Z</dc:date>
    <item>
      <title>how to get this count</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859635#M300978</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;there is requirement where I need to calculate Orders who have only pen and pencil under that order..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example below is my data set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;OrderID,ProductType&lt;/P&gt;&lt;P&gt;1,pen&lt;/P&gt;&lt;P&gt;1,pencil&lt;/P&gt;&lt;P&gt;1,paper&lt;/P&gt;&lt;P&gt;2,pen&lt;/P&gt;&lt;P&gt;2,pencil&lt;/P&gt;&lt;P&gt;3,rubber&lt;/P&gt;&lt;P&gt;3,pen&lt;/P&gt;&lt;P&gt;3,pencil&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the above case if I want to calculate count of orderID for only pen and pencil then it should come = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 11:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859635#M300978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-27T11:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to get this count</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859636#M300979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps&lt;/P&gt;&lt;P&gt;Count(Distinct Aggr(If(Concat(ProductType) = 'penpencil' Or Concat(ProductType) = 'pencilpen', OrderID), OrderID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 11:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859636#M300979</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-05-27T11:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to get this count</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859637#M300980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try =count({&amp;lt;OrderID=E({&amp;lt;ProductType-={'pen','pencil'}&amp;gt;}OrderID)&amp;gt;}distinct OrderID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 11:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859637#M300980</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-27T11:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to get this count</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859638#M300981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Count(DISTINCT {&amp;lt;OrderID=E({&amp;lt; ProductType -= {'pen','pencil'}&amp;gt;}) &amp;gt;} OrderID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(DISTINCT OrderID) - Count(DISTINCT {&amp;lt; ProductType -= {'pen','pencil'} &amp;gt;} OrderID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 11:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859638#M300981</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-05-27T11:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to get this count</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859639#M300982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;You&amp;nbsp; can use:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ProductType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'')='penpencil' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ProductType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'')='pencilpen',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OrderID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 11:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859639#M300982</guid>
      <dc:creator>ankit777</dc:creator>
      <dc:date>2015-05-27T11:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to get this count</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859640#M300983</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;Try this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OrderID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ProductType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;e&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ProductType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'pen','pencil'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ProductType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OrderID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sushil&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 11:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859640#M300983</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2015-05-27T11:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to get this count</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859641#M300984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in a text box&lt;/P&gt;&lt;P&gt;=sum(aggr(if(count({$ &amp;lt;ProductType={pen,pencil}&amp;gt;} distinct ProductType)=count(DISTINCT ProductType),1,0),OrderID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a chart with order id as dimension&lt;/P&gt;&lt;P&gt;if(count({$ &amp;lt;ProductType={pen,pencil}&amp;gt;} distinct ProductType)=count(DISTINCT ProductType),1,0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 12:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-this-count/m-p/859641#M300984</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-05-27T12:28:07Z</dc:date>
    </item>
  </channel>
</rss>

