if length(set({covered @ferc:ProvisionForRateRefundsAxis=*}.dimension(ferc:ProvisionForRateRefundsAxis))) > 0 true else false
taxonomy().concept(ferc:RespondentLegalName).label("http://ferc.gov/form/2020-01-01/roles/label/F1Header").text Name of Respondent:
[@ferc:RespondentLegalName @period=$currentDuration] Duke Energy Kentucky, Inc.
taxonomy().concept(ferc:SubmissionType).label("http://ferc.gov/form/2020-01-01/roles/label/F1Header").text This report is:
(1) if missing({covered @concept=ferc:SubmissionType}) ☐ An Original']]> else if [@concept=ferc:SubmissionType @period=$currentDuration] == "O" ☑ An Original']]> else ☐ An Original']]> An Original
(2) if missing([covered @concept=ferc:SubmissionType @period=$currentDuration]) ☐ A Resubmission']]> else if [@concept=ferc:SubmissionType @period=$currentDuration] == "R" ☑ A Resubmission']]> else ☐ A Resubmission']]> A Resubmission
taxonomy().concept(ferc:ReportDate).label("http://ferc.gov/form/2020-01-01/roles/label/F1Header").text Date of Report:
[@ferc:ReportDate @period=$currentDuration] 04/26/2019
taxonomy().concept(ferc:ReportYearPeriod).label("http://ferc.gov/form/2020-01-01/roles/label/F1Header").text Year/Period of Report:
End of: [@ferc:ReportYear @period=$currentDuration] 2018 / [@ferc:ReportPeriod @period=$currentDuration] Q4
// adding a comment $data2 = list(for $i in range(40) list($i,none,none,none,none,none,none) ); $data = if count(list({covered @ferc:ProvisionForRateRefundsAxis=*})) > 0 list({covered @ferc:ProvisionForRateRefundsAxis=* {list( if list({@ferc:OrderNumber @unit=* @period=$currentDuration}).length > 0 first(list({@ferc:OrderNumber @unit=* @period=$currentDuration})) else 0, if exists({@ferc:DescriptionOfNumberAndTitleOfRateSchedule @unit @period=$currentDuration}) first(list({@ferc:DescriptionOfNumberAndTitleOfRateSchedule @unit @period=$currentDuration})) else none, if exists({@ferc:MegawattHoursSoldProvisionForRateRefundsBilled @unit @period=$currentDuration}) first(list({@ferc:MegawattHoursSoldProvisionForRateRefundsBilled @unit @period=$currentDuration})) else none, if exists({@ferc:ProvisionForRateRefundsBilled @unit @period=$currentDuration}) first(list({@ferc:ProvisionForRateRefundsBilled @unit @period=$currentDuration})) else none, if exists({@ferc:AverageNumberOfCustomersPerMonthProvisionForRateRefundsBilled @unit @period=$currentDuration}) first(list({@ferc:AverageNumberOfCustomersPerMonthProvisionForRateRefundsBilled @unit @period=$currentDuration})) else none, if exists({@ferc:KilowattHoursOfSalesPerCustomerProvisionForRateRefundsBilled @unit @period=$currentDuration}) first(list({@ferc:KilowattHoursOfSalesPerCustomerProvisionForRateRefundsBilled @unit @period=$currentDuration})) else none, if exists({@ferc:RevenuePerKilowattHourSoldProvisionForRateRefundsBilled @unit @period=$currentDuration}) first(list({@ferc:RevenuePerKilowattHourSoldProvisionForRateRefundsBilled @unit @period=$currentDuration})) else none )}}) else $data2; $uniqueData = list(for $x in $data if $x == list(0,none,none,none,none,none,none) skip else $x ); for $row in $uniqueData.sort
taxonomy().concept(ferc:ScheduleSalesOfElectricityByRateSchedulesAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F1ScheduleTitle").text SALES OF ELECTRICITY BY RATE SCHEDULES
taxonomy().concept(ferc:ScheduleSalesOfElectricityByRateSchedulesAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F1Instructions").text
  1. Report below for each rate schedule in effect during the year the MWH of electricity sold, revenue, average number of customer, average Kwh per customer, and average revenue per Kwh, excluding date for Sales for Resale which is reported on Pages 310-311.
  2. Provide a subheading and total for each prescribed operating revenue account in the sequence followed in "Electric Operating Revenues," Page 300-301. If the sales under any rate schedule are classified in more than one revenue account, List the rate schedule and sales data under each applicable revenue account subheading.
  3. Where the same customers are served under more than one rate schedule in the same revenue account classification (such as a general residential schedule and an off peak water heating schedule), the entries in column (d) for the special schedule should denote the duplication in number of reported customers.
  4. The average number of customers should be the number of bills rendered during the year divided by the number of billing periods during the year (12 if all billings are made monthly).
  5. For any rate schedule having a fuel adjustment clause state in a footnote the estimated additional revenue billed pursuant thereto.
  6. Report amount of unbilled revenue as of end of year for each applicable revenue account subheading.
Line No. $headings = filter (taxonomy().concept(ferc:ScheduleSalesOfElectricityByRateSchedulesAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "304 - Schedule - Sales of Electricity by Rate Schedules") $headings = list(for $ref in $headings list($ref.part-by-name(ferc-part:Column).part-value, $ref.part-by-name(ferc-part:ColumnName).part-value)) $heading_dict = dict(for $row in $headings list("("+$row[1]+")",$row[2]) ); for $row in $heading_dict.keys.sort
$heading_dict[$row] Number and Title of Rate Schedule
$row (a)
1 1 $row[2] RB $row[3] 3,456 $row[4] $55,036,001 $row[5] 12,476,888 $row[6] 3,281,566 $row[7] $91
41 TOTAL Billed Provision For Rate Refunds first(list([covered @concept=ferc:MegawattHoursSoldProvisionForRateRefundsBilled @period = $currentDuration])) 765,989 first(list([covered @concept=ferc:ProvisionForRateRefundsBilled @period = $currentDuration])) $55,036,326 first(list([covered @concept=ferc:AverageNumberOfCustomersPerMonthProvisionForRateRefundsBilled @period = $currentDuration])) 3,281 first(list([covered @concept=ferc:KilowattHoursOfSalesPerCustomerProvisionForRateRefundsBilled @period = $currentDuration])) 9,162,981 first(list([covered @concept=ferc:RevenuePerKilowattHourSoldProvisionForRateRefundsBilled @period = $currentDuration])) $967
42 TOTAL Unbilled Rev. (See Instr. 6) first(list([covered @concept=ferc:MegawattHoursSoldProvisionForRateRefundsUnbilled @period = $currentDuration])) 765,989 first(list([covered @concept=ferc:ProvisionForRateRefundsUnbilled @period = $currentDuration])) $55,036,326 first(list([covered @concept=ferc:RevenuePerKilowattHourSoldProvisionForRateRefundsUnbilled @period = $currentDuration])) $297
43 TOTAL first(list([covered @concept=ferc:MegawattHoursSoldProvisionForRateRefunds @period = $currentDuration])) 165,381 first(list([covered @concept=ferc:ProvisionForRateRefunds @period = $currentDuration])) $88,236,226 first(list([covered @concept=ferc:AverageNumberOfCustomersPerMonthProvisionForRateRefunds @period = $currentDuration])) 1,766 first(list([covered @concept=ferc:KilowattHoursOfSalesPerCustomerProvisionForRateRefunds @period = $currentDuration])) 10,245,988 first(list([covered @concept=ferc:RevenuePerKilowattHourSoldProvisionForRateRefunds @period = $currentDuration])) $9,837