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:
pivot tabel is displaying the wrong weeknumber, even though I’m using ISOWEEKNUM in my data: Jan 1st, 2023 was a Sunday, and since ISOWEEKNUM uses the first week of the year that contains a Thursday week number 1 starts on Jan 2 (Monday). Yet when I create a pivot it starts with week 2. Or, rather, displays week 2. It’s a bug in the pivot table, still here in the latest version of Excel (also for the Mac btw)
11-Oct-21is week 41.Excel 2016is showing42@GravitateWEEKNUMand I am usingISOWEEKNUM. Not entirely sure of the difference, exceptWEEKNUMdefaults to Sunday being the first day of the week, where asISOWEEKNUMis a Monday. I am not sure what the OP is using but I suggest they try the opposite of what they currently are.ISOWeeknumis used to return the week number (for a specified date) in the year. It follows theISO (International organization for Standardization)week number.=ISOWEEKNUM("1/6/2019")and FunctionWeeknumis used to return the week number (for a specified date) in the year. It has 2 parameters and the 2nd parameter is used to define the weeks beginning on specific day.=WEEKNUM("01/6/2019",1)- Here 1 is used for Sunday as 1st day of week. You are right @Gravitate