<?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 Question on Count based on 2 fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-on-Count-based-on-2-fields/m-p/1305118#M824717</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 am having a situation where i am unable to figure out the expression for Count based on 2 fields. I am trying to create a pie chart with Status as dimension and in the expression, i have to calculate the count of Status on a distinct [CD Key] and the max date. I tried to use Aggr(), several combinations of Count and distinct. Can any one help out?&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>
    <dc:creator>don_qlikview</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Question on Count based on 2 fields</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Count-based-on-2-fields/m-p/1305118#M824717</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 am having a situation where i am unable to figure out the expression for Count based on 2 fields. I am trying to create a pie chart with Status as dimension and in the expression, i have to calculate the count of Status on a distinct [CD Key] and the max date. I tried to use Aggr(), several combinations of Count and distinct. Can any one help out?&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/Question-on-Count-based-on-2-fields/m-p/1305118#M824717</guid>
      <dc:creator>don_qlikview</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Count based on 2 fields</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Count-based-on-2-fields/m-p/1305119#M824718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Status={'A'}, Date={"$(=date(max(Date))"}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; distinct [CD Key]&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 13:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Count-based-on-2-fields/m-p/1305119#M824718</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-07-13T13:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Count based on 2 fields</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Count-based-on-2-fields/m-p/1305120#M824719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But this might not work if the max date is different for each Status... if that's true than may be this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT Aggr(If(Date = Max(TOTAL &amp;lt;Status&amp;gt; Date), &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;[CD Key]), Status, Date))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 14:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Count-based-on-2-fields/m-p/1305120#M824719</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-13T14:01:28Z</dc:date>
    </item>
  </channel>
</rss>

