let
源 = Excel.CurrentWorkbook(){[Name="Case1"]}[Content],
自定义1 = Table.Combine(
Table.Group(源, "语文|数学|英语", {"q", each
[ a = List.RemoveNulls(List.Combine(Table.ToColumns())),
b = List.Combine(List.Transform(Table.ColumnNames(), (x)=> Text.Split(x, "|"))),
c = #table(b, {a})
][c]
}, 0, (x,y)=> Number.From(y is null)
)[q]
)
in
自定义1