Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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?
Hi try this as sunindia suggested
Date(MakeDate(year, month, 1), 'MMM/DD/YYYY') as date,
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
Already i tried but its not working
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
yeah i got it
yeah i got it. this is also correct.
thank you for your response
thank a lot sunindia
Hi Stehen,
Please convert your months to numbers.
Then use MakeDate(Year,Month,01)
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
no it should be like:
MakeDate(year, ApplyMap('Months', months), 1) as date