Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date issue

Hi all.

I have two tables and one of them have a date field called "AnswerCreated" and the format for that field is "2014-02-04 19:42:22.130" and when I look at it in QV "41407,71546412".

I would like to use that field as a key to a Calendar but what is the best way to format that field?

See attached qvw.

Labels (1)
10 Replies
Anonymous
Not applicable
Author

Add Date field based on AnswerCreated:

Answer:
LOAD
AnswerCreated,
date(floor(AnswerCreated)) as Date,
Metaparenttype
FROM D:\QV_Data\Admin\QVDs\MIS_Quiz.qvd (qvd);

You have dates without time in Calendar, but timestamps (dates with time) in Answer.  Function floor() removes the time part.  Function date() formats it as date as define in your "SET DateFormat", so it is the same as in Date in Calendar.

Regards,

Michael