我正在加载 Excel 文件。在那里,我想根据另一列的值替换值。新值应从主 Excel 文件的配置工作表上的表格中提取。
有人可以分享一下这个的语法吗,找不到任何东西
let
...
#"DealProbability" = Table.ReplaceValue(#"DealStageIntType", each [Deal probability],
each if [Deal Stage] = 1 then configtable[column name][first row]
else if [Deal Stage] = 2 then 0.5
else if [Deal Stage] = 3 then 0.9
else if [Deal Stage] = 4 then 0.9
else if [Deal Stage] = 5 then 1
else 0,
Replacer.ReplaceValue, {"Deal probability"}),
尝试
let #"DealStageIntType" = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"DealProbability" = Table.ReplaceValue(#"DealStageIntType", each [Deal Probability],
each if [Deal Stage] = 1 then configtable{0}[Column1]
else if [Deal Stage] = 2 then 0.5
else if [Deal Stage] = 3 then 0.9
else if [Deal Stage] = 4 then 0.9
else if [Deal Stage] = 5 then 1
else 0,
Replacer.ReplaceValue, {"Deal Probability"})
in #"DealProbability"