<?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 1.1.1753 instead of Null value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/1-1-1753-instead-of-Null-value/m-p/205373#M61869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's not just some funny way that QlikView displays NULL. QlikView isn't just making up the 01/01/1753 date from scratch. It's almost certainly coming from a combination of how dates are stored in your source and how you're loading them into QlikView.&lt;/P&gt;&lt;P&gt;So... how are dates stored in your source? How are you loading them into QlikView?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Sep 2010 19:18:57 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-09-16T19:18:57Z</dc:date>
    <item>
      <title>1.1.1753 instead of Null value</title>
      <link>https://community.qlik.com/t5/QlikView/1-1-1753-instead-of-Null-value/m-p/205372#M61868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;When I load a table from a Pervasive SQL source and ther is no value in a date field for a record then QV stores the value '01/'01/1753' in QVD.&lt;/P&gt;&lt;P&gt;My settings at the beginning of the script are the following:&lt;/P&gt;&lt;P&gt;SET ThousandSep="'";&lt;BR /&gt;SET DecimalSep='.';&lt;BR /&gt;SET MoneyThousandSep="'";&lt;BR /&gt;SET MoneyDecimalSep='.';&lt;BR /&gt;SET TimeFormat='hh:mm:ss';&lt;BR /&gt;SET DateFormat='M/D/YYYY';&lt;BR /&gt;SET TimestampFormat='M/D/YYYY hh:mm:ss[.fff]';&lt;BR /&gt;SET MonthNames='Jan;Feb;Mrz;Apr;Mai;Jun;Jul;Aug;Sep;Okt;Nov;Dez';&lt;BR /&gt;SET DayNames='Mo;Di;Mi;Do;Fr;Sa;So';&lt;BR /&gt;SET Verbatim = 1;&lt;/P&gt;&lt;P&gt;How can I change this behaviour? I like to have instead a NULL value .&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 19:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-1-1753-instead-of-Null-value/m-p/205372#M61868</guid>
      <dc:creator />
      <dc:date>2010-09-16T19:06:22Z</dc:date>
    </item>
    <item>
      <title>1.1.1753 instead of Null value</title>
      <link>https://community.qlik.com/t5/QlikView/1-1-1753-instead-of-Null-value/m-p/205373#M61869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's not just some funny way that QlikView displays NULL. QlikView isn't just making up the 01/01/1753 date from scratch. It's almost certainly coming from a combination of how dates are stored in your source and how you're loading them into QlikView.&lt;/P&gt;&lt;P&gt;So... how are dates stored in your source? How are you loading them into QlikView?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 19:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-1-1753-instead-of-Null-value/m-p/205373#M61869</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-16T19:18:57Z</dc:date>
    </item>
    <item>
      <title>1.1.1753 instead of Null value</title>
      <link>https://community.qlik.com/t5/QlikView/1-1-1753-instead-of-Null-value/m-p/205374#M61870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ali,&lt;/P&gt;&lt;P&gt;I've run into that before, and in my case was not a QlikView error, that actually doesn't change the behavior of null values if a nullasvalue, nulldisplay or so is explicitly set, rather than a database "feature" in which the default not null value for a date was 1753 or 1754.&lt;/P&gt;&lt;P&gt;And it was not Pervasive but Microsoft Navision (so my guess is that has not to do with the database itself, but with the environment).&lt;/P&gt;&lt;P&gt;Check your database and odbc connections to see what happens if you load that table in some other application (excel, access, performing a raw query to the database...)&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 19:22:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-1-1753-instead-of-Null-value/m-p/205374#M61870</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-09-16T19:22:50Z</dc:date>
    </item>
    <item>
      <title>1.1.1753 instead of Null value</title>
      <link>https://community.qlik.com/t5/QlikView/1-1-1753-instead-of-Null-value/m-p/205375#M61871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, check your ODBC driver documentation.&lt;/P&gt;&lt;P&gt;If doesn´t exists any fix for the issue, why just don´t use an "if" in your LOAD stament?&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;if(date='1.1.1793',null(),date)&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;EM&gt;yourquery&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 21:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-1-1753-instead-of-Null-value/m-p/205375#M61871</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2010-09-16T21:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: 1.1.1753 instead of Null value</title>
      <link>https://community.qlik.com/t5/QlikView/1-1-1753-instead-of-Null-value/m-p/205376#M61872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you find a solution for this?? We have the same problem here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 09:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-1-1753-instead-of-Null-value/m-p/205376#M61872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-18T09:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: 1.1.1753 instead of Null value</title>
      <link>https://community.qlik.com/t5/QlikView/1-1-1753-instead-of-Null-value/m-p/205377#M61873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have only one date field you can use an IF statement in your LOAD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;if ([YourDateField] = '1753-01-01 00:00:00', null(), [YourDateField]) as YOURDATEFIELD&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have more date fields, you can define a "function" and then use it wherever you need it:&lt;/P&gt;&lt;P&gt;First, define the variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SET NullTimeStamp&lt;/TD&gt;&lt;TD&gt;= if ($1 = '1753-01-01 00:00:00', null(), $1);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use it when LOAD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;$(NullTimeStamp(YourDateField1)) AS YOURDATEFIELD1,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(NullTimeStamp(YourDateField2)) AS YOURDATEFIELD2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(NullTimeStamp(YourDateField3)) AS YOURDATEFIELD3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 14:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-1-1753-instead-of-Null-value/m-p/205377#M61873</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-18T14:33:48Z</dc:date>
    </item>
  </channel>
</rss>

