<?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: Conditional Count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843969#M1013385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The&lt;/P&gt;&lt;P&gt;aggr(count(DISTINCT PRODUCT_ID), PATRON_ID)&lt;/P&gt;&lt;P&gt;part will return the number of distinct products bought by a patron.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The comparison with 1 will return a boolean TRUE, which is the numeric -1, if there is more than 1 distinct product bought, and FALSE 0 otherwise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for each patron (in your current selection) this will return -1 if he/she bought more than one unique product (in your current selection), and 0 if not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;summing that will give you the number of patrons which bought more than one unique product, but as a negative number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the preceding minus is to get the correct sign.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2015 06:48:49 GMT</pubDate>
    <dc:creator>gandalfgray</dc:creator>
    <dc:date>2015-04-16T06:48:49Z</dc:date>
    <item>
      <title>Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843961#M1013369</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 have a list of Patrons "Patron_ID" (numeric) and a list of products "PRODUCT_ID" (numeric)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/83837_2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;At the front end, I would like to have an expression that calculates the number of returning customers, ie customers who purchased more than one product. However, I am struggling with the expression script at the moment. As you can see from the above image, the "Returning Customers" should indicate as "0" as the patron has only bought one show ticket&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried the following to no avail:&lt;/P&gt;&lt;P&gt;if(PRODUCT_ID &amp;gt;=2, count(DISTINCT(PATRON_ID)))&lt;/P&gt;&lt;P&gt;//i clicked on a patron who purchased only 1 product, but it still shows the returning customers as "1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count((if(count (PRODUCT_ID&amp;gt;1),PATRON_ID))) &lt;/P&gt;&lt;P&gt;//error in expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any guidance will be much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 05:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843961#M1013369</guid>
      <dc:creator />
      <dc:date>2015-04-16T05:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843962#M1013371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(if (match([ECO state],'Define Components','Design Work' ),[ECO state]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 05:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843962#M1013371</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2015-04-16T05:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843963#M1013373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(if(PRODUCT_ID &amp;gt;=2, PATRON_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 06:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843963#M1013373</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2015-04-16T06:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843964#M1013375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;PRODUCT_ID={"&amp;gt;=2"}&amp;gt;}Dimesion)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 06:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843964#M1013375</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2015-04-16T06:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843965#M1013377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried your suggestions but I am still unable to achieve the correct count (still showing as "1" when correct count should be 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached QVW for your consideration&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 06:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843965#M1013377</guid>
      <dc:creator />
      <dc:date>2015-04-16T06:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843966#M1013378</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;is this what you are looking for?&lt;/P&gt;&lt;P&gt;sum(aggr(sum(TICKETS_SOLD)&amp;gt;1,PRODUCT_NAME))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 06:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843966#M1013378</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2015-04-16T06:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843967#M1013379</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;Unfortunately not, as a single patron can purchase multiple tickets for a single product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking to do a count of the number of patrons who purchase different products, regardless of the quantity of tickets purchased&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 06:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843967#M1013379</guid>
      <dc:creator />
      <dc:date>2015-04-16T06:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843968#M1013381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-sum( aggr(count(DISTINCT PRODUCT_ID), PATRON_ID)&amp;gt;1 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 06:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843968#M1013381</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2015-04-16T06:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843969#M1013385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The&lt;/P&gt;&lt;P&gt;aggr(count(DISTINCT PRODUCT_ID), PATRON_ID)&lt;/P&gt;&lt;P&gt;part will return the number of distinct products bought by a patron.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The comparison with 1 will return a boolean TRUE, which is the numeric -1, if there is more than 1 distinct product bought, and FALSE 0 otherwise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for each patron (in your current selection) this will return -1 if he/she bought more than one unique product (in your current selection), and 0 if not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;summing that will give you the number of patrons which bought more than one unique product, but as a negative number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the preceding minus is to get the correct sign.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 06:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843969#M1013385</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2015-04-16T06:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843970#M1013386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this it will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&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: #800000; font-size: 8pt;"&gt;PRODUCT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PATRON_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;=2,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PATRON_ID&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;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks,&lt;BR /&gt;Ashok.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 07:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843970#M1013386</guid>
      <dc:creator />
      <dc:date>2015-04-16T07:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843971#M1013387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I THINK YOU SHOULD USE ADVANCED SET ANALYSIS, TRY THIS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PATRON_ID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;= {&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;"=Count(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PRODUCT_ID&lt;/SPAN&gt;) &amp;gt; 1"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PATRON_ID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 07:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843971#M1013387</guid>
      <dc:creator />
      <dc:date>2015-04-16T07:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843972#M1013388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using my original stmt will give one too much in some situations because it also counts products not connected (bought) by a patron.&lt;/P&gt;&lt;P&gt;This change will fix that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-sum( aggr(count(DISTINCT PRODUCT_ID), PATRON_ID)&amp;gt;1&lt;STRONG&gt; and PATRON_ID&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashoks suggestion also works if you add DISTINCT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&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;(DISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRODUCT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PATRON_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;=2,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PATRON_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;It is a good practice to try to avoid "if"&amp;nbsp; in chart expressions, but in a case like this it may be easier to understand.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;anyway both statements above give the same answers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;/gg&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 07:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843972#M1013388</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2015-04-16T07:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843973#M1013389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;AND IF YOU WANT TO CHECK THE COUNT OF PRODUCT DISTINCTLY TRY THIS:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;PATRON_ID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;= {&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;"=Count(&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;PRODUCT_ID&lt;/SPAN&gt;) &amp;gt; 1"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;PATRON_ID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 07:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843973#M1013389</guid>
      <dc:creator />
      <dc:date>2015-04-16T07:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843974#M1013390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for the heads up! Will read up on the "aggr" function and learn how it works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 07:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843974#M1013390</guid>
      <dc:creator />
      <dc:date>2015-04-16T07:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843975#M1013391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Aggr(if(count (PRODUCT_ID)&amp;gt;1, 1), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PATRON_ID&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 07:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count/m-p/843975#M1013391</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-04-16T07:58:35Z</dc:date>
    </item>
  </channel>
</rss>

