<?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: Select against a &amp;quot;null&amp;quot; condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526639#M1142674</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;Please find the attached file. Hope it helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Aug 2013 05:38:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-24T05:38:16Z</dc:date>
    <item>
      <title>Select against a "null" condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526633#M1142668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&amp;nbsp; I'm a newbie in QlikView, and need a little help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ID_Workflow&amp;nbsp; Phase&amp;nbsp; Task&amp;nbsp; Asigned&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null&amp;nbsp;&amp;nbsp;&amp;nbsp; Carl&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; John&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Samantha&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I need to do the equivalent to "SELECT * FROM &amp;lt;table&amp;gt; WHERE Task is NULL"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;What is the equivalent syntax in QlikView?&amp;nbsp; I need to do in the load script, or I can do it in a Chart ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thank you!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 20:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526633#M1142668</guid>
      <dc:creator />
      <dc:date>2013-08-23T20:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select against a "null" condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526634#M1142669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot select nulls in qlikview, however you can select excluded, possible, not possible, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That being said, if possible, convert your nulls to something like "MissingValue" in script, as that is by far the easiest to work with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 21:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526634#M1142669</guid>
      <dc:creator>calvindk</dc:creator>
      <dc:date>2013-08-23T21:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select against a "null" condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526635#M1142670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, You can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;LOAD * FROM Task.qvd (qvd)&lt;/P&gt;
&lt;P&gt;Where IsNull(&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Task)&lt;/SPAN&gt;;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Tonial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 21:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526635#M1142670</guid>
      <dc:creator>fernando_tonial</dc:creator>
      <dc:date>2013-08-23T21:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select against a "null" condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526636#M1142671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I advise you to do it in the script : Null value can't be a selected element in the restitution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in the script, declare a variable :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET F_FieldQuality = IF(IsNull($1) = -1 OR Trim($1) = '', 'EMPTY', Trim($1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and use the following syntax in the LOAD script to replace / correct the field data :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD $(F_FieldQuality(MYFIELD_BEFORE)) as MYFIELD_AFTER,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will simplify your code and offer you the ability to select the EMPTY value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthieu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 21:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526636#M1142671</guid>
      <dc:creator>matthieu_burel</dc:creator>
      <dc:date>2013-08-23T21:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select against a "null" condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526637#M1142672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a small hint here: the expression &lt;STRONG&gt;Len(Trim($1))=0&lt;/STRONG&gt; covers both NULL and empty string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 22:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526637#M1142672</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-08-23T22:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select against a "null" condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526638#M1142673</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;Try with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * from tablename where Len(Trim(Task)) = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trim() - function remove extra space.&lt;/P&gt;&lt;P&gt;Len() - function count the length of the value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 05:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526638#M1142673</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-08-24T05:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select against a "null" condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526639#M1142674</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;Please find the attached file. Hope it helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 05:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526639#M1142674</guid>
      <dc:creator />
      <dc:date>2013-08-24T05:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select against a "null" condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526640#M1142675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;Based on the data you posted, this would work:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;From TableName&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Where&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; &lt;/SPAN&gt;Task&lt;SPAN class="s1"&gt; = 'null' ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 16:14:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526640#M1142675</guid>
      <dc:creator />
      <dc:date>2013-08-24T16:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select against a "null" condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526641#M1142676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be careful with you data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Null and Null() are not the same thing : the first is the text value 'null' while null() is the empty value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So use Task = 'null' or IsNull(Task) = -1 depending what you have in your real case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 16:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526641#M1142676</guid>
      <dc:creator>matthieu_burel</dc:creator>
      <dc:date>2013-08-24T16:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select against a "null" condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526642#M1142677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Dario&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming your value actually is null and not a text field containing the letters 'null', then you can use the NullasValue function to set the true null to a text string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET &lt;/STRONG&gt;&lt;SPAN style="font-family: monospace; color: #666666;"&gt;NullValue &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: monospace; background-color: #f7f7f7;"&gt;= '&amp;lt;Null&amp;gt;';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: monospace; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NullAsValue &lt;/STRONG&gt;&lt;SPAN style="font-family: monospace; color: #990000;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: monospace; background-color: #f7f7f7;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: monospace; background-color: #f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load blah.... from blah..... ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: monospace; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NullAsNull &lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: monospace; background-color: #f7f7f7;"&gt;*;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt Fryer gives a good explanation of handling nulls, see &lt;A href="http://www.qlikviewaddict.com/2012/04/handling-nulls-in-qlikview.html" title="http://www.qlikviewaddict.com/2012/04/handling-nulls-in-qlikview.html"&gt;QlikView Addict: Handling Nulls in QlikView&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Aug 2013 10:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526642#M1142677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-25T10:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select against a "null" condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526643#M1142678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to thank to everyone that answer this post.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the switch "NullAsValue" / "NullAsNull",&amp;nbsp; as Bill show in the last post.&amp;nbsp; However, all of your answers was very helpfull for me; to understand how works QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anders, Fernando, Matthieu, Ralf, Mayil, Amuthabharathi, Matthew, Bill: Thank you!!!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 15:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526643#M1142678</guid>
      <dc:creator />
      <dc:date>2013-08-30T15:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select against a "null" condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526644#M1142679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Len([Field1]) = 0, 0, [Field1]) as [Field1],&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Len([Field2]) = 0, 0, [Field2]) as [Field2],&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Len([Field3]) = 0, 0, [Field3]) as [Field3]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;QVDs\myfile.qvd (qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 16:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526644#M1142679</guid>
      <dc:creator />
      <dc:date>2013-08-30T16:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select against a "null" condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526645#M1142680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Matthieu thank you very much i will use it in future &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;S.Amuthabharathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 05:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-against-a-quot-null-quot-condition/m-p/526645#M1142680</guid>
      <dc:creator />
      <dc:date>2013-09-02T05:03:19Z</dc:date>
    </item>
  </channel>
</rss>

