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