<?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: calculation with &amp;quot;NULL&amp;quot;-value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531619#M1124991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(isnull(auzug),... should work, but if(len(trim(auszug))=0,... will also catch strings of zero or more spaces.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Jan 2014 10:59:37 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-01-18T10:59:37Z</dc:date>
    <item>
      <title>calculation with "NULL"-value</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531615#M1124987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope somebody can help me with this issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see following request I am doing for my db. I try to get all items where:&lt;/P&gt;&lt;P&gt;a) the date of "MieterEinzug" is before today&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;b) the date of "MieterAuszug" is after today&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;MieterEinzug={"&amp;lt;=$(=date(dHeute,'DD.MM.YYYY hh:mm:ss'))"}, MieterAuszug={"&amp;gt;=$(=date(dHeute,'DD.MM.YYYY hh:mm:ss'))"}, Mietername={'Leerstand'}, wtyp={'M'}&amp;gt;} Mietername)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far it works fine, as long there is a date written in the db. Actually there are some items where no date is written in the db in the column "MieterAuszug", then there is the value "NULL". As I understand it, there is no chance to calculate with NULL. So how can I check it like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) the Date of "MieterAuszug" is after today OR "MieterAuszug" isNull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I know that there is a function called IsNull to proof this, but I haven't found the right way to work with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope somebody got the right idea for me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 10:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531615#M1124987</guid>
      <dc:creator>robert_gansel</dc:creator>
      <dc:date>2014-01-18T10:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: calculation with "NULL"-value</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531616#M1124988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Perhaps like this: MieterAuszug-={"&amp;lt;=$(=date(dHeute,'DD.MM.YYYY hh:mm:ss'))"}&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;But a better solution is to replace the nulls in the script with real values: See this document: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-3155" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;NULL handling in QlikView&lt;/A&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;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 10:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531616#M1124988</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-18T10:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: calculation with "NULL"-value</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531617#M1124989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your answer. but actually it does not help with that "-". I still do not get the items with "Null"-value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I should replace the "null"-value with e.g. "99999" when loading the script? How shall I do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I load this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; str as MieterStr,&lt;/P&gt;&lt;P&gt;&amp;nbsp; einzug as MieterEinzug,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;auszug as MieterAuszug,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; miete,&lt;/P&gt;&lt;P&gt;&amp;nbsp; name as Mietername,&lt;/P&gt;&lt;P&gt;&amp;nbsp; wtyp,&lt;/P&gt;&lt;P&gt;&amp;nbsp; haus as Mieterhaus,&lt;/P&gt;&lt;P&gt;&amp;nbsp; wohn as Mieternummer;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 10:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531617#M1124989</guid>
      <dc:creator>robert_gansel</dc:creator>
      <dc:date>2014-01-18T10:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: calculation with "NULL"-value</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531618#M1124990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; str as MieterStr,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; einzug as MieterEinzug,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp; if ( isnull(&lt;/SPAN&gt;&lt;STRONG style="color: #993300; font-style: inherit; font-family: inherit;"&gt;auszug) , 99999 ,&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;auszug&lt;/STRONG&gt; ) as MieterAuszug,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; miete,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; name as Mietername,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; wtyp,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; haus as Mieterhaus,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; wohn as Mieternummer;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 10:57:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531618#M1124990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-18T10:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: calculation with "NULL"-value</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531619#M1124991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(isnull(auzug),... should work, but if(len(trim(auszug))=0,... will also catch strings of zero or more spaces.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 10:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531619#M1124991</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-18T10:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: calculation with "NULL"-value</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531620#M1124992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That helps! Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 11:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531620#M1124992</guid>
      <dc:creator>robert_gansel</dc:creator>
      <dc:date>2014-01-18T11:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: calculation with "NULL"-value</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531621#M1124993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add in the script before loading data table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NullAsValue FieldName;&amp;nbsp; (or more fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET NullValue = "default value"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 14:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-with-quot-NULL-quot-value/m-p/531621#M1124993</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2014-01-18T14:15:57Z</dc:date>
    </item>
  </channel>
</rss>

