<?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 of Distinct Values In One Column When Condition In Another Column Is Met in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/914316#M989861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do it with set analysis within the expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt; [Status Type] = {'CON'}&amp;gt; } distinct [Partner ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2015 17:25:52 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-07-24T17:25:52Z</dc:date>
    <item>
      <title>Count of Distinct Values In One Column When Condition In Another Column Is Met</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/914315#M989859</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 table that looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table Sample.png" class="jive-image image-1" src="/legacyfs/online/93933_Table Sample.png" style="height: 383px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have "Product Id" in a straight table. For each "Product Id" row, I want to display a column that displays a count according to the following logic: Distinct "Partner ID" values for each "Product Id" where "Status Type" = "CON." I think I know how to just do a simple distinct count, but I'm not sure about the proper syntax for the AND Status Type = CON condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could be detailed about where exactly I need to put this code in the straight table properties, I would really appreciate it (I'm still pretty new to this). Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kenny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 17:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/914315#M989859</guid>
      <dc:creator />
      <dc:date>2015-07-24T17:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Distinct Values In One Column When Condition In Another Column Is Met</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/914316#M989861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do it with set analysis within the expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt; [Status Type] = {'CON'}&amp;gt; } distinct [Partner ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 17:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/914316#M989861</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-07-24T17:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Distinct Values In One Column When Condition In Another Column Is Met</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/914317#M989862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this as your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;[Status Type] = {"CON"}&amp;gt;} [Partner ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and dimension &lt;STRONG&gt;Product Id&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 17:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/914317#M989862</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-24T17:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Distinct Values In One Column When Condition In Another Column Is Met</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/914318#M989864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marc/Sunny for the really quick response. I'm sure one of these works perfectly. I'll test on Mon. and be sure to mark the correct answer. Really appreciate the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 17:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/914318#M989864</guid>
      <dc:creator />
      <dc:date>2015-07-24T17:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Distinct Values In One Column When Condition In Another Column Is Met</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/914319#M989866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem Kenny &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We both actually gave the same solution, just the place of DISTINCT is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 17:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/914319#M989866</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-24T17:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Distinct Values In One Column When Condition In Another Column Is Met</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/1596368#M989868</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I had a similar issue. So I have two columns, PART AND CUBES, with one to many relationship.(one PART can have many CUBES or a PART can have no CUBE).&lt;/P&gt;&lt;P&gt;Scenario: If I select 3 PARTS which have 2 CUBES, wherein 2 PARTS have 2 CUBES and 1 PART has no cube. I want a count of all the CUBES plus any PART which has no CUBES.&lt;/P&gt;&lt;P&gt;So the count should be 2+1=3.&lt;/P&gt;&lt;P&gt;How can I implement this?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 15:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/1596368#M989868</guid>
      <dc:creator>abhi1693r</dc:creator>
      <dc:date>2019-06-26T15:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Distinct Values In One Column When Condition In Another Column Is Met</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/1596580#M989869</link>
      <description>&lt;P&gt;I'm not sure that I understand what your difficulties are but you could also count over multiple fields maybe with something like this:&lt;/P&gt;&lt;P&gt;count(distinct PART&lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt;CUBES)&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 07:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Distinct-Values-In-One-Column-When-Condition-In-Another/m-p/1596580#M989869</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-06-27T07:02:37Z</dc:date>
    </item>
  </channel>
</rss>

