如何在powerquery中用null替换文本?
How to replace text with null in powerquery?
我想在 powerquery 中用 null
替换 "ValueToReplace"。这不起作用(returns 错误):
Table.ReplaceValue(#"Previous Step","ValueToReplace", null ,Replacer.ReplaceText,{"Col1"})
这有效,但 returns "" 而不是 null:
Table.ReplaceValue(#"Previous Step","ValueToReplace","",Replacer.ReplaceText,{"Col1"})
我认为这是因为 null
不是文本值,所以您需要使用 ReplaceValue
而不是 ReplaceText
。
Table.ReplaceValue(#"Previous Step","ValueToReplace",null,Replacer.ReplaceValue,{"Col1"})
我想在 powerquery 中用 null
替换 "ValueToReplace"。这不起作用(returns 错误):
Table.ReplaceValue(#"Previous Step","ValueToReplace", null ,Replacer.ReplaceText,{"Col1"})
这有效,但 returns "" 而不是 null:
Table.ReplaceValue(#"Previous Step","ValueToReplace","",Replacer.ReplaceText,{"Col1"})
我认为这是因为 null
不是文本值,所以您需要使用 ReplaceValue
而不是 ReplaceText
。
Table.ReplaceValue(#"Previous Step","ValueToReplace",null,Replacer.ReplaceValue,{"Col1"})