<?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: Set analysis with count function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728217#M260985</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 like 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;"&gt;=Count(Aggr(If(Count(CustomerID) &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=1, 1)&lt;/SPAN&gt;, Year, CustomerID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&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;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2014 08:45:11 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2014-10-15T08:45:11Z</dc:date>
    <item>
      <title>Set analysis with count function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728215#M260983</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;I have a sales table and want to count the no. of customer that only have one transaction in the year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tx Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoice No.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales Amount&lt;/P&gt;&lt;P&gt;Jan 2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A0000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CS0001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Jan 2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A0001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; CS0002&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Jan 2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A0002&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CS0001&lt;/P&gt;&lt;P&gt;Feb 2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A0003&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CS0001&lt;/P&gt;&lt;P&gt;Jan 2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A0004&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CS0003&lt;/P&gt;&lt;P&gt;Jan 2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A0005&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CS0003&lt;/P&gt;&lt;P&gt;Feb 2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A0006&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt; CS0002&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expected result will be &lt;/P&gt;&lt;P&gt;Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No. of one time purchase customer&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use a count function in a set analysis to filter those Customer ID that has multiple sales?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 08:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728215#M260983</guid>
      <dc:creator />
      <dc:date>2014-10-15T08:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with count function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728216#M260984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are thinking of using a chart, set analysis might not be the solution. Try:&lt;/P&gt;&lt;P&gt;Straight table:&lt;/P&gt;&lt;P&gt;Dim: Year&lt;/P&gt;&lt;P&gt;Exp1: FirstsortedValue(CustomerID, Aggr(Count(CustomerID),Year,CustomerID))&lt;/P&gt;&lt;P&gt;Exp2:Count(If(Aggr(Count(CustomerID), Year, CustomerID)=1, CustomerID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Corrected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 08:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728216#M260984</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-10-15T08:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with count function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728217#M260985</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 like 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;"&gt;=Count(Aggr(If(Count(CustomerID) &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=1, 1)&lt;/SPAN&gt;, Year, CustomerID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&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;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 08:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728217#M260985</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-10-15T08:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with count function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728218#M260986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly find the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mukram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 08:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728218#M260986</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2014-10-15T08:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with count function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728219#M260987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An even more slicker expression without using an if statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(-aggr(Count([Customer ID])=1,[Customer ID],Year))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 09:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728219#M260987</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-10-15T09:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with count function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728220#M260988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for the tips&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 08:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728220#M260988</guid>
      <dc:creator />
      <dc:date>2014-10-16T08:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with count function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728221#M260989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you mark the one that helped your case as the correct one please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This could help other users with a similar issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 08:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728221#M260989</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-10-16T08:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with count function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728222#M260990</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;Close this thread if you got the answer by giving Correct and Helpful answers to the useful posts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 08:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-count-function/m-p/728222#M260990</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-10-16T08:43:15Z</dc:date>
    </item>
  </channel>
</rss>

