<?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: Dealing with null values in raw data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dealing-with-null-values-in-raw-data/m-p/351962#M130568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is genius!&amp;nbsp; Thanks for that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Nov 2012 13:18:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-30T13:18:25Z</dc:date>
    <item>
      <title>Dealing with null values in raw data</title>
      <link>https://community.qlik.com/t5/QlikView/Dealing-with-null-values-in-raw-data/m-p/351960#M130566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I often read in raw data files that contain nulls.&amp;nbsp; Unfortunately, QView doesn't treat the nulls as nulls but more like blanks.&amp;nbsp; Therefore, you end up with list boxes containing blanks that can be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get around this I have to do the following in the load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(LEN(variable)=0, NULL(), variable) AS variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is fine for one or two variables, but when it is almost all variables across multiple tables it becomes tedious.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you deal with nulls?&amp;nbsp; Is there a simpler more efficent way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 09:58:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dealing-with-null-values-in-raw-data/m-p/351960#M130566</guid>
      <dc:creator />
      <dc:date>2012-05-15T09:58:12Z</dc:date>
    </item>
    <item>
      <title>Dealing with null values in raw data</title>
      <link>https://community.qlik.com/t5/QlikView/Dealing-with-null-values-in-raw-data/m-p/351961#M130567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a way you can force all blanks in all fields to be NULL.&amp;nbsp; You need to use MAP....Using - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Early on in your load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map_Nulls:&lt;/P&gt;&lt;P&gt;MAPPING LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Null()&lt;/P&gt;&lt;P&gt;Autogenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP * USING Map_Nulls;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, at the end of the script when the fields are commited to the QV data model, all blanks will be replaced with NULLs.&amp;nbsp; Look up MAP...Using in the F1 help for the different wildcard options you can use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 10:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dealing-with-null-values-in-raw-data/m-p/351961#M130567</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-15T10:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with null values in raw data</title>
      <link>https://community.qlik.com/t5/QlikView/Dealing-with-null-values-in-raw-data/m-p/351962#M130568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is genius!&amp;nbsp; Thanks for that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 13:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dealing-with-null-values-in-raw-data/m-p/351962#M130568</guid>
      <dc:creator />
      <dc:date>2012-11-30T13:18:25Z</dc:date>
    </item>
  </channel>
</rss>

