问题:
由问题+答案生成结果
let
源 = Excel.CurrentWorkbook(){[Name="表1"]}[Content],
结果 = Table.AddColumn(源, "结果", each Text.Combine(List.Combine(List.Zip({Text.Split([问题],"__") , Text.Split([答案],"、")}))))
in
结果
逆向(根据结题和答案反推问题):
let
源 = Excel.CurrentWorkbook(){[Name="表1"]}[Content],
问题 = Table.AddColumn(源, "问题", each List.Accumulate(Text.Split([答案],"、"),[参考结果],(x,y)=>Text.Replace(x,y,"__")))
in
问题
标签:Power,结果,Text,填空题,List,问题,Split,答案,Query From: https://www.cnblogs.com/officeplayer/p/18262542