Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

HOW TO REMOVE NULL IN CREATE DATE FIELD

  CREATED DATE

IBCONFIG SUCCESS
null
PROV_SUCCESS
13045
13048
28470
28523
28868
29129
03-07-00
04-07-00
05-07-00

PLEASE HELP ME ARGENT.

1 Solution

Accepted Solutions
Peter_Cammaert
Partner - Champion III
Partner - Champion III

If I understand your issue correctly, it would be better to insert NULL values as a replacement of the non-date text values.

You can do this in your script like:

:

date#([CREATED DATE]) AS [CREATED DATE],

:

date#() will return NULL if it doesn't understand the current parameter value.

If the column date format doesn't match your default format, you will have to add a format string parameter to the date#() function call.

Best,

Peter

View solution in original post

4 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

If I understand your issue correctly, it would be better to insert NULL values as a replacement of the non-date text values.

You can do this in your script like:

:

date#([CREATED DATE]) AS [CREATED DATE],

:

date#() will return NULL if it doesn't understand the current parameter value.

If the column date format doesn't match your default format, you will have to add a format string parameter to the date#() function call.

Best,

Peter

robert_mika
Master III
Master III

Probably the best is to use WHERE statement at the script level

Load

...

WHERE NOT IsNull(YourField);

Feeling Qlikngry?

How To /Missing Manual(25 articles)

Peter_Cammaert
Partner - Champion III
Partner - Champion III

If you display a field formatted like this in a listbox, there won't be any NULL values (or other non-date values) present. Problem solved.

Peter

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Load

...

WHERE

Len(Trim(FieldName)) > 0 AND Upper(FieldName) <> 'NULL';

Hope this helps you.

Regards,

Jagan.