<?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 How to check null value? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361093#M134081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be in place of let you need to write set &lt;/P&gt;&lt;P&gt;because if you create varible using set then it is calculated uing $ sign expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and let will calculate directly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other wise code looks good &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2012 12:45:31 GMT</pubDate>
    <dc:creator>SunilChauhan</dc:creator>
    <dc:date>2012-04-20T12:45:31Z</dc:date>
    <item>
      <title>How to check null value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361091#M134079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am checking the null value in variable Filter like this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Let Filter=trim(peek('Filter',$(i),'TableNames'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF not IsNull($(Filter)) THEN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//code &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ELSE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//code &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check if Filter gets null then code after ELSE should go&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if Filter gets some string the code after IF should go??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it correct??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i get string value in filter varialbe it shows errror&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Lavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 12:31:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361091#M134079</guid>
      <dc:creator>harleen_singh</dc:creator>
      <dc:date>2012-04-20T12:31:06Z</dc:date>
    </item>
    <item>
      <title>How to check null value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361092#M134080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code seems to be correct.&lt;/P&gt;&lt;P&gt;Which error do you get ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 12:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361092#M134080</guid>
      <dc:creator />
      <dc:date>2012-04-20T12:33:06Z</dc:date>
    </item>
    <item>
      <title>How to check null value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361093#M134081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be in place of let you need to write set &lt;/P&gt;&lt;P&gt;because if you create varible using set then it is calculated uing $ sign expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and let will calculate directly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other wise code looks good &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 12:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361093#M134081</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-04-20T12:45:31Z</dc:date>
    </item>
    <item>
      <title>How to check null value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361094#M134082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@sunil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can u see i have used Peek function which doesn't work when i use set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 12:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361094#M134082</guid>
      <dc:creator>harleen_singh</dc:creator>
      <dc:date>2012-04-20T12:58:28Z</dc:date>
    </item>
    <item>
      <title>How to check null value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361095#M134083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/philmot62" id="jive-248523358868221938855" style="background-color: #f9f9f9; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;Philippe Motillon&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the error i am getting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script line error: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF not IsNull(De Kil Kraanbedrijf) THEN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see when the string value comes in the Filter variable it gives error. But when null comes in it is okay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 13:00:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361095#M134083</guid>
      <dc:creator>harleen_singh</dc:creator>
      <dc:date>2012-04-20T13:00:07Z</dc:date>
    </item>
    <item>
      <title>How to check null value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361096#M134084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but it iwll get calculated when you use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Filter) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;please try once and then let me know&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 13:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361096#M134084</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-04-20T13:05:59Z</dc:date>
    </item>
    <item>
      <title>How to check null value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361097#M134085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let Filter=trim(peek('Filter',$(i),'TableNames'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;IF not IsNull($(Filter)) THEN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;//code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;ELSE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;//code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;ENDIF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to define $(i) also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 13:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361097#M134085</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-04-20T13:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to check null value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361098#M134086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lavi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is the $ expansion of Filter inside the IsNull() function. This cause the 'evaluated' value of Filter to be passed to IsNull, which is probably invalid and therefore causing your error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of IsNull($(Filter)), use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Filter = ....&lt;/P&gt;&lt;P&gt;If Not(IsNull(Filter)) Then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 13:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361098#M134086</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-04-20T13:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to check null value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361099#M134087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You may need to add single qoute around the '&lt;STRONG&gt;$(Filter)' &lt;/STRONG&gt;variable when you check not isnull since you are using LET variable.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;When you use the LET varibale, your expression is already calculated and your variable will have the resultant value. If you again equate the 'Filter' variable with variable expansion $(Filter) when your variable is holding null value then you`ll get script line error.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Have a look at the attached application.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; Let Filter=trim(peek('Filter',$(i),'TableNames'));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF not IsNull($(Filter)) THEN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//code&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ELSE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//code&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ENDIF&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope this helps you.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-Sridhar&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 13:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-null-value/m-p/361099#M134087</guid>
      <dc:creator>sridhar240784</dc:creator>
      <dc:date>2012-04-20T13:47:22Z</dc:date>
    </item>
  </channel>
</rss>

