<?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: If statment with IsNull in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056504#M354135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IsNull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Treatment_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) or &lt;EM&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Len(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Treatment_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;))=0&lt;/SPAN&gt;&lt;/EM&gt;,'No Treatment','Treatment exists') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Status&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2016 07:29:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-19T07:29:23Z</dc:date>
    <item>
      <title>If statment with IsNull</title>
      <link>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056502#M354133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;I'm trying a if statement with IsNull, and it does not seem to give med the correct output. I have tried the same statement as a expression after Load and it works perfect. Any Ideas how to get it working inside the script load?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;My output becomes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;Treatment Exists on all 'Treatment Exists'&amp;nbsp; which is correct, but shows a&amp;nbsp; null on 'No Treatments' &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; i use this in the scrip load &lt;/SPAN&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;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IsNull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Treatment_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'No Treatment','Treatment exists') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Status&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Thanks Theo&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 07:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056502#M354133</guid>
      <dc:creator />
      <dc:date>2016-04-19T07:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: If statment with IsNull</title>
      <link>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056503#M354134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Try,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(Len(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Treatment_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;))=0,'No Treatment','Treatment exists') &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;&lt;EM&gt;Status &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 07:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056503#M354134</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-04-19T07:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: If statment with IsNull</title>
      <link>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056504#M354135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IsNull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Treatment_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) or &lt;EM&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Len(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Treatment_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;))=0&lt;/SPAN&gt;&lt;/EM&gt;,'No Treatment','Treatment exists') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Status&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 07:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056504#M354135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-19T07:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: If statment with IsNull</title>
      <link>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056505#M354136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, sorry did not work because Treatment_ID that does not exist is not set to 0 its blank - thanks anyway&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 07:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056505#M354136</guid>
      <dc:creator />
      <dc:date>2016-04-19T07:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: If statment with IsNull</title>
      <link>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056506#M354137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, sorry did not work because Treatment_ID that does not exist is not set to 0 its blank - thanks anyway&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 07:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056506#M354137</guid>
      <dc:creator />
      <dc:date>2016-04-19T07:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: If statment with IsNull</title>
      <link>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056507#M354138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you really try the expression suggested above? It is not really checking for it's value (to be 0) but it's length. Nulls are often confusing because there would be values with zero length or spaces which are not nulls. You can capture all these cases (including real nulls) with the above expression. If that is not working, try to share a sample qvw that demonstrates the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 07:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056507#M354138</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-04-19T07:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: If statment with IsNull</title>
      <link>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056508#M354139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try in the edit &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set NULLINTERPRET ='';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 07:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056508#M354139</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-04-19T07:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: If statment with IsNull</title>
      <link>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056509#M354140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After that your if condition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 07:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statment-with-IsNull/m-p/1056509#M354140</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-04-19T07:49:45Z</dc:date>
    </item>
  </channel>
</rss>

