<?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: Case for aggr function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Case-for-aggr-function/m-p/88144#M756461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Straight Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim = ID&lt;/P&gt;&lt;P&gt;Exp1 = count(aggr( ID,Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="213953" alt="Unbenannt.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213953_Unbenannt.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2018 14:11:33 GMT</pubDate>
    <dc:creator>Frank_Hartmann</dc:creator>
    <dc:date>2018-09-19T14:11:33Z</dc:date>
    <item>
      <title>Case for aggr function?</title>
      <link>https://community.qlik.com/t5/QlikView/Case-for-aggr-function/m-p/88142#M756459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to count distinct number of events per year based on a date, but there is a problem when it is used the regular count ( Distinct "dimension") in expression chart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the fact table: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Event&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Control&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/01/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/01/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/01/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03/07/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03/07/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/01/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Z&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/01/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Z&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/10/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10/10/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10/10/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in this case, when I use the expression Count ( distinct ID), having the dimension year(Date) and Event, the result is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A = 1 &lt;/P&gt;&lt;P&gt;B = 1 &lt;/P&gt;&lt;P&gt;C = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the desirable result is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A = 2&lt;/P&gt;&lt;P&gt;B = 2&lt;/P&gt;&lt;P&gt;C = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an idea of what can be done?&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, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-for-aggr-function/m-p/88142#M756459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Case for aggr function?</title>
      <link>https://community.qlik.com/t5/QlikView/Case-for-aggr-function/m-p/88143#M756460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try count(distinct Date) as expression with ID as dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 14:11:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-for-aggr-function/m-p/88143#M756460</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-09-19T14:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Case for aggr function?</title>
      <link>https://community.qlik.com/t5/QlikView/Case-for-aggr-function/m-p/88144#M756461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Straight Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim = ID&lt;/P&gt;&lt;P&gt;Exp1 = count(aggr( ID,Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="213953" alt="Unbenannt.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213953_Unbenannt.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 14:11:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-for-aggr-function/m-p/88144#M756461</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2018-09-19T14:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Case for aggr function?</title>
      <link>https://community.qlik.com/t5/QlikView/Case-for-aggr-function/m-p/88145#M756462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks friends, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to include that the result will be shown in a chart like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="event.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213946_event.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 14:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-for-aggr-function/m-p/88145#M756462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-19T14:40:56Z</dc:date>
    </item>
  </channel>
</rss>

