<?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: Cannot handle null values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cannot-handle-null-values/m-p/2046149#M86045</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;With NullAsValue statement as below.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NullAsValue [Current Phase] ;
Set NullValue = 'No Phase';

//----- Here's where your load statement goes -----\\
LOAD ...
&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 07 Mar 2023 11:50:03 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2023-03-07T11:50:03Z</dc:date>
    <item>
      <title>Cannot handle null values</title>
      <link>https://community.qlik.com/t5/App-Development/Cannot-handle-null-values/m-p/2046121#M86041</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have the following Load statement&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;rootValue.Current_Phase:&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;Load ProjectId_New as projectsId&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Resident rootValueNew&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;where projectFieldId_New = 1;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;left join&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Load projectsId, [Current Phase]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Resident "rootValue.Current Phase";&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;It produces the attached result set:&lt;/P&gt;
&lt;P&gt;I want to change the Null value to something else.&lt;/P&gt;
&lt;P&gt;I replaced [Current Phase] in my script with all the possible combinations I could think of, such as:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;if (IsNull([Current Phase] or len(trim([Current Phase]))&amp;lt; 2 or [Current Phase]='NULL' or [Current Phase]='' or [Current Phase]='-'), '0. No Phase', [Current Phase]) as [Current_Phase]&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;or the opposite&lt;BR /&gt;&lt;EM&gt;if (NOT IsNull([Current Phase] or len(trim([Current Phase]))&amp;lt;&amp;gt; 0), [Current Phase], '0. No Phase') as [Current_Phase]&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;But nothing.&lt;/P&gt;
&lt;P&gt;Current_Phase is shown as '-'&lt;/P&gt;
&lt;P&gt;I even displayed &lt;EM&gt; len(trim([Current Phase]))&lt;/EM&gt;. It is shown as '-'&lt;/P&gt;
&lt;P&gt;Can you help?&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Nikos&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 11:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cannot-handle-null-values/m-p/2046121#M86041</guid>
      <dc:creator>nskatzis</dc:creator>
      <dc:date>2023-03-07T11:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot handle null values</title>
      <link>https://community.qlik.com/t5/App-Development/Cannot-handle-null-values/m-p/2046149#M86045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;With NullAsValue statement as below.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NullAsValue [Current Phase] ;
Set NullValue = 'No Phase';

//----- Here's where your load statement goes -----\\
LOAD ...
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Mar 2023 11:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cannot-handle-null-values/m-p/2046149#M86045</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-03-07T11:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot handle null values</title>
      <link>https://community.qlik.com/t5/App-Development/Cannot-handle-null-values/m-p/2046164#M86046</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thank you for your reply but&lt;/P&gt;
&lt;P&gt;Unfortunately it didn't work.&lt;/P&gt;
&lt;P&gt;This is my script:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;NullAsValue [Current Phase];&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Set NullValue = '0. No Phase';&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;// The below is done in order to include projects with No 'Current Phase -- N.S&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;rootValue.Current_Phase:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Load ProjectId_New as projectsId /*, Value_New as Value_New2 */&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Resident rootValueNew&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;where projectFieldId_New = 1;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;left join&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Load projectsId, [Current Phase]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Resident "rootValue.Current Phase";&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 12:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cannot-handle-null-values/m-p/2046164#M86046</guid>
      <dc:creator>nskatzis</dc:creator>
      <dc:date>2023-03-07T12:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot handle null values</title>
      <link>https://community.qlik.com/t5/App-Development/Cannot-handle-null-values/m-p/2046177#M86047</link>
      <description>&lt;P&gt;Instead of joining in this way, use mapping.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MapCurrentPhase:
Mapping Load projectsId,
[Current Phase]
Resident "rootValue.Current Phase";

Load ProjectId_New as projectsId, 
ApplyMap('MapCurrentPhase',ProjectId_New,'0. No Phase') as [Current Phase]
Resident rootValueNew;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Mar 2023 13:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cannot-handle-null-values/m-p/2046177#M86047</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-03-07T13:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot handle null values</title>
      <link>https://community.qlik.com/t5/App-Development/Cannot-handle-null-values/m-p/2046208#M86051</link>
      <description>&lt;P&gt;That worked!!!&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;Nikos&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 13:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cannot-handle-null-values/m-p/2046208#M86051</guid>
      <dc:creator>nskatzis</dc:creator>
      <dc:date>2023-03-07T13:52:51Z</dc:date>
    </item>
  </channel>
</rss>

