<?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: Bad Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bad-Date/m-p/1558622#M742444</link>
    <description>Could upp some samples off correct and bad date entries and try to describe how your want QlikView to handle these bad values?&lt;BR /&gt;</description>
    <pubDate>Tue, 19 Mar 2019 19:35:42 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2019-03-19T19:35:42Z</dc:date>
    <item>
      <title>Bad Date</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-Date/m-p/1558530#M742443</link>
      <description>&lt;P&gt;I need to create a QVD that will do the following because I'm dealing with a bad date in my data.&amp;nbsp; I'm having a hard time finding the correct syntax for this in Qlikview.&amp;nbsp; Does anyone have any suggestions for me?&lt;/P&gt;&lt;P&gt;decode(to_char(TSSOC240.T$INVD,'dd/mm/yyyy'),'01/01/4712',to_date(null),TSSOC240.T$INVD)&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-Date/m-p/1558530#M742443</guid>
      <dc:creator>fanninam</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Date</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-Date/m-p/1558622#M742444</link>
      <description>Could upp some samples off correct and bad date entries and try to describe how your want QlikView to handle these bad values?&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Mar 2019 19:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-Date/m-p/1558622#M742444</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-19T19:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Date</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-Date/m-p/1558630#M742446</link>
      <description>&lt;P&gt;My current script is as follows.&amp;nbsp; I need the bad dates within the T$INVD field to be recognized by Qlikview as a date that is null.&amp;nbsp; This way when I filter&amp;nbsp;where T$INVD &amp;gt;= '01/01/2019' Qlikview doesn't remove the record all together.&lt;/P&gt;&lt;P&gt;TTSSOC240750:&lt;BR /&gt;LOAD&lt;BR /&gt;T$ORNO,&lt;BR /&gt;T$INVD,&lt;BR /&gt;Year(T$INVD) AS Year,&lt;BR /&gt;Month(T$INVD) AS Month,&lt;BR /&gt;T$PRIS&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;\\ftwqpubt001\Qlikview_Dev\QVD\ORA_BAAN\TTSSOC240750.qvd&lt;BR /&gt;(qvd) where T$INVD &amp;gt;= '01/01/2019';&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 20:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-Date/m-p/1558630#M742446</guid>
      <dc:creator>fanninam</dc:creator>
      <dc:date>2019-03-19T20:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Date</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-Date/m-p/1558666#M742449</link>
      <description>&lt;P&gt;What does the date output of&amp;nbsp;&lt;SPAN&gt;T$INVD look like?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;It is possible to help QlikView understand the format by using date#()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If&amp;nbsp;T$INVD looks like this format&amp;nbsp; '31/12/2018' then you could write&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;date#(T$INVD, 'DD/MM/YYYY') as&amp;nbsp;T$INVD&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;IF the format is like 2018-12-31 you could write&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;date#(T$INVD, 'YYYY-MM-DD') as&amp;nbsp;T$INVD&lt;/PRE&gt;&lt;P&gt;This will only intrepret the&amp;nbsp;T$INVD as a date, not present it in the format you desire, to make it look like your default date format you could wrap date() around the expression like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;date(&lt;/STRONG&gt;date#(T$INVD, 'DD/MM/YYYY')&lt;STRONG&gt;)&lt;/STRONG&gt; as&amp;nbsp;T$INVD&lt;BR /&gt;OR &lt;BR /&gt;&lt;STRONG&gt;date(&lt;/STRONG&gt;date#(T$INVD, 'YYYY-MM-DD')&lt;STRONG&gt;)&lt;/STRONG&gt; as&amp;nbsp;T$INVD&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 22:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-Date/m-p/1558666#M742449</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-19T22:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Date</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-Date/m-p/1558973#M742450</link>
      <description>&lt;P&gt;The date output looks like this:&lt;/P&gt;&lt;P&gt;IF(date(date#(T$INVD,&lt;FONT color="#FF6600"&gt;&lt;FONT color="#000000"&gt;'&lt;/FONT&gt;12/29/4294962183 12:00:00 AM&lt;FONT color="#000000"&gt;'&lt;/FONT&gt;&lt;/FONT&gt;),Date#(Null())),T$INVD) AS T$INVD,&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 12:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-Date/m-p/1558973#M742450</guid>
      <dc:creator>fanninam</dc:creator>
      <dc:date>2019-03-20T12:25:10Z</dc:date>
    </item>
  </channel>
</rss>

