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

Can't get year or month from Date (qvd attached)

Hello Folks,

I'm running into a peculiar situation, whereby my dates aren't being seen as date.  When I run the below script.

BreadCrumbs:

LOAD

    breadCrumb_Id,

    breadCrumbDateTime,

    YEAR(breadCrumbDateTime)

FROM [lib://\RestrictedDataSet.qvd]

(qvd);

on the attached QVD, I get that the year is blank.

Lyrically.PNG

The only thing that I can think of is that the source for my QVD is a MySQL Community server, and Qlik doesn't know how to get metadata that says "this field is a date field" from the connection.

Any help on why this date isn't being seen as a date would be greatly appreciated.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Load

*,

Date(Floor(breadCrumbDateTime)) as breadCrumbDate,

Time(Frac(breadCrumbDateTime)) as breadCrumbTime

;

LOAD

breadCrumb_Id,

    TimeStamp(TimeStamp#(breadCrumbDateTime,'MM/DD/YYYY hh:mm:ss')) as breadCrumbDateTime

FROM

RestrictedDataSet.qvd

(qvd);

View solution in original post

2 Replies
MK_QSL
MVP
MVP

Load

*,

Date(Floor(breadCrumbDateTime)) as breadCrumbDate,

Time(Frac(breadCrumbDateTime)) as breadCrumbTime

;

LOAD

breadCrumb_Id,

    TimeStamp(TimeStamp#(breadCrumbDateTime,'MM/DD/YYYY hh:mm:ss')) as breadCrumbDateTime

FROM

RestrictedDataSet.qvd

(qvd);

JustinDallas
Specialist III
Specialist III
Author

Disgusting.