New year, new opportunities 😃
I am trying to figure out why the WEEK function is not behaving as expected, while the CURRENT_WEEK functions seems to return the expected result.
For instance, if I do like this:
WEEK(Bo.StartTime)
It will return 2 (using todays date, 2021-01-04)
If I do like this:
CURRENT_WEEK
It will return 1 (today, the date is 2021-01-04)
I ran a list of dates through the WEEK function and I have come up with a table of week numbers, and also the value I expected:

Here is a snippet of the week numbers as seen in an Outlook calendar for reference (starts with monday, week numbers in the left column):

As it turns out, there are different ways of counting week numbers :roll:
I found this website where I compared the Swedish way of counting to Australia.
However, this doesn't explain why CURRENT_WEEK is displaying the week correctly.
Doesn't the WEEK function respect the locale?