<?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: KPI - set analysis using not NULL in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/KPI-set-analysis-using-not-NULL/m-p/1553273#M440437</link>
    <description>&lt;P&gt;Thanks for the suggestions and ideas.&amp;nbsp; Will try them now.&amp;nbsp; Yes the field name was a typo.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 00:58:19 GMT</pubDate>
    <dc:creator>iliketurtles</dc:creator>
    <dc:date>2019-03-07T00:58:19Z</dc:date>
    <item>
      <title>KPI - set analysis using not NULL</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-set-analysis-using-not-NULL/m-p/1553148#M440424</link>
      <description>&lt;P&gt;I was hoping to get a little help on using a KPI chart and set analysis.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a single table of data that I am looking to analyze.&amp;nbsp; In summary the structure I am interested in is:&lt;/P&gt;&lt;P&gt;InquiryID&lt;/P&gt;&lt;P&gt;LetterPrefix&lt;/P&gt;&lt;P&gt;MailDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to count InquiryID when LetterPrefix = "some string value" AND MailedDate is NOT Null&lt;/P&gt;&lt;P&gt;I have specifically created this in my expression builder:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;count(distinct{&amp;lt;letterprefix={'E_A_SVC_G_EXT'}*&amp;lt;maildate-={"*"}&amp;gt;}[INQUIRYID-inquiryid]&lt;/P&gt;&lt;P&gt;This expression shows as 'OK" in the expression builder status which I assume is a good thing.&amp;nbsp; &amp;nbsp;Yet when I look at the visualiziation of a bar graph there is no data present.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I only use this this expression:&lt;/P&gt;&lt;P&gt;count(distinct{&amp;lt;letterprefix={'E_A_SVC_G_EXT'}&amp;gt;}[INQUIRYID-inquiryid])&amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;nbsp; I get results and the graph visually looks correct.&amp;nbsp; These results, however, are too high since it includes records with NULL maildates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, am I using the correct syntax when I attempt to exclude NULL values?&amp;nbsp; Any feedback is appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 17:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-set-analysis-using-not-NULL/m-p/1553148#M440424</guid>
      <dc:creator>iliketurtles</dc:creator>
      <dc:date>2019-03-06T17:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: KPI - set analysis using not NULL</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-set-analysis-using-not-NULL/m-p/1553151#M440426</link>
      <description>&lt;P&gt;try..&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;count(distinct {&amp;lt;letterprefix={'E_A_SVC_G_EXT'}, maildate-={"*"}&amp;gt;}[INQUIRYID-inquiryid])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;see if that works&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 17:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-set-analysis-using-not-NULL/m-p/1553151#M440426</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2019-03-06T17:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: KPI - set analysis using not NULL</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-set-analysis-using-not-NULL/m-p/1553152#M440427</link>
      <description>&lt;P&gt;actually i have just noticed the -=, that will minus every value. so you're basically telling it to exclude all values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;remove the - and try that.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;another way would be to give the NULL values a value. This will need to be done in the script. Load in the table that contains the &lt;SPAN&gt;MailedDate&amp;nbsp;&lt;/SPAN&gt;field (resident from the original table) and use an IF statement on the&amp;nbsp;&lt;SPAN&gt;MailedDate..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(IsNull(MailedDate ),'X',MailedDate ) as MailedDate&lt;/P&gt;&lt;P&gt;Then you can use the -={'X'}&lt;/P&gt;&lt;P&gt;I have also just noticed that in your original post you have stated that the field name is MailedDate but in your set analysis you have maildate. is that just a typo in this discussion or is that the problem?&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 18:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-set-analysis-using-not-NULL/m-p/1553152#M440427</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2019-03-06T18:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: KPI - set analysis using not NULL</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-set-analysis-using-not-NULL/m-p/1553273#M440437</link>
      <description>&lt;P&gt;Thanks for the suggestions and ideas.&amp;nbsp; Will try them now.&amp;nbsp; Yes the field name was a typo.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 00:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-set-analysis-using-not-NULL/m-p/1553273#M440437</guid>
      <dc:creator>iliketurtles</dc:creator>
      <dc:date>2019-03-07T00:58:19Z</dc:date>
    </item>
  </channel>
</rss>

