<?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: Count (distinct ..) with 2 parameters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-2-parameters/m-p/1271320#M871836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It counts the &lt;STRONG&gt;Distinct combination&lt;/STRONG&gt; of ID and NAME. You can assume of a composite key made of ID and NAME, and the expression gives the distinct count of the key followed by where clause (like you said).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2016 04:55:48 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2016-11-18T04:55:48Z</dc:date>
    <item>
      <title>Count (distinct ..) with 2 parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-2-parameters/m-p/1271318#M871834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: calibri, verdana, arial, sans-serif;"&gt;Hi Experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000080;"&gt;I came across an expression in which 2 parameters were passed in the Count(Distinct para1&amp;amp;para2) and I am not pretty sure whether i get it correctly or not, hence would like to hear from the experts on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000080;"&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt; : =count({&amp;lt;[Type]={'Document'}&amp;gt;} DISTINCT ID&amp;amp;[DOC Name])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000080;"&gt;In the expression above Count (Distinct) is used with 2 parameters i.e. &lt;SPAN style="text-decoration: underline;"&gt;ID&lt;/SPAN&gt; and &lt;SPAN style="text-decoration: underline;"&gt;NAME&lt;/SPAN&gt; followed by a where condition of Type= "Document".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000080;"&gt;According to my understanding the above expression is counting number of Distinct ID of respective DOC Name followed by where condition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000080;"&gt;Would like to hear from you whether my understanding is correct or not?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000080;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: calibri, verdana, arial, sans-serif;"&gt;Punit&lt;/SPAN&gt;&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/Count-distinct-with-2-parameters/m-p/1271318#M871834</guid>
      <dc:creator>punitpopli</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count (distinct ..) with 2 parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-2-parameters/m-p/1271319#M871835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assume, If we have the same values from those two fields of concatenate it will work as you think. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *, [DOC Name] &amp;amp; ID as Key Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID, DOC Name, Type&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, A, Document&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2, B, Document&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, C, Document&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, A, Document1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count({&amp;lt;[Type]={'Document'}&amp;gt;} DISTINCT Key)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this from your end on your personal edition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 04:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-with-2-parameters/m-p/1271319#M871835</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-11-18T04:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count (distinct ..) with 2 parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-2-parameters/m-p/1271320#M871836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It counts the &lt;STRONG&gt;Distinct combination&lt;/STRONG&gt; of ID and NAME. You can assume of a composite key made of ID and NAME, and the expression gives the distinct count of the key followed by where clause (like you said).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 04:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-with-2-parameters/m-p/1271320#M871836</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-11-18T04:55:48Z</dc:date>
    </item>
  </channel>
</rss>

