Hi,
In my old version of alteryx I had the following DateTime in a formula tool to create a new column with Week Commencing based on a column of dates:
Week0Comm = datetimeadd(tostring([Year],0)+'-01-01',1 - tonumber(datetimeformat(tostring([Year]),0)+'-01-01', "%w")),"days")
Followed by:
WeekComm = datetimeadd([Week0Comm], tonumber(week)*7,"days")
And output in old version gave me WeeKComm with the correct week commencing for the date in the data.
The error message in the new version is centered on the '-01-01'
Old workflow is attached. Help Please!!