<?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: IsNull(MyField)  vs. Len(MyField) = 0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514728#M687152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bill,&lt;/P&gt;&lt;P&gt;A good point to think of. See, here an interesting analysis that would clear doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Len(Null()) -&amp;gt;0&lt;/P&gt;&lt;P&gt;Len('') -&amp;gt;0&lt;/P&gt;&lt;P&gt;Isnull('') -&amp;gt;0&amp;nbsp; // which is FALSE&amp;nbsp; !!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence you can conclude both are NOT fully interchangeable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2013 11:45:22 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-12-02T11:45:22Z</dc:date>
    <item>
      <title>IsNull(MyField)  vs. Len(MyField) = 0</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514726#M687150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Is&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;N&lt;/SPAN&gt;&lt;/EM&gt;&lt;EM style="font-size: 10pt; line-height: 1.5em;"&gt;ull(MyField)&lt;/EM&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt; and &lt;/SPAN&gt;&lt;EM style="font-size: 10pt; line-height: 1.5em;"&gt;Len(MyField) = 0&lt;/EM&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt; seem to do pretty much the same, as in they can both be used to check if a &lt;/SPAN&gt;field&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt; is empty.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know if they are fully interchangeable or are they in some way different ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 11:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514726#M687150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-02T11:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull(MyField)  vs. Len(MyField) = 0</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514727#M687151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;isnull() can give -1 value too but len can not give negative value see the sample i have attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 11:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514727#M687151</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2013-12-02T11:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull(MyField)  vs. Len(MyField) = 0</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514728#M687152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bill,&lt;/P&gt;&lt;P&gt;A good point to think of. See, here an interesting analysis that would clear doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Len(Null()) -&amp;gt;0&lt;/P&gt;&lt;P&gt;Len('') -&amp;gt;0&lt;/P&gt;&lt;P&gt;Isnull('') -&amp;gt;0&amp;nbsp; // which is FALSE&amp;nbsp; !!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence you can conclude both are NOT fully interchangeable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 11:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514728#M687152</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-02T11:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull(MyField)  vs. Len(MyField) = 0</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514729#M687153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;&lt;IMG alt="Sage" class="jiveImage" src="https://assets.bunchball.net/badges/levels/L6.png" title="Sage" /&gt;&lt;/SPAN&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/sujeetsingh"&gt;sujeetsingh&lt;/A&gt; true&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 11:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514729#M687153</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2013-12-02T11:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re: IsNull(MyField)  vs. Len(MyField) = 0</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514730#M687154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/people/tresesco"&gt;tresesco&lt;/A&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you are saying that '' is not exactly the same as Null().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would I be correct in thinking that on a database :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Null() is where nothing has inserted / updated anything in the field&lt;/LI&gt;&lt;LI&gt;'' could be where something was inserted / updated and then later that text deleted in the End User GUI.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am after is creating a Flag where the field is empty, so I think it would be better for me to check using &lt;STRONG class="font-color-meta-light" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #a9a9a9;"&gt;Len(MyField) = 0&lt;/STRONG&gt; as that covers all 'emptiness', as opposed to &lt;STRONG class="font-color-meta-light" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #a9a9a9;"&gt;IsNull(MyField)&lt;/STRONG&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;which would only flag true nulls.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is my understanding correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 12:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514730#M687154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-02T12:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull(MyField)  vs. Len(MyField) = 0</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514731#M687155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In such cases I prefer to use the following expression:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;If( Len(Trim(Field))=0 or Isnull(Field) , this, that) as FieldName&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 12:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514731#M687155</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-02T12:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull(MyField)  vs. Len(MyField) = 0</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514732#M687156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="26418" data-objecttype="3" href="https://community.qlik.com/people/tresesco" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;tresesco&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Yup, I see what you are doing there and that certainly does look like a robust method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Many Thanks,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 12:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514732#M687156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-02T12:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull(MyField)  vs. Len(MyField) = 0</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514733#M687157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The below expression covers all the scenerio's like Null &amp;amp; Empty Fields validation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(&lt;STRONG&gt;LEN(TRIM(FieldName)&lt;/STRONG&gt;,'Field neither Null nor Empty' , 'Field either Null or Empty') AS FieldCheck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally in the Qlikview, the 0 value is always False and any other no is True.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 13:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-MyField-vs-Len-MyField-0/m-p/514733#M687157</guid>
      <dc:creator />
      <dc:date>2013-12-02T13:23:02Z</dc:date>
    </item>
  </channel>
</rss>

