<?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 Count occurrences in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-occurrences/m-p/346950#M492536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables called DONOR (key DONOR_ID) and DONATION (DONATION_ID). They are connected via DONOR_ID.&lt;/P&gt;&lt;P&gt;Now I want to count how many Donors(uniqe DONOR_ID) that have exactly 2 donations(DONATION_ID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Databyran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2012 08:38:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-12T08:38:31Z</dc:date>
    <item>
      <title>Count occurrences</title>
      <link>https://community.qlik.com/t5/QlikView/Count-occurrences/m-p/346950#M492536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables called DONOR (key DONOR_ID) and DONATION (DONATION_ID). They are connected via DONOR_ID.&lt;/P&gt;&lt;P&gt;Now I want to count how many Donors(uniqe DONOR_ID) that have exactly 2 donations(DONATION_ID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Databyran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-occurrences/m-p/346950#M492536</guid>
      <dc:creator />
      <dc:date>2012-07-12T08:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count occurrences</title>
      <link>https://community.qlik.com/t5/QlikView/Count-occurrences/m-p/346951#M492537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you should be able to do something like this:&lt;/P&gt;&lt;P&gt;sum(aggr(if(Count(DONATION_ID)=2,1,0),DONOR_ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count all instance where the number of donation-id's = 2, for every&amp;nbsp; Donor_id and assign them the value 1. Then sum up these ones into the total count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-occurrences/m-p/346951#M492537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-12T08:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count occurrences</title>
      <link>https://community.qlik.com/t5/QlikView/Count-occurrences/m-p/346952#M492538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, worked perfect!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at this post - maybe you have a solution?&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/236513#236513"&gt;http://community.qlik.com/message/236513#236513&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Databyran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-occurrences/m-p/346952#M492538</guid>
      <dc:creator />
      <dc:date>2012-07-12T08:54:16Z</dc:date>
    </item>
  </channel>
</rss>

