<?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: Which is safe? isnull() or Len()&amp;gt;0 in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Which-is-safe-isnull-or-Len-gt-0/m-p/1377139#M31200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahahaha &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Oct 2017 18:26:47 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-10-16T18:26:47Z</dc:date>
    <item>
      <title>Which is safe? isnull() or Len()&gt;0</title>
      <link>https://community.qlik.com/t5/App-Development/Which-is-safe-isnull-or-Len-gt-0/m-p/1377135#M31196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to suggest someone on how best to handle nulls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my experience, I have seen that &lt;STRONG&gt;not&amp;nbsp; isnull() works fine but lately, I have seen it behaving weirdly. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So is it safe to say that len()&amp;gt;0 is a suitable replacement for not isnull() in where clauses? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Are there any exceptions/Caveats when with both approaches?&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 17:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Which-is-safe-isnull-or-Len-gt-0/m-p/1377135#M31196</guid>
      <dc:creator>vkish16161</dc:creator>
      <dc:date>2017-10-16T17:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Which is safe? isnull() or Len()&gt;0</title>
      <link>https://community.qlik.com/t5/App-Development/Which-is-safe-isnull-or-Len-gt-0/m-p/1377136#M31197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like using &lt;STRONG&gt;Len(Trim(FieldName)) &amp;gt; 0&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 18:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Which-is-safe-isnull-or-Len-gt-0/m-p/1377136#M31197</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-16T18:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Which is safe? isnull() or Len()&gt;0</title>
      <link>https://community.qlik.com/t5/App-Development/Which-is-safe-isnull-or-Len-gt-0/m-p/1377137#M31198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I often use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Len(Trim(FIELD))&amp;gt;0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(or just without the &amp;gt;0 as condition, like If(Len(Trim(FIELD)), THEN ...&amp;nbsp; , ELSE ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This also handles empty values / values containing only spaces, i.e. only return TRUE when there is 'something relevant'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 18:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Which-is-safe-isnull-or-Len-gt-0/m-p/1377137#M31198</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-16T18:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Which is safe? isnull() or Len()&gt;0</title>
      <link>https://community.qlik.com/t5/App-Development/Which-is-safe-isnull-or-Len-gt-0/m-p/1377138#M31199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both of you are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess i'll award Stefan the correct answer since Sunny's been hogging all the points. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 18:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Which-is-safe-isnull-or-Len-gt-0/m-p/1377138#M31199</guid>
      <dc:creator>vkish16161</dc:creator>
      <dc:date>2017-10-16T18:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Which is safe? isnull() or Len()&gt;0</title>
      <link>https://community.qlik.com/t5/App-Development/Which-is-safe-isnull-or-Len-gt-0/m-p/1377139#M31200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahahaha &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 18:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Which-is-safe-isnull-or-Len-gt-0/m-p/1377139#M31200</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-16T18:26:47Z</dc:date>
    </item>
  </channel>
</rss>

