删除电源查询中的非断裂空间
只是遇到一个有趣的问题,即PQ不会以相同的方式转换看似相同的数据。
作为一个例子,我只想用24 mg/kg bw/day
用hello
:
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
#"Replaced Value" = Table.ReplaceValue(#"Changed Type","24 mg/kg bw/day","Hello",Replacer.ReplaceText,{"Column1"})
in
#"Replaced Value"
我们可以看到一个实例(在红色中)这是不起作用的,这是由于在破裂的空间中。我不确定如何处理这个问题,想知道是否有人遇到了类似的问题。
数据
24 mg/kg bw/day
24 mg/kg bw/day
24 mg/kg bw/day
Just come across an interesting issue where PQ isn't transforming seemingly identical data in the same way.
As an example here I just wish to replace 24 mg/kg bw/day
with Hello
:
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
#"Replaced Value" = Table.ReplaceValue(#"Changed Type","24 mg/kg bw/day","Hello",Replacer.ReplaceText,{"Column1"})
in
#"Replaced Value"
We can see that there is one instance (in red) where this doesn't work and this is due to on-breaking spaces. I am unsure how to deal with this and wondering if anyone has run into a similar issue.
Data
24 mg/kg bw/day
24 mg/kg bw/day
24 mg/kg bw/day
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
添加一个步骤来替换非破坏空间。
我遇到了类似的问题,即斜线(/)与一个划分符号几乎完全相同的符号。
Add a step to replace non-breaking spaces.
I had a similar issue with a slash (/) vs a divide-by symbol that looks almost exactly the same.
更换整个
桌子
U+00A0无破坏空间(NBSP)Unicode字符
To replace the entire table
where
U+00A0 No-Break Space (NBSP) Unicode Character