Period table
A period table lists periods of your own, such as 13 four-week periods a year, seasons or promotions. With one, the report adds a Period choice beside Week and Day, and each period compares with the one before and with the same period a year earlier. Months, quarters and years stay as they are.
Add one in the setup’s Dates step. Open Fiscal year, working days and other calendars (optional), then under Do you report by periods of your own? choose Upload a period table…. The question shows only when the data has dates by day.
If you have no table to hand, Make 13 four-week periods a year makes them from the day in from, which starts on the Sunday on or before the data’s first day. The periods are named P1 to P13 and run until they cover the data’s last day.
Columns
Section titled “Columns”The file is a CSV file with the column names on its first line, read as a data file is. Each column is found by what it holds, then by its name.
| Column | What it holds | How it is found |
|---|---|---|
| First day | The day each period starts | A column of dates named with start, from, begin or first, or else the first column of dates. |
| Last day | The day each period ends, itself included | Another column of dates named with end, to, through, thru, until or last, or else the next column of dates. |
| Name | What the report calls the period, such as P1 or Back to school |
The first column of words. Without one, the periods are named Period 1, Period 2 and so on. |
| Year | Optional. The year a period belongs to, as a whole number: 2024 or 24 |
Whole numbers in a column named year, yr, fy or fiscal year. |
| Number | Optional. The period’s place in its year: 1 to 99 |
Whole numbers in a column named number, no, num, # or period number. |
A name used in more than one year is shown with its year, as in P1 2025.
Dates are read in the data file’s order, month first or day first, as its setup reads them. A row without both days is skipped.
Without a year, a period belongs to the year its middle day falls in, counted from the setup’s year start. Without a number, it takes its place in that year by date. Each period compares with the period of the same number a year earlier.
What the setup refuses
Section titled “What the setup refuses”A table that cannot be read changes nothing. The message starts with the file’s name, for example periods.csv:.
| Message | When |
|---|---|
| A period table needs two columns of dates: each period’s first day and its last day. | Fewer than two columns hold only dates. |
| The table has no rows with both dates. | Every row lacks a first or last day. |
| time: period {name} ends before it starts | A last day is before its first day. |
| time: periods {name} and {name} overlap | Two periods share a day. Each day is in one period at most. |
| time: periods {name} and {name} have the same year and number | Two periods would compare as the same period. |
| time: a custom period table has at most 2,000 periods | The table is too long. |
| time: period {name}: its number is 1 to 99 | A number is below 1 or above 99. |
A day with data that falls in no period still counts in days, weeks and months. The setup says how many such days there are.
Example
Section titled “Example”This example is the first periods of the retail sample’s table, which has 13 four-week periods a year, each year starting on a Sunday.
period,start,end,year,numberP1,2023-12-31,2024-01-27,2024,1P2,2024-01-28,2024-02-24,2024,2P3,2024-02-25,2024-03-23,2024,3P4,2024-03-24,2024-04-20,2024,4P5,2024-04-21,2024-05-18,2024,5P6,2024-05-19,2024-06-15,2024,6P7,2024-06-16,2024-07-13,2024,7P8,2024-07-14,2024-08-10,2024,8P9,2024-08-11,2024-09-07,2024,9P10,2024-09-08,2024-10-05,2024,10P11,2024-10-06,2024-11-02,2024,11P12,2024-11-03,2024-11-30,2024,12P13,2024-12-01,2024-12-28,2024,13P1,2024-12-29,2025-01-25,2025,1