在 powerquery 中,添加列 .. 自定义列 .. 带公式
= let a = Record.FieldValues(_) in Record.FieldNames(_){List.PositionOf(a,List.Max(a))}
仅搜索指定列
let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
search = {"Column1","Column2","Column3"},
#"Added Custom" = Table.AddColumn(Source, "Custom", each let a = Record.FieldValues(_) in Record.FieldNames(_){List.PositionOf(a,List.Max(Record.ToList(Record.SelectFields(_,search))))})
in #"Added Custom"