<?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: Set Analysis omitting nulls in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330384#M834690</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;count({1-&amp;lt;ReferralDischargeReason-={'Admin Error'}&amp;gt;}[Vet])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count({$-1&amp;lt;ReferralDischargeReason-={'Admin Error'}&amp;gt;}[Vet])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2017 13:49:18 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2017-05-24T13:49:18Z</dc:date>
    <item>
      <title>Set Analysis omitting nulls</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330379#M834685</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 problem where I trying to filter a count() using set analysis, but it is also omitting nulls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imagine I have the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count([Vet])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this gives me a result for my dimension of 35, and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;ReferralDischargeReason={'Admin Error'}&amp;gt;}[Vet])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives me a result for my dimension of 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assume that the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count({$&amp;lt;ReferralDischargeReason-={'Admin Error'}&amp;gt;}[Vet])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;would give me a result of 34. It doesn't though, it give me a result of 18, because it also not counting the NULLs in the &lt;SPAN style="font-size: 13.3333px;"&gt;ReferralDischargeReason field, even though it counts them when I use the count with no set analysis.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any idea why this is?&lt;/SPAN&gt;&lt;BR /&gt;&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/Set-Analysis-omitting-nulls/m-p/1330379#M834685</guid>
      <dc:creator>quilldew</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis omitting nulls</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330380#M834686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could be the reason you have 16 Null values for Vet? Can you check the same&lt;/P&gt;&lt;P&gt;Try this, And tell us how much value return&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;count({$&amp;lt;ReferralDischargeReason={'*'}-{'Admin Error'}&amp;gt;}[Vet])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 13:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330380#M834686</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-24T13:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis omitting nulls</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330381#M834687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually have way more NULL values within 'Vet' in my table, literally thousands, and it isn't counting them when I use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count([Vet]). I tried your code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;ReferralDischargeReason={'*'}-{'Admin Error'}&amp;gt;}[Vet])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it gave me the same result of 18.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 13:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330381#M834687</guid>
      <dc:creator>quilldew</dc:creator>
      <dc:date>2017-05-24T13:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis omitting nulls</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330382#M834688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm now checking my data more thoroughly and I can now only find 19 with Vet marked that fall within my dimension. So it looks like the original count(Vet) is wrong because I have way way way more than 16 NULL values within Vet. I'll be back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 13:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330382#M834688</guid>
      <dc:creator>quilldew</dc:creator>
      <dc:date>2017-05-24T13:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis omitting nulls</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330383#M834689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest you to create flags in your script to address this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(&lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ReferralDischargeReason)) = 0, 'Null', &lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ReferralDischargeReason) as New&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ReferralDischargeReason&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this new dimension in your set analysis, or use true flags with 0s and 1s&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 13:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330383#M834689</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-24T13:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis omitting nulls</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330384#M834690</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;count({1-&amp;lt;ReferralDischargeReason-={'Admin Error'}&amp;gt;}[Vet])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count({$-1&amp;lt;ReferralDischargeReason-={'Admin Error'}&amp;gt;}[Vet])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 13:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330384#M834690</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-05-24T13:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis omitting nulls</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330385#M834691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked fantastic thanks. Is this just down to the way that Qlikview handles Nulls?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 14:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330385#M834691</guid>
      <dc:creator>quilldew</dc:creator>
      <dc:date>2017-05-24T14:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis omitting nulls</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330386#M834692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More like how QlikView's set analysis handles null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 14:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-omitting-nulls/m-p/1330386#M834692</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-24T14:36:44Z</dc:date>
    </item>
  </channel>
</rss>

