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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
ParthKoul1
Contributor
Contributor

MAKE date from 2 separate columns .

Hi, I need to  create a date column and I have 2 different columns MMDD AND YY.

How can I create this into date in QLIK?

 

Thanks,

3 Replies
Saravanan_Desingh

Something like this?

tab1:
LOAD *, Date(Date#(mmdd&yy,'mmddyy')) As Date;
LOAD * INLINE [
    mmdd, yy
    1121, 20
    0106, 21
    0819, 19
];
Saravanan_Desingh

Output:

commQV79.PNG

QFabian
MVP
MVP

hi @ParthKoul1 , another option is :

makedate(2000 + YY, left(MMDD, 2), right(MMDD, 2)  as Date

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.