<?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 Include null values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811072#M664821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working a sum set analysis.&lt;/P&gt;&lt;P&gt;One of the fields includes null values, 0s, and 1s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have so far is:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Deal__c -={1}&amp;gt;}&amp;nbsp; Contract_Value__c)). It &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;= excludes 1 and has 0, but doesn't include null values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i include null values for my sum set analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Dec 2014 22:00:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-10T22:00:20Z</dc:date>
    <item>
      <title>Include null values</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811072#M664821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working a sum set analysis.&lt;/P&gt;&lt;P&gt;One of the fields includes null values, 0s, and 1s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have so far is:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Deal__c -={1}&amp;gt;}&amp;nbsp; Contract_Value__c)). It &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;= excludes 1 and has 0, but doesn't include null values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i include null values for my sum set analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 22:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811072#M664821</guid>
      <dc:creator />
      <dc:date>2014-12-10T22:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Include null values</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811073#M664822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you Include a Sample test QVW ? It would be easy to understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 22:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811073#M664822</guid>
      <dc:creator />
      <dc:date>2014-12-10T22:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Include null values</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811074#M664823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately no, our company is stringent on data sharing.&lt;/P&gt;&lt;P&gt;But is it possible to convert null values into 0s?&lt;/P&gt;&lt;P&gt;That way, I can include 0 and originally null values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 22:39:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811074#M664823</guid>
      <dc:creator />
      <dc:date>2014-12-10T22:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Include null values</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811075#M664824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can convert null values into&amp;nbsp; 0's by following syntax in load script&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Field&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Null&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),0,Field&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Field&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;1 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 22:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811075#M664824</guid>
      <dc:creator />
      <dc:date>2014-12-10T22:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Include null values</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811076#M664825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I keep getting an error, but will "NULLASVALUE Deal__c;" work as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 23:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811076#M664825</guid>
      <dc:creator />
      <dc:date>2014-12-10T23:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Include null values</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811077#M664826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;During loading Data in Back end script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(NULLASVALUE Deal__c=Null(),0,NULLASVALUE Deal__c)&amp;nbsp; as&amp;nbsp; NULLASVALUE Deal__c1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you will have new field called NULLASVALUE Deal__c&amp;nbsp; which have 0's in place of null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 23:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811077#M664826</guid>
      <dc:creator />
      <dc:date>2014-12-10T23:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Include null values</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811078#M664827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Please create the Flag for the field to check its null or not while loading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF( Len(TRIM(FIELDNAME)) = 0 , 0 , 1) AS NULLFLAG &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this field on your SET Analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;NULLFLAG={0}&amp;gt;} Contract_Value_c) --&amp;gt; Its Include the Null Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;NULLFLAG={1}&amp;gt;} Contract_Value_c) --&amp;gt; Its exclude the Null Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you dont want to create any flag field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;Deal_C-={"?*"}&amp;gt;} Contact_Value_c ) --? Its Include the Null Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;Deal_C={"?*"}&amp;gt;} Contact_Value_c ) --? Its exclude the Null Value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 23:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811078#M664827</guid>
      <dc:creator />
      <dc:date>2014-12-10T23:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Include null values</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811079#M664828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can address this by using NullAsValue in the script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NullAsValue Deal__c;&lt;/P&gt;&lt;P&gt;SET NullValue=NULL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The nulls will be replaced by the string "NULL" which you can test for. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without modifying the script, you can use this set modifier to select the nulls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;&amp;lt;Deal__c -={"=len([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.6666669845581px;"&gt;Deal__c&lt;/SPAN&gt;])=0"}&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 23:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811079#M664828</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-12-10T23:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Include null values</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811080#M664829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesn't look like correct syntax. Can you post a more complete example script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 23:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values/m-p/811080#M664829</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-12-10T23:22:09Z</dc:date>
    </item>
  </channel>
</rss>

