<?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 ISNULL function part 2 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142774#M22167</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;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=If(IsNull(BillCodeNew),BillCode,BilCodeNew) AS Result&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I don't know if it is necessary to include the prefix "JC."&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2009 19:30:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-04-29T19:30:49Z</dc:date>
    <item>
      <title>ISNULL function part 2</title>
      <link>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142773#M22166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fellow users,&lt;/P&gt;&lt;P&gt;I have the following challenge. I have 3 fields BillCode, BillCodeNew and Result. I would like to create the following calculation:&lt;/P&gt;&lt;P&gt;If (BillCodeNew = Blank or has the Same Value as BillCode, then field Result should have the value of BillCode, else the field Result should have the value of BillCodeNew)&lt;/P&gt;&lt;P&gt;I tried to solve this with the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;=if(BillCodeNew =' ' or BillCodeNew = BillCode, BillCode,BillCodeNew) as Result&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Greetings from Holland,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aissam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 19:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142773#M22166</guid>
      <dc:creator />
      <dc:date>2009-04-29T19:27:59Z</dc:date>
    </item>
    <item>
      <title>ISNULL function part 2</title>
      <link>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142774#M22167</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;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=If(IsNull(BillCodeNew),BillCode,BilCodeNew) AS Result&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I don't know if it is necessary to include the prefix "JC."&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 19:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142774#M22167</guid>
      <dc:creator />
      <dc:date>2009-04-29T19:30:49Z</dc:date>
    </item>
    <item>
      <title>ISNULL function part 2</title>
      <link>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142775#M22168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aissam,&lt;/P&gt;&lt;P&gt;Its really important to differentiate between 'blank', 'space' and null. A field may actually have a value of space and may be represented by ' ' (a space between single quotes) whereas null may be represented by '' (single quotes with nothing between. A space actually has a value of hex20 in ASCII and so is as much a character as 'a' or any other. Null on the otherhand is undefined - nothing at all.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 19:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142775#M22168</guid>
      <dc:creator />
      <dc:date>2009-04-29T19:45:25Z</dc:date>
    </item>
    <item>
      <title>ISNULL function part 2</title>
      <link>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142776#M22169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try to give more information. I have two tables the first is&lt;/P&gt;&lt;P&gt;JC:&lt;/P&gt;&lt;P&gt;Load BillCode, job&lt;/P&gt;&lt;P&gt;from Excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the second one is (in this table I only have jobs that should have the BillCodeNew)&lt;/P&gt;&lt;P&gt;Reallocation:&lt;/P&gt;&lt;P&gt;load BillCodeNew,job&lt;/P&gt;&lt;P&gt;From Excel1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The am doing the calculation in a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aissam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 20:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142776#M22169</guid>
      <dc:creator />
      <dc:date>2009-04-29T20:03:45Z</dc:date>
    </item>
    <item>
      <title>ISNULL function part 2</title>
      <link>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142777#M22170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thing to keep in mind regarding null values and different type of null values:&lt;/P&gt;&lt;DIV class="ExternalClass69E994A1099447DC8F01099D7CBEE710"&gt;&lt;DIV&gt;Due to optimizations present in X64 versions of QV using the ISNULL() function might give different results when compared to the 32bit version of QV. Without going in to too much detail on the technical side of things it's recommended to use Len(FIELDNAME)=0 instead of isnull() to get consistant results across platforms.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;X64 is more optimized than 32-bit when it comes to performance which also means that the tools for handling null value logics are simplified in comparison to the older 32-bit platform. To put it simply, there are situations where a x64 machine can't tell the difference between a Null value and a "missing" value, that is a null value which is not a result of data input but is created when data fields are joined together in a relation that is not 1-1.&lt;/DIV&gt;&lt;DIV&gt;These differences can't be caught using the IsNull() functionality under x64 even though it works on 32-bit where the testing can be performed on several levels. With x64 you are stuck with a simpler form of Null testing that only finds the explicit Null values.&lt;/DIV&gt;&lt;DIV&gt;By using if(len(&amp;lt;FieldName&amp;gt;)=0,..) you get the same functionality for x64 that IsNull() delivers on 32-bit with empty strings, missing values and data driven null values&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 21:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142777#M22170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-29T21:03:52Z</dc:date>
    </item>
    <item>
      <title>ISNULL function part 2</title>
      <link>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142778#M22171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well that explains a few things!! Although, it doesn't feel right to be treating my QlikView data as if it came out of DB2!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2009 02:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142778#M22171</guid>
      <dc:creator />
      <dc:date>2009-04-30T02:12:51Z</dc:date>
    </item>
    <item>
      <title>ISNULL function part 2</title>
      <link>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142779#M22172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aissam,&lt;/P&gt;&lt;P&gt;1. I use len(trim(BillCodeNew)) = 0 as a condition that covers all possible cases of "space" or null() or missing.&lt;/P&gt;&lt;P&gt;2. The second condition (BillCode=BillCodeNew) is redundant - if the two codes are the same, it doesn't matter which one do you use.&lt;/P&gt;&lt;P&gt;So, the final formula should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim(BillCodeNew)) &amp;gt; 0, BillCodeNew, BillCode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2009 02:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142779#M22172</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-04-30T02:40:51Z</dc:date>
    </item>
    <item>
      <title>ISNULL function part 2</title>
      <link>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142780#M22173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks jsn. you made my friday night a happy night.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2009 07:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNULL-function-part-2/m-p/142780#M22173</guid>
      <dc:creator />
      <dc:date>2009-05-30T07:08:22Z</dc:date>
    </item>
  </channel>
</rss>

