Forum Discussion
Week number wrong
- 4 years ago
Hi ROG ,
According to your description, the week num of the year should starts at a weekday.
Here's my solution, create a calculated column.
Week Number = WEEKNUM ( [Date], 2 ) - IF ( WEEKDAY ( STARTOFYEAR ( 'Calendar'[Date] ), 2 ) IN { 6, 7 }, 1, 0 )Both the week number and week start date get correct result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi ROG ,
According to your description, the week num of the year should starts at a weekday.
Here's my solution, create a calculated column.
Week Number =
WEEKNUM ( [Date], 2 )
- IF ( WEEKDAY ( STARTOFYEAR ( 'Calendar'[Date] ), 2 ) IN { 6, 7 }, 1, 0 )
Both the week number and week start date get correct result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.