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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
stephenedberkg
Creator III
Creator III

MakeDate

i have have the year and month filed i want to combine this year and month .

I am using

makedate(year,month,01) as date,

but this is not working can anyone help me?

Labels (1)
19 Replies
Anonymous
Not applicable


Hi try this  as sunindia suggested


Date(MakeDate(year, month, 1), 'MMM/DD/YYYY') as date,

sunny_talwar

Months:

Mapping LOAD * Inline

[months, monthNo.

jan, 1

feb, 2

mar, 3

apr, 4

may, 5

jun, 6

jul, 7

aug, 8

sep, 9

oct, 10

nov, 11

dec, 12
];

MakeDate(year, ApplyMap('Months', month), 1) as date

stephenedberkg
Creator III
Creator III
Author

Already i tried but its not working

anbu1984
Master III
Master III

Makedate() need integer arguments and not alphabets. Try like this

Makedate(Year,Wildmatch(Month,'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'),1) As Date

stephenedberkg
Creator III
Creator III
Author

yeah i got it

stephenedberkg
Creator III
Creator III
Author

yeah i got it. this is also correct.

thank you for your response

stephenedberkg
Creator III
Creator III
Author

thank a lot sunindia

ankitaag
Partner - Creator III
Partner - Creator III

Hi Stehen,

Please convert your months to numbers.

Then use MakeDate(Year,Month,01)

anbu1984
Master III
Master III

If month field case doesn't match with mapping key, then you won't get result. Try Lower like this

MakeDate(year, ApplyMap('Months', Lower(month)), 1) as date

Not applicable

no it should be like:

MakeDate(year, ApplyMap('Months', months), 1) as date