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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
akpofureenughwu
Creator III
Creator III

Date Generation

Good day sir, I'm working on a excel file and I tried a code to generate day,month, year field from the existing date field but my output is blank or empty. I will need help from the community for this and possible help generate the quarter field too. Find attached files for clarity.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this:

LOAD *,

          Month(Date) as Month,

          Year(Date) as Year,

          MonthName(Date) as MonthYear;

LOAD Date#(Date, 'DD/MM/YYYY') as Date,

          ....

View solution in original post

4 Replies
sunny_talwar
MVP
MVP

Seems like your date might not be in DDMMYYYY format. Can you share how your datefield looks like in the raw data?

akpofureenughwu
Creator III
Creator III
Author

Hello sir, Let me try and send u the date field shot...

Please find the attached file.

sunny_talwar
MVP
MVP

Try this:

LOAD *,

          Month(Date) as Month,

          Year(Date) as Year,

          MonthName(Date) as MonthYear;

LOAD Date#(Date, 'DD/MM/YYYY') as Date,

          ....

akpofureenughwu
Creator III
Creator III
Author

Hello sunny, It worked. Thanks Man