Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
I need to replace "." and "/" with a "|" character.
PFB snapshot of the Replacer.ReplaceText usage which was created from UI.
While the step to replace dot works as expected in Power Query on PBI Desktop, I m seeing that an | is introduced for every character on DataFlows. Please take a look at this issue.
Thanks & Regards,
Mannu
Hi @modi123p ,
I create a dataflow based on your code, and I can get correct result.
Please try again with the following code:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjQxMNB3NjTTd/Iw1Tc0s7TQd1TSwSoaqxOtFOqsZ2CoZ2ACJM2BylC4sbEA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [funct_loc_funct_loc1 = _t, Path = _t]),
#"Replace Value1" = Table.ReplaceValue(Source, ".", "|", Replacer.ReplaceText, {"Path"}),
#"Replace Value2" = Table.ReplaceValue(#"Replace Value1", "/", "|", Replacer.ReplaceText, {"Path"})
in
#"Replace Value2"
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
The code is exactly the same as you mentioned. But as you can see from the snapshot.... "|" is geting introduced after each character when used with dot. This, however doesnt happen while replacing "/" on the same column.
I entered directly on DF and it seems to work.
However, strangely, I m encountering error with data from impala.
It works fine with PBI Desktop though
Hi Winniz,
Thank you for looking into the issue.
There is no error message.
Parsing is incorrect.
I m not doing any other transformations here.
1. Connect to Impala Data Source(Impala)
2. Replace "." character with "|" on column named path
3. Replace "/" with "|" on column named path
The steps were generated from UI.
While the exact Power Query code works fine on PBI Desktop, I m seeing the strange parsing on PBI Service.
Hence thought of reporting it here.
Thanks & regards,
Mannu