<?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: Handling Null values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Handling-Null-values/m-p/597589#M1114482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&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;"&gt;if(len(trim(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Target flag]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;))=0 or &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Target flag]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=0, dual('Non target', 0),&amp;nbsp; dual('Target', -1)) as [Target flag],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Feb 2014 23:03:12 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-02-17T23:03:12Z</dc:date>
    <item>
      <title>Handling Null values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-Null-values/m-p/597586#M1114479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;In the data base for customers i have target flag as 1 and 0 and for some customers the target flag is not populated .In my report i have a straight table in which i need to show all customers and targets flag and sales .I have list box selection for target flag ,in which i need to show 1 as 'Target ' &amp;amp;&amp;nbsp; 0 as 'Non-Target ' and Null customers as also 'Non-target'.Same should be shown in straight table also .&lt;/P&gt;&lt;P&gt;So in calculated dimension i wrote as 'if(Not Isnull([Target flag]) and [Target Flag]=1,'Target','Non-target'))'.&lt;/P&gt;&lt;P&gt;Same i kept it in List box also .&lt;/P&gt;&lt;P&gt;But the issue is when i select on 'null ' customer it should link to 0 value of target flag but list box is griding out ,i want to link that null customers as 0 or non-target .So should i write any expression in Edit script .Please give any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* And in desktop version and web view the null is showing as Non-target ,but when i check at development ,there the null customers are showing as null.&lt;/P&gt;&lt;P&gt;Please check the screen shots one is at deskop application and one is at development server .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 21:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-Null-values/m-p/597586#M1114479</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2014-02-17T21:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Null values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-Null-values/m-p/597587#M1114480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;if([Target Flag]&amp;gt;0,,'Target','Non-target')&lt;/P&gt;&lt;P&gt;if this doesn't help u, upload sample appilication. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 21:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-Null-values/m-p/597587#M1114480</guid>
      <dc:creator>santharubban</dc:creator>
      <dc:date>2014-02-17T21:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Null values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-Null-values/m-p/597588#M1114481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorting things in the load script is almost always better than doing it in a calculated dimension.&amp;nbsp; You physically can not select a Null as it does not exist.&amp;nbsp; Even if you display it as something else (using a calculated dimension) it is still null behind the scenes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your load script have the following lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(isnull([Target flag]), 0, [Target flag]) as [Target flag],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if([Target flag] = 1, 'Target', 'Non-Target') as [Is Target],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can then use the &lt;STRONG&gt;Target flag&lt;/STRONG&gt; in expressions and &lt;STRONG&gt;Is Target&lt;/STRONG&gt; as a dimension and select on fields as you would want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have blanks rather than nulls in the field (it sounds like they are not) you will need to check for null and blank separately in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Steve &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 22:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-Null-values/m-p/597588#M1114481</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-02-17T22:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Null values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-Null-values/m-p/597589#M1114482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&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;"&gt;if(len(trim(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Target flag]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;))=0 or &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Target flag]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=0, dual('Non target', 0),&amp;nbsp; dual('Target', -1)) as [Target flag],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 23:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-Null-values/m-p/597589#M1114482</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-17T23:03:12Z</dc:date>
    </item>
  </channel>
</rss>

