Hi all
I'm slightly surprised that this formula gives -01-01 as the day and month for all weeks.
Any ideas on what I'm doing wrong please?
Thanks
Mike
Solved! Go to Solution.
Apparently %W is not supported for a datetimeparse()
%W can only be used in DateTimeFormat not in DateTimeParse.
Something like:
DateTimeAdd(
DateTimeAdd(LEFT([Fiscal Week Number],4) + '-01-01',
-ToNumber(DateTimeFormat(LEFT([Fiscal Week Number],4) + '-01-01', '%w')),
"days"),
7 * ToNumber(Right([Fiscal Week Number],2)), "days")
should be close to what you need.
@PhilipMannering
Ok thanks for confirming
@AngelosPachis Thanks for the link, that's a useful solution
@jdunkerley79 That works a treat thanks. Now I just need to make sure I understand exactly what it's doing 🙂