taxonomy().concept(ferc:RespondentLegalName).label("http://ferc.gov/form/2020-01-01/roles/label/F6Header").text Name of Respondent:

first(list([@ferc:RespondentLegalName @period=$currentDuration])) Duke Energy Kentucky, Inc.
taxonomy().concept(ferc:SubmissionType).label("http://ferc.gov/form/2020-01-01/roles/label/F6Header").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/F6Header").text Date of Report:

first(list([@ferc:ReportDate @period=$currentDuration])) 04/26/2019
taxonomy().concept(ferc:ReportYearPeriod).label("http://ferc.gov/form/2020-01-01/roles/label/F6Header").text Year/Period of Report:

End of: first(list([@ferc:ReportYear @period=$currentDuration])) 2018 / first(list([@ferc:ReportPeriod @period=$currentDuration])) Q4
$data = navigate parent-child descendants from ferc:UnappropriatedRetainedIncomeStatementLineItems role "http://ferc.gov/form/2020-01-01/roles/Schedule/F6/UnappropriatedRetainedIncomeStatement" returns list (target-name, preferred-label, order); $data-labels = list(for $row in $data $concept = taxonomy().concept($row[1]); $row_num = (filter $concept.references("http://ferc.gov/form/2020-01-01/roles/reference/formLocation") where ($item.part-by-name(ferc-part:Schedule).part-value == "119 - Schedule - Unappropriated Retained Income Statement" and $item.part-by-name(ferc-part:ValueType).part-value.string == "Label" and "http://ferc.gov/form/2020-01-01/roles/label/" + $item.part-by-name(ferc-part:ColumnName).part-value.string == $row[2].role.uri)).to-list; $page = $concept.label("http://ferc.gov/form/2020-01-01/roles/label/F6PageRange2").text; $beginningBalance = if $row[2].role.uri == "http://ferc.gov/form/2020-01-01/roles/label/F6BeginningBalance" true else false $beginningRow = if ($row_num.part-by-name(ferc-part:Row)).length > 0 min(($row_num.part-by-name(ferc-part:Row)).part-value) else "" $endingRow = if ($row_num.part-by-name(ferc-part:Row)).length > 0 max(($row_num.part-by-name(ferc-part:Row)).part-value) else "" $current = if list([covered @concept = $row[1] @period = $currentDuration]).length > 0 first(list([covered @concept = $row[1] @period = $currentDuration])) else if $beginningBalance if list([covered @concept = $row[1] @period = $priorInstant]).length > 0 first(list([covered @concept = $row[1] @period = $priorInstant])) else none else if list([covered @concept = $row[1] @period = $currentInstant]).length > 0 first(list([covered @concept = $row[1] @period = $currentInstant])) else none $prior = if list([covered @concept = $row[1] @period = $priorDuration]).length > 0 first(list([covered @concept = $row[1] @period = $priorDuration])) else if $beginningBalance if list([covered @concept = $row[1] @period = $prior2Instant]).length > 0 first(list([covered @concept = $row[1] @period = $prior2Instant])) else none else if list([covered @concept = $row[1] @period = $prior12MonthsInstant]).length > 0 first(list([covered @concept = $row[1] @period = $prior12MonthsInstant])) else none list($concept, $concept.label($row[2].role.uri).text, //Title of Account if exists($page) $page else "", //Page Ref if $beginningBalance $beginningRow else $endingRow, $current, $prior )); for $rowl in $data-labels
taxonomy().concept(ferc:ScheduleUnappropriatedRetainedIncomeStatementAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F6ScheduleTitle").text Unappropriated Retained Income Statement
taxonomy().concept(ferc:ScheduleUnappropriatedRetainedIncomeStatementAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F6Instructions").text
  1. Report items of the Retained Income Accounts of the respondents for the period, classified in accordance with the USofA.
  2. Report on lines 15 and 16 the amount of assigned Federal income tax consequences, Account Nos. 710 and 720.
  3. Report on lines 17 through 20 all amounts applicable to the equity in undistributed earnings (losses) of affiliated companies based on the equity method of accounting.
  4. Line 18 should agree with Line 12, Schedule 114. The total of lines 2, 6, and 18 should agree with line 29, Schedule 114
  5. Include on lines 1 through 12 only amounts applicable to Retained Income exclusive of any amounts included on lines 17 through 20.
Line No. $headings = filter (taxonomy().concept(ferc:ScheduleUnappropriatedRetainedIncomeStatementAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "119 - Schedule - Unappropriated Retained Income Statement") $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] Item
$row (a)
$rowl[4] 1
$rowl[1].name.local-name
$rowl[2] if $rowl[1].is-abstract "sch-title" else "" UNAPPROPRIATED RETAINED INCOME
$rowl[3] $rowl[5] $rowl[6]