taxonomy().concept(ferc:RespondentLegalName).label("http://ferc.gov/form/2020-01-01/roles/label/F60Header").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/F60Header").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/F60Header").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/F60Header").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(39) list($i,none,none,none,none,none,none) ); $data = if count(list({covered @ferc:AnalysisOfBillingNonAssociateCompaniesAxis=*})) > 0 list({covered @ferc:AnalysisOfBillingNonAssociateCompaniesAxis=* {list( if list({@ferc:OrderNumber @unit=* @period=$currentDuration}).length > 0 first(list({@ferc:OrderNumber @unit=* @period=$currentDuration})) else 0, if exists({@ferc:NonAssociateCompanyName @unit @period=$currentDuration}) first(list({@ferc:NonAssociateCompanyName @unit @period=$currentDuration})) else none, if exists({@ferc:DirectCostsChargedToNonAssociateCompanies @unit @period=$currentDuration}) first(list({@ferc:DirectCostsChargedToNonAssociateCompanies @unit @period=$currentDuration})) else none, if exists({@ferc:IndirectCostsChargedToNonAssociateCompanies @unit @period=$currentDuration}) first(list({@ferc:IndirectCostsChargedToNonAssociateCompanies @unit @period=$currentDuration})) else none, if exists({@ferc:CompensationForUseOfCapitalNonAssociateCompanies @unit @period=$currentDuration}) first(list({@ferc:CompensationForUseOfCapitalNonAssociateCompanies @unit @period=$currentDuration})) else none, if exists({@ferc:ExcessOrDeficiencyOnServicingNonAssociateUtilityCompanies @unit @period=$currentDuration}) first(list({@ferc:ExcessOrDeficiencyOnServicingNonAssociateUtilityCompanies @unit @period=$currentDuration})) else none, if exists({@ferc:ServicesRenderedToNonAssociateCompanies @unit @period=$currentDuration}) first(list({@ferc:ServicesRenderedToNonAssociateCompanies @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:ScheduleAnalysisOfBillingNonAssociateCompaniesAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F60ScheduleTitle").text Schedule XVIII - Analysis of Billing - Non-Associate Companies (Account 458)
taxonomy().concept(ferc:ScheduleAnalysisOfBillingNonAssociateCompaniesAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F60Instructions").text
  1. For services rendered to nonassociate companies (Account 458), list all of the nonassociate companies. In a footnote, describe the services rendered to each respective nonassociate company.
Line No. $headings = filter (taxonomy().concept(ferc:ScheduleAnalysisOfBillingNonAssociateCompaniesAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "018 - Schedule - Analysis of Billing - Non-Associate Companies (Account 458)") $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 $row[3] else taxonomy().concept(to-qname($row[3])))) ); for $row in $heading_dict.keys.sort
$heading_dict[$row][2].name.local-name
$heading_dict[$row][1] Nature of Payment
$row (a)
1 $row[2] DEF Pipelines $row[3] $1,234,567 $row[4] $2,755,067 $row[5] $1,657,233 $row[6] $3,922,545 $row[7] $3,922,545
40 Total max(list([covered @concept=ferc:DirectCostsChargedToNonAssociateCompanies @period = $currentDuration])) $85,531,884 max(list([covered @concept=ferc:IndirectCostsChargedToNonAssociateCompanies @period = $currentDuration])) $23,822,039 max(list([covered @concept=ferc:CompensationForUseOfCapitalNonAssociateCompanies @period = $currentDuration])) $65,111,827 max(list([covered @concept=ferc:ExcessOrDeficiencyOnServicingNonAssociateUtilityCompanies @period = $currentDuration])) $100,222,333 max(list([covered @concept=ferc:ServicesRenderedToNonAssociateCompanies @period = $currentDuration])) $110,222,333