@西瓜 学习了
= Table.AddColumn(源,"替换",each List.Accumulate({{"张三","A"},{"李四","B"}},[姓名],(s,c)=>Text.Replace(s,c{0},c{1})))