<?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 Distinct on Qlikview empty dimensional values? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Distinct-on-Qlikview-empty-dimensional-values/m-p/23728#M458576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently working on a dashboard where I count the amount of customers I've given a call. For each call there are a number of dimensions which can be filled in (or not). When I load the data as flat file (where all dimensions are added in the fact) the count distinct on customer_id goes fine. However, as we are using a dimensional model loaded from FACT and DIMENSION tables I would like to keep my starmodel in Qlikview for readability and structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works as follows: I have a VISIT table, with a PRODUCT_ID (which is nullable) and a CUSTOMER_ID, which is linked to PRODUCT on PRODUCT_ID. When I do a count(distinct(CUSTOMER_ID)) without putting PRODUCT_NAME (from the PRODUCT_TABLE), the count is fine. However when I add the PRODUCT_NAME it behaves strangely for my count. It counts customers without any PRODUCT_NAME as 1 for value "", which is as expected. However, when I have a customer with both a PRODUCT_NAME A and no PRODUCT_NAME it counts the customer as 1 for PRODUCT_NAME A and 0 for PRODUCT_NAME "".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect it to be 1 for PRODUCT_NAME A and 1 for PRODUCT_NAME "".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong here and how can I make my null value count correct as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikviewDK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Feb 2018 13:28:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-14T13:28:10Z</dc:date>
    <item>
      <title>Count Distinct on Qlikview empty dimensional values?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-on-Qlikview-empty-dimensional-values/m-p/23728#M458576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently working on a dashboard where I count the amount of customers I've given a call. For each call there are a number of dimensions which can be filled in (or not). When I load the data as flat file (where all dimensions are added in the fact) the count distinct on customer_id goes fine. However, as we are using a dimensional model loaded from FACT and DIMENSION tables I would like to keep my starmodel in Qlikview for readability and structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works as follows: I have a VISIT table, with a PRODUCT_ID (which is nullable) and a CUSTOMER_ID, which is linked to PRODUCT on PRODUCT_ID. When I do a count(distinct(CUSTOMER_ID)) without putting PRODUCT_NAME (from the PRODUCT_TABLE), the count is fine. However when I add the PRODUCT_NAME it behaves strangely for my count. It counts customers without any PRODUCT_NAME as 1 for value "", which is as expected. However, when I have a customer with both a PRODUCT_NAME A and no PRODUCT_NAME it counts the customer as 1 for PRODUCT_NAME A and 0 for PRODUCT_NAME "".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect it to be 1 for PRODUCT_NAME A and 1 for PRODUCT_NAME "".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong here and how can I make my null value count correct as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikviewDK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2018 13:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-on-Qlikview-empty-dimensional-values/m-p/23728#M458576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-14T13:28:10Z</dc:date>
    </item>
  </channel>
</rss>

