Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I am using below load script,
Month(weekend(CanonicalDate)) as MonthPeriod,
This will print only the month name as 'NOV'
But i need like Nov-15.
So i used
Month(weekend(CanonicalDate)) & '-' & Year(CanonicalDate,'YY') as MonthPeriod
But not working.
Help on this.
Regards,
Kumar
Try below
Date(MonthStart(weekend(CanonicalDate)),'MMM-YY') as MonthPeriod
MonthName(CanonicalDate) ?
Date(MonthStart(CanonicalDate),'MMM-YY')
Hi,
You can use
Monthname(CanonicalDate) as FieldName
as tresesco mentioned:
MonthName(CanonicalDate) will work