<?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: Convert Oracle 'NULL' to Qlikview Null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-Oracle-NULL-to-Qlikview-Null/m-p/630392#M231350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question is - where does the string 'NULL' come from?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is &lt;EM style="text-decoration: underline;"&gt;nothing&lt;/EM&gt; in QlikView that replaces &amp;lt;NULL&amp;gt; with the string 'NULL'. &amp;lt;NULL&amp;gt; is normally loaded as &amp;lt;NULL&amp;gt;, i.e. as a lack of value, also from a database. So, there is no "convert from DB NULL to QlikView NULL". It is the same thing - NULL is NULL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, true &amp;lt;NULL&amp;gt;s are never visible in a list box. So,...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is there anything in your DB connection (e.g, the ODBC settings) that could replace &amp;lt;NULL&amp;gt; with the string 'NULL' ?&lt;/LI&gt;&lt;LI&gt;Do you have any other commands in the QlikView script that could alter NULL management, e.g. 'Set NullDisplay' or 'Set NullInterpret'?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 May 2014 08:49:54 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2014-05-28T08:49:54Z</dc:date>
    <item>
      <title>Convert Oracle 'NULL' to Qlikview Null</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Oracle-NULL-to-Qlikview-Null/m-p/630391#M231349</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;I have the below query which returns a few NULL values in the CMTT_APPROVER_NAME column - I need to suppress these NULL values from being displayed in a dropdown of fields, so that the dropdown will list only the non-NULL CMTT_APPROVER_NAME field values. Here's the Qlikview LOAD and Oracle queries:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Business Line",&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(IsNull(CMTT_APPROVER_NAME),null(),CMTT_APPROVER_NAME) AS "Committee Approver";&lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL SELECT DISTINCT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Business Line",nvl(CMTT_APPROVER_NAME,null) AS CMTT_APPROVER_NAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM &lt;/P&gt;&lt;P&gt;&amp;nbsp; (SELECT DISTINCT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cd.committee_id&amp;nbsp; as "Committee ID",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cd.business_line as "Business Line",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SELECT EMP_FULL_NAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE CD.CMTT_APPROVER = EMPLOYEE_NO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND CURRENT_RECORD_FLG = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) AS CMTT_APPROVER_NAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND ....&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I am expecting the &lt;EM&gt;if(IsNull(CMTT_APPROVER_NAME),null(),CMTT_APPROVER_NAME) AS "Committee Approver"&lt;/EM&gt; line in the above LOAD to return the Qlikview NULL value and therefore suppress the instances where the CMTT_APPROVER_NAME field is NULL from the dropdown - however, my dropdown contains the string NULL for those NULL values (please see attached screenshot).&lt;/P&gt;&lt;P&gt;If I replace &lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(IsNull(CMTT_APPROVER_NAME),null(),CMTT_APPROVER_NAME) AS "Committee Approver" &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(IsNull(CMTT_APPROVER_NAME),'TEST',CMTT_APPROVER_NAME) AS "Committee Approver"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;then the NULL string is replaced with TEST, so I am confident that IsNull() is finding the NULL instances correctly, but the null() Qlikview function is not replacing those NULLS with the Qlikview NULL value and therefore, they are not being suppressed from the dropdown (it's a search object). How can I convert those NULL instances in a way that will suppress them from the dropdown and any other objects within which I display the CMTT_APPROVER_NAME field (I know various charts have the option to suppress NULL values but the Search object does not)? I know I can replace null() with an obvious string such as 'No Name Found', but that is not what the user wants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 08:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Oracle-NULL-to-Qlikview-Null/m-p/630391#M231349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-28T08:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Oracle 'NULL' to Qlikview Null</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Oracle-NULL-to-Qlikview-Null/m-p/630392#M231350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question is - where does the string 'NULL' come from?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is &lt;EM style="text-decoration: underline;"&gt;nothing&lt;/EM&gt; in QlikView that replaces &amp;lt;NULL&amp;gt; with the string 'NULL'. &amp;lt;NULL&amp;gt; is normally loaded as &amp;lt;NULL&amp;gt;, i.e. as a lack of value, also from a database. So, there is no "convert from DB NULL to QlikView NULL". It is the same thing - NULL is NULL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, true &amp;lt;NULL&amp;gt;s are never visible in a list box. So,...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is there anything in your DB connection (e.g, the ODBC settings) that could replace &amp;lt;NULL&amp;gt; with the string 'NULL' ?&lt;/LI&gt;&lt;LI&gt;Do you have any other commands in the QlikView script that could alter NULL management, e.g. 'Set NullDisplay' or 'Set NullInterpret'?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 08:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Oracle-NULL-to-Qlikview-Null/m-p/630392#M231350</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-05-28T08:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Oracle 'NULL' to Qlikview Null</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Oracle-NULL-to-Qlikview-Null/m-p/630393#M231351</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;In the SQL part :&lt;/P&gt;&lt;P&gt;,nvl(CMTT_APPROVER_NAME,null) AS CMTT_APPROVER_NAME&lt;/P&gt;&lt;P&gt;That's where nulls are replaced by 'NULL' string. It seems QV doesn't interpret ,null) as it would do in Oracle.&lt;/P&gt;&lt;P&gt;I assume you would have other problems without the nvl(). Then, you can just use this in the LOAD part to get back real nulls:&lt;/P&gt;&lt;P&gt;if(CMTT_APPROVER_NAME&amp;lt;&amp;gt;'NULL',CMTT_APPROVER_NAME) AS "Committee Approver"&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>Wed, 28 May 2014 09:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Oracle-NULL-to-Qlikview-Null/m-p/630393#M231351</guid>
      <dc:creator />
      <dc:date>2014-05-28T09:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Oracle 'NULL' to Qlikview Null</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Oracle-NULL-to-Qlikview-Null/m-p/630394#M231352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for clarity: The nvl() function is &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;/SPAN&gt; evaluated by QlikView. It is evaluated by the ODBC driver, i.e. by Oracle. Apart from that, I think your solution is a good one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 09:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Oracle-NULL-to-Qlikview-Null/m-p/630394#M231352</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-05-28T09:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Oracle 'NULL' to Qlikview Null</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Oracle-NULL-to-Qlikview-Null/m-p/630395#M231353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for helping me to approach the problem in a different way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 07:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Oracle-NULL-to-Qlikview-Null/m-p/630395#M231353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-03T07:48:23Z</dc:date>
    </item>
  </channel>
</rss>

