<?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: Find out if something is NOT a valid date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817656#M288281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For any Valid date if you write&lt;/P&gt;&lt;P&gt;=Num(Date) &lt;/P&gt;&lt;P&gt;you should able to get some numbers....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the numbers are not appearing, either your date format is wrong or it may not be a date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2015 09:14:48 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-03-30T09:14:48Z</dc:date>
    <item>
      <title>Find out if something is NOT a valid date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817654#M288279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to load an Excel_file where in column A, I usually have a numeric code. I need that as a mapping_table.&lt;/P&gt;&lt;P&gt;The issue is, following the actual block of data comes a block of notes where in column A there is a date - the date that the note was entered, I guess. Never mind, I don't need those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; The question is, how can I find out and filter out the lines where I have a date in column A?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The length of the codes differs from 1 to 7 digits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Between those two blocks of data, there are some blank lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me a hint? I guess I have to use the DATE#_function - but then, any number can&amp;nbsp; be interpreted as a date.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 09:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817654#M288279</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-03-30T09:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Find out if something is NOT a valid date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817655#M288280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the IsNum().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is recognized as a date, then it has a numeric value. E.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsNum(Date#( A, 'M/D/YY' ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 09:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817655#M288280</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-03-30T09:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find out if something is NOT a valid date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817656#M288281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For any Valid date if you write&lt;/P&gt;&lt;P&gt;=Num(Date) &lt;/P&gt;&lt;P&gt;you should able to get some numbers....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the numbers are not appearing, either your date format is wrong or it may not be a date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 09:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817656#M288281</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-30T09:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Find out if something is NOT a valid date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817657#M288282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that doesn't seem to work.&lt;/P&gt;&lt;P&gt;All the dates come through as five-digit numeric values.&lt;/P&gt;&lt;P&gt;The date_format in the script is set to 'DD.MM.YYYY'&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; When i write the formula&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; = ISNUM(DATE#([field], 'DD.MM.YYYY') &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;=&amp;gt; I always get 0, regardless whether the record is a date or one of the codes I need.&lt;/P&gt;&lt;P&gt;Can you tell me what's wrong?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 09:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817657#M288282</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-03-30T09:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Find out if something is NOT a valid date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817658#M288283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;=NUM(Date#(YourDateField,'DD.MM.YYYY')) as YourDateFieldNumFormat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 09:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817658#M288283</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-30T09:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find out if something is NOT a valid date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817659#M288284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post sample excel file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 09:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817659#M288284</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-30T09:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Find out if something is NOT a valid date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817660#M288285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe I have been imprecise in my original post:&lt;/P&gt;&lt;P&gt;- ALL of the entries in column _A are seemingly numeric since the ISNUM() function in a filter didn't filter out anything&lt;BR /&gt;&amp;nbsp;&amp;nbsp; =&amp;gt; That returned both the codes and the dates.&lt;/P&gt;&lt;P&gt;- Using DATE# with the date_format that is set on the Main_tab of my script, I get the number I have everywhere - DATE#([field], 'DD.MM.YYYY') returns just what is in the field, nothing else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dates in the Excel_file are written in DD.MM.YYYY format, but they are displayed in QlikView as five-digit numerics. The codes vary in length - so I cannot say for sure that there might not be five-digit codes, too.&lt;/P&gt;&lt;P&gt;I can try to put together a fake_app, but then the error might or might not come across ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 09:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817660#M288285</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-03-30T09:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Find out if something is NOT a valid date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817661#M288286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give an example of how these dates look? And an example of what the non-dates look like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 09:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817661#M288286</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-03-30T09:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Find out if something is NOT a valid date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817662#M288287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this problem just dissolved into thin air &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It turns out I was looking at the wrong column - I have to load a different one where the filtering will be easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still, I attach a small fake_app I have put together. From the Excel it is easy to see what is a note - I don't need those. That's why I thought I had to filter. It would still be interesting to know how I could do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 09:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817662#M288287</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-03-30T09:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find out if something is NOT a valid date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817663#M288288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think few of the data is not in correct format, better you create a new date using &lt;STRONG&gt;MAKEDATE() function &lt;/STRONG&gt; by extracting the number using left(), right and mid functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 09:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817663#M288288</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-03-30T09:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Find out if something is NOT a valid date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817664#M288289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, I had that before and I know the Makedate() function can be useful - but in this case I don't need a date - I need to find out what is and what is not supposed to be a date in the underlying Excel_file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 10:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817664#M288289</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-03-30T10:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Find out if something is NOT a valid date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817665#M288290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD Code, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;fake_mapping_countries.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where IsNum(Code) And Index(Code,'/');&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 11:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817665#M288290</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-30T11:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Find out if something is NOT a valid date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817666#M288291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/115174"&gt;DataNibbler&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a solution for this, convert your excel to csv format then load the data from it, then use isnum() dates will be loaded as string and rest of thing will be loaded as num. this will solve the issue.&lt;/P&gt;&lt;P&gt;Excel will not handle this text and number format efficiently, when you convert it to csv, it define the actual format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 12:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817666#M288291</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-03-30T12:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find out if something is NOT a valid date</title>
      <link>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817667#M288292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works. Unfortunately, the QlikView_wizard does not let you load an Excel file as a csv, so I would have to actually save a copy of that.&lt;/P&gt;&lt;P&gt;As I always try to generate as little redundancy (and thus error_potential) as possible, I will ultimately go for another approach, though - I will simply load an additional field which I can use to filter.&lt;/P&gt;&lt;P&gt;Thanks a lot anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 09:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-out-if-something-is-NOT-a-valid-date/m-p/817667#M288292</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-03-31T09:36:08Z</dc:date>
    </item>
  </channel>
</rss>

