{"package":"HISTORICAL TABLES","pdr_config":{"mappings":[{"REPORT_NAME":"BILLING","REPORT_SUB_TYPE":"GENDATA","VERSION":5}],"transaction_type":"INSERT"},"documentation_urls":["https://nemweb.com.au/Reports/Current/MMSDataModelReport/Electricity/ElectricityDataModelReport_files/Elec64.htm#156"],"comment":"BILLINGGENDATA shows the total energy sold and purchased per participant transmission connection point for a billing period. The table is populated for participants using Data Model 5.2. For participants using Data Model 5.3 or higher, BILLING_ENERGY_TRANSACTIONS AND BILLING_ENERGY_GENSET_DETAIL replace BILLINGGENDATA.","description":"BILLINGGENDATA data is confidential to the the relevant participant.\n\nSource\n\nBILLINGGENDATA is populated by the posting of a billing run, being\nseveral times each week.\n\nVolume\n\nThe number of records depends on the number of transmission\nConnectionPointIDs a Participant may have sold energy from per\nbillrunno. An indicative maximum is approximately 15 records inserted\nper billrunno, or about 165 records inserted per week.\n\nBILLINGGENDATA is confidential to the the relevant participant.","unused":true,"primary_keys":["BILLRUNNO","CONNECTIONPOINTID","CONTRACTYEAR","PARTICIPANTID","WEEKNO"],"indexes":[["LASTCHANGED"],["PARTICIPANTID"]],"columns":{"BILLRUNNO":{"sql_type":"NUMBER(3,0)","pl_type":"pl.UInt16","mandatory":true,"comment":"Unique run no within a given contract year and week no","is_integer":true,"unsigned_int":true,"num_int_bits":16},"CONNECTIONPOINTID":{"sql_type":"VARCHAR2(10)","pl_type":"pl.Categorical","mandatory":true,"comment":"Connection point identifier","is_categorical":true},"CONTRACTYEAR":{"sql_type":"NUMBER(4,0)","pl_type":"pl.UInt16","mandatory":true,"comment":"AEMO Contract Year number starting in week containing 1st January","is_integer":true,"unsigned_int":true,"num_int_bits":16},"PARTICIPANTID":{"sql_type":"VARCHAR2(10)","pl_type":"pl.Categorical","mandatory":true,"comment":"Unique participant identifier","is_categorical":true},"WEEKNO":{"sql_type":"NUMBER(3,0)","pl_type":"pl.UInt16","mandatory":true,"comment":"Week no within the contract year. Week no 1 is the week containing 1st January","warnings":["There may be 53 weeks in a year, depending on how weeks align to the year start/end."],"is_integer":true,"unsigned_int":true,"num_int_bits":16},"AGGREGATEENERGY":{"sql_type":"NUMBER(16,6)","pl_type":"pl.Float64","mandatory":false,"comment":"Aggregate energy sold, in MWh","is_float":true},"DUID":{"sql_type":"VARCHAR2(10)","pl_type":"pl.Categorical","mandatory":false,"comment":"not populated","examples":["W/HOE#2"],"warnings":["This column may contain funny characters such as / (slash) or # (hash). This may break hive-style partitioning.\n"],"is_categorical":true},"LASTCHANGED":{"sql_type":"DATE","pl_type":"pl.Datetime()","mandatory":false,"comment":"Last date and time record changed","examples":["2026/01/20 00:05:00"],"parse_csv_as_string":true,"is_s_datetime":true},"MDA":{"sql_type":"VARCHAR2(10)","pl_type":"str","mandatory":false,"comment":"Metering Data Agent supplying data"},"PURCHASEDENERGY":{"sql_type":"NUMBER(16,6)","pl_type":"pl.Float64","mandatory":false,"comment":"Amount of energy purchased in MWh","is_float":true},"PURCHASES":{"sql_type":"NUMBER(16,6)","pl_type":"pl.Float64","mandatory":false,"comment":"$ outgoing","is_float":true},"SALES":{"sql_type":"NUMBER(16,6)","pl_type":"pl.Float64","mandatory":false,"comment":"$ income","is_float":true},"STATIONID":{"sql_type":"VARCHAR2(10)","pl_type":"pl.Categorical","mandatory":false,"comment":"not populated","is_categorical":true}},"visibility":"Private","trigger":"After posting of a billing run (several times each week)"}