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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
jcampbell
Partner - Creator
Partner - Creator

Date Format & Load Solution

Thought I would share the following...I was importing data with field called "Date" with this format "MM/DD/YYYY" but I needed to break out each of those elements (Month, Day, Year) for analysis purposes. And with a very simple addition to my load script it works great:

MyData:

LOAD Date,

Year(date#([Date],'MM/DD/YYYY')) as Year,

Month(date#([Date],'MM/DD/YYYY')) as Month,

Day(date#([Date],'MM/DD/YYYY')) as Day,

Description,

Category,

Labels,

Notes

FROM

C:\somefile.txt

(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

0 Replies