Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
laurentubesing
Contributor
Contributor

Date Conversion Not Working

Hi All -

I'm trying to convert the date of a field via the Data Manager from "general" to date.  When I do this, it turns all the fields to null.  I went back tot he source file and converted the field to "date" and that didn't work either ... qlik sense still pulls it in as general.  Conversion still turns everything to null.

 

Any help?

Labels (1)
6 Replies
simonaubert
Partner - Specialist II
Partner - Specialist II

Could you please provide some screenshots?

Bi Consultant (Dataviz & Dataprep) @ Business & Decision
Yoshidaqlik
Creator II
Creator II

Hi

may have to use conversion function if applicable

Date (dayname (field_date), 'YYYY-MM-DD'))

Regards 

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng
laurentubesing
Contributor
Contributor
Author

Thanks for the response! Where would I put that? I'm hesitant to mess with the load script (i'm a newbie and completely ruined my app last time I did that!)

Yoshidaqlik
Creator II
Creator II

Put it as an additional field in the middle of the table.

if it goes wrong just delete the additional line

 

Load

...,

...,

field _name_date,

Date (dayname (field _name_date), 'YYYY-MM-DD')) as field _name_date_2,

...,

...,

...,

From .....

in place of the field _name_date put the correct field name

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng
laurentubesing
Contributor
Contributor
Author

Pretty sure I did that wrong:

wen't here:

clipboard_image_0.png

And crated a new section ... put your script in below and it didn't work.  Where should I have put it?

Yoshidaqlik
Creator II
Creator II

apparently the script is short

Paste the original script here, so it is easier to say the line

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng