The data in a pivot table is displaying wrong week numbers for given dates, essentially the weeknum is ahead by 1 week,
Thanks in advance
You haven't shared your raw data but I assume you have used the WEEKNUM
function.
I think the problem you are having is due to using WEEKNUM
instead of ISOWEEKNUM
.
WEEKNUM
starts counting weeks from the very first day of the year, which results in not every week having 7 days.
ISOWEEEKNUM
ensures every week has 7 days but does mean that one week can run over 2 years (which can cause it's own issues).
Please see the table below showing how the results of the two functions vary: