taxonomy().concept(ferc:RespondentLegalName).label("http://ferc.gov/form/2020-01-01/roles/label/F2Header").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/F2Header").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/F2Header").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/F2Header").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(24) list($i,none,none,none,none,none) ); $data = if count(list({covered @ferc:ExchangeAndImbalanceTransactionsAxis=*})) > 0 list({covered @ferc:ExchangeAndImbalanceTransactionsAxis=* {list( if list({@ferc:OrderNumber @unit=* @period=$currentDuration}).length > 0 first(list({@ferc:OrderNumber @unit=* @period=$currentDuration})) else 0, if list({@ferc:DescriptionOfZoneAndRateSchedule @unit @period=$currentDuration}).length > 0 first(list({@ferc:DescriptionOfZoneAndRateSchedule @unit @period=$currentDuration})) else none, if list({@ferc:NaturalGasReceivedByRespondentExchangedGasReceivedFromOthers @unit @period=$currentDuration}).length > 0 first(list({@ferc:NaturalGasReceivedByRespondentExchangedGasReceivedFromOthers @unit @period=$currentDuration})) else none, if list({@ferc:QuantityOfNaturalGasReceivedByUtilityExchangedGasReceivedFromOthers @unit @period=$currentDuration}).length > 0 first(list({@ferc:QuantityOfNaturalGasReceivedByUtilityExchangedGasReceivedFromOthers @unit @period=$currentDuration})) else none, if list({@ferc:NaturalGasDeliveredByRespondentExchangeGasDeliveredToOthers @unit @period=$currentDuration}).length > 0 first(list({@ferc:NaturalGasDeliveredByRespondentExchangeGasDeliveredToOthers @unit @period=$currentDuration})) else none, if list({@ferc:QuantityOfNaturalGasDeliveredByUtilityExchangeGasDeliveredToOthers @unit @period=$currentDuration}).length > 0 first(list({@ferc:QuantityOfNaturalGasDeliveredByUtilityExchangeGasDeliveredToOthers @unit @period=$currentDuration})) else none )}}) else $data2; $uniqueData = list(for $x in $data if $x == list(0,none,none,none,none,none) skip else $x ); for $row in $uniqueData.sort
taxonomy().concept(ferc:ScheduleExchangeAndImbalanceTransactionsAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F2ScheduleTitle").text Exchange and Imbalance Transactions
taxonomy().concept(ferc:ScheduleExchangeAndImbalanceTransactionsAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F2Instructions").text
  1. Report below details by zone and rate schedule concerning the gas quantities and related dollar amount of imbalances associated with system balancing and no-notice service. Also, report certificated natural gas exchange transactions during the year. Provide subtotals for imbalance and no-notice quantities for exchanges. If respondent does not have separate zones, provide totals by rate schedule. Minor exchange transactions (less than 100,000 Dth) may be grouped.
Line No. $headings = filter (taxonomy().concept(ferc:ScheduleExchangeAndImbalanceTransactionsAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "328 - Schedule - Exchange and Imbalance Transactions") $heading = list(for $ref in $headings list($ref.part-by-name(ferc-part:Column).part-value, $ref.part-by-name(ferc-part:ColumnName).part-value, $ref.part-by-name(ferc-part:ElementName).part-value)) $heading_dict = dict(for $row in $heading list("("+$row[1]+")",list($row[2],if $row[3] == none "" else taxonomy().concept(to-qname($row[3])))) ); for $row in $heading_dict.keys.sort
if $heading_dict[$row][2] != "" $heading_dict[$row][2].name.local-name else ""
$heading_dict[$row][1] Nature of Payment
$row (a)
1 $row[2] Zone 1 - Before Cheyenne, CO $row[3] $30,697,181 $row[4] 11,909,571 Dth $row[5] $30,175,085 $row[6] 12,558,092 Dth
25 taxonomy().concept(ferc:NaturalGasReceivedByRespondentExchangedGasReceivedFromOthers).label("http://ferc.gov/form/2020-01-01/roles/label/F2Total").text
Total
max(list([covered @concept=ferc:NaturalGasReceivedByRespondentExchangedGasReceivedFromOthers @period = $currentDuration])) $131,399,597 max(list([covered @concept=ferc:QuantityOfNaturalGasReceivedByUtilityExchangedGasReceivedFromOthers @period = $currentDuration])) 46,964,968 Dth max(list([covered @concept=ferc:NaturalGasDeliveredByRespondentExchangeGasDeliveredToOthers @period = $currentDuration])) $127,805,176 max(list([covered @concept=ferc:QuantityOfNaturalGasDeliveredByUtilityExchangeGasDeliveredToOthers @period = $currentDuration])) 47,330,490 Dth