This adds one extra attribute to date fields, an attribute for week number.
Week number is calculated according to Ruby's strftime("%U"). Which is:
Week number of the year, starting with the first Sunday as the first day of the first week.
Week number attribute is prefixed by %Y for proper sorting.
For the nature of pivottable.js, the "missing" week numbers cannot be filled or padded. If you do not have any data for, say Week24, then column "2016-W24" will not be shown in the pivot table. "2016-W25" will immediately follow "2016-W23".
This adds one extra attribute to date fields, an attribute for week number.
Week number is calculated according to Ruby's strftime("%U"). Which is:
Week number attribute is prefixed by %Y for proper sorting.
For the nature of pivottable.js, the "missing" week numbers cannot be filled or padded. If you do not have any data for, say Week24, then column "2016-W24" will not be shown in the pivot table. "2016-W25" will immediately follow "2016-W23".