<?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: Null Value recognition in syntax Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Null-Value-recognition-in-syntax-Expression/m-p/434494#M489960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;isNull(FieldName) or&lt;/P&gt;&lt;P&gt;len(Trim(FieldName))=0&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;FieldName =''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using any of the above, you can achieve your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2012 16:24:41 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2012-10-19T16:24:41Z</dc:date>
    <item>
      <title>Null Value recognition in syntax Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Null-Value-recognition-in-syntax-Expression/m-p/434493#M489959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’ve got two products that are sold across many retailers. Each retailer assigns product preference code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m comparing preference code for each product by retailer, by creating FLAG column using Expression with a simple P, N, E&amp;nbsp; (P = Preferred, N = Not Preferred, &lt;/P&gt;&lt;P&gt;E = Equal status). I’m using IF statement similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= IF ( PROD_A&amp;nbsp; = ‘P’ AND PROD_B = ‘P’, ‘ E’,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* if PROD_A &amp;amp; PROD_B = ‘P’ status = ‘E’*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; IF&amp;nbsp; (PROD_A = ‘N’ AND PROD_B = ‘P’, ‘N’,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; IF (PROD_A&amp;nbsp; = NULL() AND PROD_B = ‘P’, ‘N’,’P’)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is with a null value recognition when there is no P,N,E assigned to PROD_A or PROD_B.&lt;/P&gt;&lt;P&gt;I tried using null expression for PROD_A, however based on the above syntax I get P for PROD_A, while it should be flagged as N. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 16:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-Value-recognition-in-syntax-Expression/m-p/434493#M489959</guid>
      <dc:creator />
      <dc:date>2012-10-19T16:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Null Value recognition in syntax Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Null-Value-recognition-in-syntax-Expression/m-p/434494#M489960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;isNull(FieldName) or&lt;/P&gt;&lt;P&gt;len(Trim(FieldName))=0&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;FieldName =''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using any of the above, you can achieve your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 16:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-Value-recognition-in-syntax-Expression/m-p/434494#M489960</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-10-19T16:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Null Value recognition in syntax Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Null-Value-recognition-in-syntax-Expression/m-p/434495#M489961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check with this&lt;/P&gt;&lt;P&gt;=IF(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;PROD_A&amp;nbsp; = ‘P’ AND PROD_B = ‘P’, ‘ E’&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;IF((PROD_A = ‘N’ OR IsNull(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;PROD_A&lt;/SPAN&gt;) OR Len(Trim(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;PROD_A&lt;/SPAN&gt;))=0) AND PROD_B = ‘P’, 'N', 'P'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 16:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-Value-recognition-in-syntax-Expression/m-p/434495#M489961</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-10-19T16:42:20Z</dc:date>
    </item>
  </channel>
</rss>

