<?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 Statement on NULL field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statement-on-NULL-field/m-p/473457#M483811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Try: if( &lt;STRONG&gt;len(trim(udsource)) = 0&lt;/STRONG&gt; and udindex = 0, 'Web', if(udsource='E-mail' and uindex = 0, 'E-mail' ))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jun 2013 14:33:05 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-06-14T14:33:05Z</dc:date>
    <item>
      <title>If Statement on NULL field</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-on-NULL-field/m-p/473456#M483810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table called &lt;STRONG&gt;updatedb &lt;/STRONG&gt;and in that table is a field called &lt;STRONG&gt;udsource &lt;/STRONG&gt;and &lt;STRONG&gt;udindex&lt;/STRONG&gt;.&amp;nbsp; In my load script I want to create an IF Statement so if the udsurce is NULL and then udindex = '0' then it outputs the text &lt;STRONG&gt;Web&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Statement so far is =if(udsource = '' and udindex = '0', 'Web').&amp;nbsp; However I cannot pull out the NULL value from the udsource and the load script will not let me put in isnull.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At some point I will need to expand the script so if udsource = 'E-mail' and udindex = '0' then the text is E-mail, so hopefully you can answer this question for me too.&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;Jon Ditchfield&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 14:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-on-NULL-field/m-p/473456#M483810</guid>
      <dc:creator />
      <dc:date>2013-06-14T14:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement on NULL field</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-on-NULL-field/m-p/473457#M483811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Try: if( &lt;STRONG&gt;len(trim(udsource)) = 0&lt;/STRONG&gt; and udindex = 0, 'Web', if(udsource='E-mail' and uindex = 0, 'E-mail' ))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 14:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-on-NULL-field/m-p/473457#M483811</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-14T14:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement on NULL field</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-on-NULL-field/m-p/473458#M483812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help on this one, it is exactly what I needed. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 14:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-on-NULL-field/m-p/473458#M483812</guid>
      <dc:creator />
      <dc:date>2013-06-14T14:49:23Z</dc:date>
    </item>
  </channel>
</rss>

