<?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() does not Work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220868#M73730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then your data is not null. Does it just contain spaces (spaces are as much a character as 'a' or anything else dont forget)? If you want to count a field full of spaces as empty then use this where trim removes both leading and trailing spaces:&lt;/P&gt;&lt;P&gt;if(len(trim(Recipe)) = 0, .....&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>Mon, 12 Jul 2010 17:46:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-12T17:46:46Z</dc:date>
    <item>
      <title>isNull() does not Work</title>
      <link>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220862#M73724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a list of receptnumbers and from this list I select the changes in the Recept with this Formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;if(isnull(Recipe), null(),if(Recipe = previous(Recipe), 0, 1)) as RecipeChange.&lt;BR /&gt;[/ncode]&lt;BR /&gt;I need a expression which gives me the following.&lt;BR /&gt;1) If I select month and date, I need the first Number to be always 1.&lt;BR /&gt;2) Another problem is that all the Numbers are not filled in the Databank. If there are no Numbers it must still consider it as a change i.e value must be 1&lt;BR /&gt;For ex.. In the Recept Number Field The first one is 1 and after that if the number is equal to previous Number the change is 0 and if it is not equal then 1. Even though there is a blank or nothing it must take as a seperate Change. The First in the list is automatically 1. I hope I am clear.&lt;BR /&gt; &amp;lt;table&amp;gt;&amp;lt;col&amp;gt;&amp;lt;/col&amp;gt; &amp;lt;col&amp;gt;&amp;lt;/col&amp;gt; &amp;lt;tbody&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Recept Numbers&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; Recept Change&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;12345&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;1&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;12345&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;0&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;-&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;1&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;12345&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;1&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;12346&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;1&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;12346&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;0&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&lt;BR /&gt;3) If the Number changes from null() to RezeptNumber this formula works but when It changes from Number to Null(). This does not work.&lt;BR /&gt;&lt;BR /&gt;Ideas are appreciated. Thanks in Advance&lt;BR /&gt;Sravan&lt;BR /&gt; &amp;lt;/body&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 14:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220862#M73724</guid>
      <dc:creator />
      <dc:date>2010-07-12T14:57:53Z</dc:date>
    </item>
    <item>
      <title>isNull() does not Work</title>
      <link>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220863#M73725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any one..can you help me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 16:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220863#M73725</guid>
      <dc:creator />
      <dc:date>2010-07-12T16:08:13Z</dc:date>
    </item>
    <item>
      <title>isNull() does not Work</title>
      <link>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220864#M73726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe it is not null. Maybe it's 0 or a blank string like this ''. Try to check a length of the value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 16:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220864#M73726</guid>
      <dc:creator />
      <dc:date>2010-07-12T16:09:35Z</dc:date>
    </item>
    <item>
      <title>isNull() does not Work</title>
      <link>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220865#M73727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is a blank like you said. How can I change the code so that It may give me correct result.&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 16:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220865#M73727</guid>
      <dc:creator />
      <dc:date>2010-07-12T16:13:23Z</dc:date>
    </item>
    <item>
      <title>isNull() does not Work</title>
      <link>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220866#M73728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are issues with 64bit and null so always use len() to test for null for portability:&lt;/P&gt;&lt;P&gt;if (len([field name]) = 0, x, y)&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>Mon, 12 Jul 2010 17:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220866#M73728</guid>
      <dc:creator />
      <dc:date>2010-07-12T17:01:05Z</dc:date>
    </item>
    <item>
      <title>isNull() does not Work</title>
      <link>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220867#M73729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Gordon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.. so what can the formula be..&lt;/P&gt;&lt;P&gt;if(len(Recipe) = 0, 'None', if(Recipe = Previous(Recipe), 0 ,1) as Recipe change. This does not work. Why I dont get None in my Recipe, I dont understand &lt;IMG alt="Surprise" src="http://community.qlik.com/emoticons/emotion-3.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 17:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220867#M73729</guid>
      <dc:creator />
      <dc:date>2010-07-12T17:30:36Z</dc:date>
    </item>
    <item>
      <title>isNull() does not Work</title>
      <link>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220868#M73730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then your data is not null. Does it just contain spaces (spaces are as much a character as 'a' or anything else dont forget)? If you want to count a field full of spaces as empty then use this where trim removes both leading and trailing spaces:&lt;/P&gt;&lt;P&gt;if(len(trim(Recipe)) = 0, .....&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>Mon, 12 Jul 2010 17:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/isNull-does-not-Work/m-p/220868#M73730</guid>
      <dc:creator />
      <dc:date>2010-07-12T17:46:46Z</dc:date>
    </item>
  </channel>
</rss>

