BILLINGCALENDAR
BILLINGCALENDAR sets out the billing calendar for the year, with week number 1 starting on 1 January. BILLINGCALENDAR advises preliminary and final statement posting date and corresponding settlement for each billing week.
BILLINGCALENDAR is public data, and is available to all participants.
Source
Infrequently, only when inserting billing weeks for a future contractyear.
Volume
52-53 records inserted per contractyear
Column Schema
CONTRACTYEAR
AEMO Contract Year number starting in week containing 1st January
SQL Type: NUMBER(4,0)
Polars Type: pl.UInt16
This column is mandatory, and a primary key.
Examples:
1998, 2018
WEEKNO
Week no within the contract year. Week no 1 is the week containing 1st January
Warning
There may be 53 weeks in a year, depending on how weeks align to the year start/end.
SQL Type: NUMBER(3,0)
Polars Type: pl.UInt16
This column is mandatory, and a primary key.
Examples:
1, 53
ENDDATE
End Date of week
SQL Type: DATE
Polars Type: pl.Date()
This column is not mandatory.
Example: 1998/01/03 00:00:00
Note that AEMO represents dates as datetimes with a midnight time component.
FINALSTATEMENTDATE
Final Statement Date
SQL Type: DATE
Polars Type: pl.Date()
This column is not mandatory.
Example: 1998/01/13 00:00:00
Note that AEMO represents dates as datetimes with a midnight time component.
LASTCHANGED
Last date and time record changed
For more information, see the dedicated documentation page.
SQL Type: DATE
Polars Type: pl.Datetime()
This column is not mandatory.
Example: 1998/10/28 14:06:27
PAYMENTDATE
Payment Date
SQL Type: DATE
Polars Type: pl.Date()
This column is not mandatory.
Example: 1998/01/13 00:00:00
Note that AEMO represents dates as datetimes with a midnight time component.
PRELIMINARYSTATEMENTDATE
Preliminary Statement Date
SQL Type: DATE
Polars Type: pl.Date()
This column is not mandatory.
Example: 1998/01/13 00:00:00
Note that AEMO represents dates as datetimes with a midnight time component.
REV0_FINAL_ATTACH_WEEK
The FINAL Week where the R0 will be attached.
SQL Type: VARCHAR2(10)
Polars Type: str
This column is not mandatory.
REV0_PAYMENT_DATE
The payment date of the FINAL week in REV0_FINAL_ATTACH_WEEK.
Warning
Despite what the name suggests, this is a datetime, not a date.
SQL Type: DATE
Polars Type: pl.Datetime()
This column is not mandatory.
Example: 2026/01/20 00:05:00
REV1_FINAL_ATTACH_WEEK
The FINAL Week where the R1 will be attached.
SQL Type: VARCHAR2(10)
Polars Type: str
This column is not mandatory.
REV1_PAYMENT_DATE
The payment date of the FINAL week in REV1_FINAL_ATTACH_WEEK.
Warning
Despite what the name suggests, this is a datetime, not a date.
SQL Type: DATE
Polars Type: pl.Datetime()
This column is not mandatory.
Example: 2026/01/20 00:05:00
REV2_FINAL_ATTACH_WEEK
The FINAL Week where the R2 will be attached.
SQL Type: VARCHAR2(10)
Polars Type: str
This column is not mandatory.
REV2_PAYMENT_DATE
The payment date of the FINAL week in REV2_FINAL_ATTACH_WEEK.
Warning
Despite what the name suggests, this is a datetime, not a date.
SQL Type: DATE
Polars Type: pl.Datetime()
This column is not mandatory.
Example: 2026/01/20 00:05:00
REVISION0_STATEMENTDATE
Revision 0 Statement Date for the billing week.
Warning
Despite what the name suggests, this is a datetime, not a date.
SQL Type: DATE
Polars Type: pl.Datetime()
This column is not mandatory.
Example: 2026/01/20 00:05:00
REVISION1_STATEMENTDATE
Revision 1 Statement Date for the billing week.
SQL Type: DATE
Polars Type: pl.Date()
This column is not mandatory.
Example: 2012/05/22 00:00:00
Note that AEMO represents dates as datetimes with a midnight time component.
REVISION2_STATEMENTDATE
Revision 2 Statement Date for the billing week.
SQL Type: DATE
Polars Type: pl.Date()
This column is not mandatory.
Example: 2012/08/02 00:00:00
Note that AEMO represents dates as datetimes with a midnight time component.
REVISIONS_ATTACHED_TO_FINAL
The list of Revisions that are attached in the FINAL Statement of the week
SQL Type: VARCHAR2(50)
Polars Type: str
This column is not mandatory.
STARTDATE
Start Date of week
SQL Type: DATE
Polars Type: pl.Date()
This column is not mandatory.
Example: 1997/12/28 00:00:00
Note that AEMO represents dates as datetimes with a midnight time component.
New Data Timing
When inserting billing weeks for a future AEMOÂ Contract Year
Code Examples
Polars
Casting is enums, categoricals etc is not essential, but may speed up parsing.
Swapping int for pl.UInt16, pl.Int32 would also speed up parsing. However some of the datatypes are inferred, so they may be wrong.
This code deduplicates for you. Deduplication is normally only required across multiple months.
This code assumes that all columns are present, which may not be true for older files.
import polars as pl
import polars.selectors as cs
# e.g. "2029/03/15 00:05:00"
dt_s_fmt = "%Y/%m/%d %H:%M:%S"
# Dates are represented as datetimes at midnight
d_fmt = "%Y/%m/%d 00:00:00"
csv_paths = ["SOMEFILE.CSV", "OTHERFILE.CSV"]
lf = (
pl.concat(
[
pl.scan_csv(
csv_path, # must be unzipped beforehand
skip_rows=1, # skip the header
infer_schema=False, # much faster
)
.filter(cs.by_index(0) == "D") # drop the footer
.select(~cs.by_index(range(4))) # drop metadata columns
for csv_path in csv_paths
],
how="diagonal_relaxed",
)
.with_columns(
pl.col(
"LASTCHANGED",
"REV0_PAYMENT_DATE",
"REV1_PAYMENT_DATE",
"REV2_PAYMENT_DATE",
"REVISION0_STATEMENTDATE",
).str.strptime(pl.Datetime, dt_s_fmt),
pl.col(
"ENDDATE",
"FINALSTATEMENTDATE",
"PAYMENTDATE",
"PRELIMINARYSTATEMENTDATE",
"REVISION1_STATEMENTDATE",
"REVISION2_STATEMENTDATE",
"STARTDATE",
).str.strptime(pl.Date, d_fmt),
)
.cast(
{
"CONTRACTYEAR": int, # or pl.UInt16
"WEEKNO": int, # or pl.UInt16
"ENDDATE": pl.Date(),
"FINALSTATEMENTDATE": pl.Date(),
"PAYMENTDATE": pl.Date(),
"PRELIMINARYSTATEMENTDATE": pl.Date(),
"REV0_FINAL_ATTACH_WEEK": str,
"REV1_FINAL_ATTACH_WEEK": str,
"REV2_FINAL_ATTACH_WEEK": str,
"REVISION1_STATEMENTDATE": pl.Date(),
"REVISION2_STATEMENTDATE": pl.Date(),
"REVISIONS_ATTACHED_TO_FINAL": str,
"STARTDATE": pl.Date(),
}
)
# Deduplicate
# We want one row per ['CONTRACTYEAR', 'WEEKNO']
# Tie-breaker: greatest value of ['LASTCHANGED']
.sort(["LASTCHANGED"], descending=False)
.unique(subset=["CONTRACTYEAR", "WEEKNO"], keep="last")
)
Nemosis
This table is not yet available in Nemosis.
Example File
From PUBLIC_ARCHIVE_BILLINGCALENDAR_FILE01_202609010000.zip
| CONTRACTYEAR | WEEKNO | STARTDATE | ENDDATE | PRELIMINARYSTATEMENTDATE | FINALSTATEMENTDATE | PAYMENTDATE | LASTCHANGED | REVISION1_STATEMENTDATE | REVISION2_STATEMENTDATE | REVISION0_STATEMENTDATE |
| 1998 | 1 | 1997/12/28 00:00:00 | 1998/01/03 00:00:00 | 1998/01/13 00:00:00 | 1998/01/13 00:00:00 | 1998/01/13 00:00:00 | 1998/10/28 14:06:27 | |||
| 1998 | 2 | 1998/01/04 00:00:00 | 1998/01/10 00:00:00 | 1998/01/20 00:00:00 | 1998/01/20 00:00:00 | 1998/01/20 00:00:00 | 1998/10/28 14:06:27 | |||
| 1998 | 3 | 1998/01/11 00:00:00 | 1998/01/17 00:00:00 | 1998/01/28 00:00:00 | 1998/01/28 00:00:00 | 1998/01/28 00:00:00 | 1998/10/28 14:06:28 | |||
| 1998 | 4 | 1998/01/18 00:00:00 | 1998/01/24 00:00:00 | 1998/02/04 00:00:00 | 1998/02/04 00:00:00 | 1998/02/04 00:00:00 | 1998/10/28 14:06:28 | |||
| 1998 | 5 | 1998/01/25 00:00:00 | 1998/01/31 00:00:00 | 1998/02/10 00:00:00 | 1998/02/10 00:00:00 | 1998/02/10 00:00:00 | 1998/10/28 14:06:29 | |||
| 1998 | 6 | 1998/02/01 00:00:00 | 1998/02/07 00:00:00 | 1998/02/17 00:00:00 | 1998/02/17 00:00:00 | 1998/02/17 00:00:00 | 1998/10/28 14:06:29 | |||
| 1998 | 7 | 1998/02/08 00:00:00 | 1998/02/14 00:00:00 | 1998/02/24 00:00:00 | 1998/02/24 00:00:00 | 1998/02/24 00:00:00 | 1998/10/28 14:06:29 | |||
| 1998 | 8 | 1998/02/15 00:00:00 | 1998/02/21 00:00:00 | 1998/03/03 00:00:00 | 1998/03/03 00:00:00 | 1998/03/03 00:00:00 | 1998/10/28 14:06:30 | |||
| 1998 | 9 | 1998/02/22 00:00:00 | 1998/02/28 00:00:00 | 1998/03/10 00:00:00 | 1998/03/10 00:00:00 | 1998/03/10 00:00:00 | 1998/10/28 14:06:30 | |||
| 1998 | 10 | 1998/03/01 00:00:00 | 1998/03/07 00:00:00 | 1998/03/17 00:00:00 | 1998/03/17 00:00:00 | 1998/03/17 00:00:00 | 1998/10/28 14:06:30 | |||
| 1998 | 11 | 1998/03/08 00:00:00 | 1998/03/14 00:00:00 | 1998/03/24 00:00:00 | 1998/03/24 00:00:00 | 1998/03/24 00:00:00 | 1998/10/28 14:06:31 | |||
| ... |
| C | SETP.WORLD | DVD_BILLINGCALENDAR | AEMO | PUBLIC | 2026/10/09 | 15:24:51 | 001791523491420 | MONTHLY_ARCHIVE | 001791523491420 | |||||
| I | BILLING_CONFIG | BILLINGCALENDAR | 3 | CONTRACTYEAR | WEEKNO | STARTDATE | ENDDATE | PRELIMINARYSTATEMENTDATE | FINALSTATEMENTDATE | PAYMENTDATE | LASTCHANGED | REVISION1_STATEMENTDATE | REVISION2_STATEMENTDATE | REVISION0_STATEMENTDATE |
| D | BILLING_CONFIG | BILLINGCALENDAR | 3 | 1998 | 1 | 1997/12/28 00:00:00 | 1998/01/03 00:00:00 | 1998/01/13 00:00:00 | 1998/01/13 00:00:00 | 1998/01/13 00:00:00 | 1998/10/28 14:06:27 | |||
| D | BILLING_CONFIG | BILLINGCALENDAR | 3 | 1998 | 2 | 1998/01/04 00:00:00 | 1998/01/10 00:00:00 | 1998/01/20 00:00:00 | 1998/01/20 00:00:00 | 1998/01/20 00:00:00 | 1998/10/28 14:06:27 | |||
| D | BILLING_CONFIG | BILLINGCALENDAR | 3 | 1998 | 3 | 1998/01/11 00:00:00 | 1998/01/17 00:00:00 | 1998/01/28 00:00:00 | 1998/01/28 00:00:00 | 1998/01/28 00:00:00 | 1998/10/28 14:06:28 | |||
| D | BILLING_CONFIG | BILLINGCALENDAR | 3 | 1998 | 4 | 1998/01/18 00:00:00 | 1998/01/24 00:00:00 | 1998/02/04 00:00:00 | 1998/02/04 00:00:00 | 1998/02/04 00:00:00 | 1998/10/28 14:06:28 | |||
| D | BILLING_CONFIG | BILLINGCALENDAR | 3 | 1998 | 5 | 1998/01/25 00:00:00 | 1998/01/31 00:00:00 | 1998/02/10 00:00:00 | 1998/02/10 00:00:00 | 1998/02/10 00:00:00 | 1998/10/28 14:06:29 | |||
| D | BILLING_CONFIG | BILLINGCALENDAR | 3 | 1998 | 6 | 1998/02/01 00:00:00 | 1998/02/07 00:00:00 | 1998/02/17 00:00:00 | 1998/02/17 00:00:00 | 1998/02/17 00:00:00 | 1998/10/28 14:06:29 | |||
| D | BILLING_CONFIG | BILLINGCALENDAR | 3 | 1998 | 7 | 1998/02/08 00:00:00 | 1998/02/14 00:00:00 | 1998/02/24 00:00:00 | 1998/02/24 00:00:00 | 1998/02/24 00:00:00 | 1998/10/28 14:06:29 | |||
| D | BILLING_CONFIG | BILLINGCALENDAR | 3 | 1998 | 8 | 1998/02/15 00:00:00 | 1998/02/21 00:00:00 | 1998/03/03 00:00:00 | 1998/03/03 00:00:00 | 1998/03/03 00:00:00 | 1998/10/28 14:06:30 | |||
| D | BILLING_CONFIG | BILLINGCALENDAR | 3 | 1998 | 9 | 1998/02/22 00:00:00 | 1998/02/28 00:00:00 | 1998/03/10 00:00:00 | 1998/03/10 00:00:00 | 1998/03/10 00:00:00 | 1998/10/28 14:06:30 | |||
| D | BILLING_CONFIG | BILLINGCALENDAR | 3 | 1998 | 10 | 1998/03/01 00:00:00 | 1998/03/07 00:00:00 | 1998/03/17 00:00:00 | 1998/03/17 00:00:00 | 1998/03/17 00:00:00 | 1998/10/28 14:06:30 | |||
| D | BILLING_CONFIG | BILLINGCALENDAR | 3 | 1998 | 11 | 1998/03/08 00:00:00 | 1998/03/14 00:00:00 | 1998/03/24 00:00:00 | 1998/03/24 00:00:00 | 1998/03/24 00:00:00 | 1998/10/28 14:06:31 | |||
| ... | ||||||||||||||
| C | END OF REPORT | 1003 |
CONTRACTYEAR,WEEKNO,STARTDATE,ENDDATE,PRELIMINARYSTATEMENTDATE,FINALSTATEMENTDATE,PAYMENTDATE,LASTCHANGED,REVISION1_STATEMENTDATE,REVISION2_STATEMENTDATE,REVISION0_STATEMENTDATE
1998,1,"1997/12/28 00:00:00","1998/01/03 00:00:00","1998/01/13 00:00:00","1998/01/13 00:00:00","1998/01/13 00:00:00","1998/10/28 14:06:27",,,
1998,2,"1998/01/04 00:00:00","1998/01/10 00:00:00","1998/01/20 00:00:00","1998/01/20 00:00:00","1998/01/20 00:00:00","1998/10/28 14:06:27",,,
1998,3,"1998/01/11 00:00:00","1998/01/17 00:00:00","1998/01/28 00:00:00","1998/01/28 00:00:00","1998/01/28 00:00:00","1998/10/28 14:06:28",,,
1998,4,"1998/01/18 00:00:00","1998/01/24 00:00:00","1998/02/04 00:00:00","1998/02/04 00:00:00","1998/02/04 00:00:00","1998/10/28 14:06:28",,,
1998,5,"1998/01/25 00:00:00","1998/01/31 00:00:00","1998/02/10 00:00:00","1998/02/10 00:00:00","1998/02/10 00:00:00","1998/10/28 14:06:29",,,
1998,6,"1998/02/01 00:00:00","1998/02/07 00:00:00","1998/02/17 00:00:00","1998/02/17 00:00:00","1998/02/17 00:00:00","1998/10/28 14:06:29",,,
1998,7,"1998/02/08 00:00:00","1998/02/14 00:00:00","1998/02/24 00:00:00","1998/02/24 00:00:00","1998/02/24 00:00:00","1998/10/28 14:06:29",,,
1998,8,"1998/02/15 00:00:00","1998/02/21 00:00:00","1998/03/03 00:00:00","1998/03/03 00:00:00","1998/03/03 00:00:00","1998/10/28 14:06:30",,,
1998,9,"1998/02/22 00:00:00","1998/02/28 00:00:00","1998/03/10 00:00:00","1998/03/10 00:00:00","1998/03/10 00:00:00","1998/10/28 14:06:30",,,
1998,10,"1998/03/01 00:00:00","1998/03/07 00:00:00","1998/03/17 00:00:00","1998/03/17 00:00:00","1998/03/17 00:00:00","1998/10/28 14:06:30",,,
1998,11,"1998/03/08 00:00:00","1998/03/14 00:00:00","1998/03/24 00:00:00","1998/03/24 00:00:00","1998/03/24 00:00:00","1998/10/28 14:06:31",,,
...
C,SETP.WORLD,DVD_BILLINGCALENDAR,AEMO,PUBLIC,2026/10/09,15:24:51,001791523491420,MONTHLY_ARCHIVE,001791523491420
I,BILLING_CONFIG,BILLINGCALENDAR,3,CONTRACTYEAR,WEEKNO,STARTDATE,ENDDATE,PRELIMINARYSTATEMENTDATE,FINALSTATEMENTDATE,PAYMENTDATE,LASTCHANGED,REVISION1_STATEMENTDATE,REVISION2_STATEMENTDATE,REVISION0_STATEMENTDATE
D,BILLING_CONFIG,BILLINGCALENDAR,3,1998,1,"1997/12/28 00:00:00","1998/01/03 00:00:00","1998/01/13 00:00:00","1998/01/13 00:00:00","1998/01/13 00:00:00","1998/10/28 14:06:27",,,
D,BILLING_CONFIG,BILLINGCALENDAR,3,1998,2,"1998/01/04 00:00:00","1998/01/10 00:00:00","1998/01/20 00:00:00","1998/01/20 00:00:00","1998/01/20 00:00:00","1998/10/28 14:06:27",,,
D,BILLING_CONFIG,BILLINGCALENDAR,3,1998,3,"1998/01/11 00:00:00","1998/01/17 00:00:00","1998/01/28 00:00:00","1998/01/28 00:00:00","1998/01/28 00:00:00","1998/10/28 14:06:28",,,
D,BILLING_CONFIG,BILLINGCALENDAR,3,1998,4,"1998/01/18 00:00:00","1998/01/24 00:00:00","1998/02/04 00:00:00","1998/02/04 00:00:00","1998/02/04 00:00:00","1998/10/28 14:06:28",,,
D,BILLING_CONFIG,BILLINGCALENDAR,3,1998,5,"1998/01/25 00:00:00","1998/01/31 00:00:00","1998/02/10 00:00:00","1998/02/10 00:00:00","1998/02/10 00:00:00","1998/10/28 14:06:29",,,
D,BILLING_CONFIG,BILLINGCALENDAR,3,1998,6,"1998/02/01 00:00:00","1998/02/07 00:00:00","1998/02/17 00:00:00","1998/02/17 00:00:00","1998/02/17 00:00:00","1998/10/28 14:06:29",,,
D,BILLING_CONFIG,BILLINGCALENDAR,3,1998,7,"1998/02/08 00:00:00","1998/02/14 00:00:00","1998/02/24 00:00:00","1998/02/24 00:00:00","1998/02/24 00:00:00","1998/10/28 14:06:29",,,
D,BILLING_CONFIG,BILLINGCALENDAR,3,1998,8,"1998/02/15 00:00:00","1998/02/21 00:00:00","1998/03/03 00:00:00","1998/03/03 00:00:00","1998/03/03 00:00:00","1998/10/28 14:06:30",,,
D,BILLING_CONFIG,BILLINGCALENDAR,3,1998,9,"1998/02/22 00:00:00","1998/02/28 00:00:00","1998/03/10 00:00:00","1998/03/10 00:00:00","1998/03/10 00:00:00","1998/10/28 14:06:30",,,
D,BILLING_CONFIG,BILLINGCALENDAR,3,1998,10,"1998/03/01 00:00:00","1998/03/07 00:00:00","1998/03/17 00:00:00","1998/03/17 00:00:00","1998/03/17 00:00:00","1998/10/28 14:06:30",,,
D,BILLING_CONFIG,BILLINGCALENDAR,3,1998,11,"1998/03/08 00:00:00","1998/03/14 00:00:00","1998/03/24 00:00:00","1998/03/24 00:00:00","1998/03/24 00:00:00","1998/10/28 14:06:31",,,
...
C,"END OF REPORT",1003
Availability
Visibility: Public
This table is in the public monthly MMSDM archive.
I have collated the list of all those files into one place, in this CSV metadata file. (Columns year, month, url, compressed_size in bytes).
The earliest available data is month 1 of 2015. The most recent available data is month 9 of 2026.
Every month in between has a file. (No gaps.)
Data Size
Each year of data is approximately 414 KB when zipped, 4 MB as unzipped CSV.
Deduplication and PDR Loader Configuration
The primary keys are:
The transaction type is "INSERT-UPDATE", which means that you will likely see duplicate data with different values.
You should deduplicate by sorting based on LASTCHANGED, within each group of primary keys.
| Report Name | Report Subtype | Version |
|---|---|---|
| BILLING_CONFIG | BILLINGCALENDAR | 3 |
| BILLING_CONFIG | BILLINGCALENDAR | 4 |
This means that the CSV files start with metadata columns:
or
ROW_FILTER_TYPE is LASTCHANGED
Indexes
Links
This page as JSON (schema documented here, but may change)
Download a JSON Schema specification for this table.
Official AEMO schema documentation
Other Information
Package: BILLING_CONFIG