cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sandip Frequent Visitor
Frequent Visitor

Replace Values in a column - Please Help

Hi,

I need to remove  and , charecters from the below column  values:

EMPT     ÂÂ

 

and I have used the below query , but it does not work for me:

 

#"Added Custom" = Table.AddColumn(#"Extracted Text Range", "Custom", each Text.Replace(Text.Remove([UNIT_STR_QTY],{"Â", "Ã"}), "#(00A0),#(00A0)", ""))

 

the above query gives me the below value:

EMPT‚ ‚ ‚ ‚ ‚ ‚

 

now If I just use the above query as :

#"Added Custom" = Table.AddColumn(#"Extracted Text Range", "Custom", each Text.Remove(Text.Remove([UNIT_STR_QTY],{"Â", "Ã"}), {","})),

 

It does not work for me and it still gives me:

EMPT‚ ‚ ‚ ‚ ‚ ‚

 

Please help me.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: Replace Values in a column - Please Help

You can use this extra piece of code to get rid of the ,

 

 #"Replaced Value" = Table.ReplaceValue(Source,"‚","",Replacer.ReplaceText,{"Column1"})
in
    #"Replaced Value"

Goodluck! 🙂

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Re: Replace Values in a column - Please Help

Yo can split the column from the first Ã and remove everything to the right of it.

also this will work:

    #"Replaced Value" = Table.ReplaceValue(#"Changed Type","Â","",Replacer.ReplaceText,{"Column1"}),
    #"Replaced Value1" = Table.ReplaceValue(#"Replaced Value","Â","",Replacer.ReplaceText,{"Column1"})
in
    #"Replaced Value1"

for the particular example given. If you have a more variety of data, please show a little more so i can adjust my methods.

sandip Frequent Visitor
Frequent Visitor

Re: Replace Values in a column - Please Help

Hi,

You code is woring on columns where I have only values as:

ÂÂ

but it did not works on the columns of values like:

     ÂÂ

or

MZ BERGER & CO INC (DISC) ÂÂ

 

Please help on this type of variations also.

Highlighted
Anonymous
Not applicable

Re: Replace Values in a column - Please Help

You can use this extra piece of code to get rid of the ,

 

 #"Replaced Value" = Table.ReplaceValue(Source,"‚","",Replacer.ReplaceText,{"Column1"})
in
    #"Replaced Value"

Goodluck! 🙂

View solution in original post

Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (3,264)