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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
alkesh_sharma
Creator III
Creator III

Creating Date field from two separate fields for Year and Month

Hello,

I have two separate fields for Year and Month.

can I create a date field from it?? Days I can take random.

Please help....

6 Replies
Not applicable

You can use Date(Date#(Year&MONTH,'YYYYMM')). it'll give the start date for that month.

alkesh_sharma
Creator III
Creator III
Author

Hello Krupasagar,

Its not working...is there any other option??

Anonymous
Not applicable

Hi

insert dates

1,

2,

.

.

.

.

31,

Not applicable

Hi Sharma, Try with MakeDate function like below:

     MakeDate(YEARFIELD, MONTH) AS DATEFIELD

If you ignore day parameter, it takes 1st of month.

tresesco
MVP
MVP

MakeDate(Year,Month,1) as Date

alkesh_sharma
Creator III
Creator III
Author

Nope, still not working...