<?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 when all value in field x are null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-distinct-when-all-value-in-field-x-are-null/m-p/1744951#M453219</link>
    <description>&lt;P&gt;Thank you for your quick answer, unfortunately it does not give the correct result. This counts the employee for which &lt;STRONG&gt;one of the&lt;/STRONG&gt; date fields is empty, but it should only count when &lt;STRONG&gt;ALL&lt;/STRONG&gt; date fields are empty for that employee.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Sep 2020 06:26:33 GMT</pubDate>
    <dc:creator>curiousfellow</dc:creator>
    <dc:date>2020-09-18T06:26:33Z</dc:date>
    <item>
      <title>count distinct when all value in field x are null</title>
      <link>https://community.qlik.com/t5/QlikView/count-distinct-when-all-value-in-field-x-are-null/m-p/1744791#M453196</link>
      <description>&lt;P&gt;I have a table in which there are for every employee several records.&lt;/P&gt;&lt;P&gt;I a date field there can be a date-value but it can be empty to.&lt;/P&gt;&lt;P&gt;Now I want to distinct count all employees for which all datefields are empty. I cannot&amp;nbsp;get to the right expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried something like =sum(if (agrr(sum(date-field),employee)=&amp;nbsp;0 &amp;nbsp;count(distinct employee)&amp;nbsp;) but that does not give any result.&lt;/P&gt;&lt;P&gt;There are more conditions to add like date(start) &amp;lt; addyears(now(),-1) but when you could be so kind to give me a hint I can do the rest by my self.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 13:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-distinct-when-all-value-in-field-x-are-null/m-p/1744791#M453196</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2020-09-17T13:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: count distinct when all value in field x are null</title>
      <link>https://community.qlik.com/t5/QlikView/count-distinct-when-all-value-in-field-x-are-null/m-p/1744796#M453199</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {&amp;lt;employee = {"=Len(Trim([date-field])) = 0"}&amp;gt;} employee)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Sep 2020 14:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-distinct-when-all-value-in-field-x-are-null/m-p/1744796#M453199</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-17T14:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: count distinct when all value in field x are null</title>
      <link>https://community.qlik.com/t5/QlikView/count-distinct-when-all-value-in-field-x-are-null/m-p/1744951#M453219</link>
      <description>&lt;P&gt;Thank you for your quick answer, unfortunately it does not give the correct result. This counts the employee for which &lt;STRONG&gt;one of the&lt;/STRONG&gt; date fields is empty, but it should only count when &lt;STRONG&gt;ALL&lt;/STRONG&gt; date fields are empty for that employee.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 06:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-distinct-when-all-value-in-field-x-are-null/m-p/1744951#M453219</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2020-09-18T06:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: count distinct when all value in field x are null</title>
      <link>https://community.qlik.com/t5/QlikView/count-distinct-when-all-value-in-field-x-are-null/m-p/1744956#M453220</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48508"&gt;@curiousfellow&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You are probably talking about all VALUES in a date field to be empty. If so, try like:&lt;/P&gt;&lt;P&gt;Count(DISTINCT {&amp;lt;employee = {"=&lt;STRONG&gt;Max(&lt;/STRONG&gt;Len(Trim([date-field]))&lt;STRONG&gt;)&lt;/STRONG&gt; = 0"}&amp;gt;} employee)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 06:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-distinct-when-all-value-in-field-x-are-null/m-p/1744956#M453220</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-09-18T06:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: count distinct when all value in field x are null</title>
      <link>https://community.qlik.com/t5/QlikView/count-distinct-when-all-value-in-field-x-are-null/m-p/1745028#M453228</link>
      <description>&lt;P&gt;I changed your suggestion to count(distinct {&amp;lt;employee={"=len(aggr(max({Inschrijvingen.examendatum),employee))=0"}&amp;gt;} employee) and now it works. don't know if it was neceassary because there was another error caused by the sequence of the modifiers, which I think is very strange. I will open a new topic for that.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 11:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-distinct-when-all-value-in-field-x-are-null/m-p/1745028#M453228</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2020-09-18T11:09:37Z</dc:date>
    </item>
  </channel>
</rss>

