Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
461 views
in Technique[技术] by (71.8m points)

excel - Power Query - Replacing specific value based on another column

As the title suggest, I'd like to replace the values of column x that contain in Text - Copy with "" (Blank/null)

enter image description here

I've tried the following but it does not seems to work to my ideal result.

= Table.ReplaceValue(#"Duplicated Column",each [x],"",Replacer.ReplaceValue,{"Text - Copy"})

This would be the ideal result that I'd like to yield

enter image description here

I've tried to use this as was given, but it doesnt yield the ideal result.

= Table.ReplaceValue(#"Duplicated Column",each [x],"",Replacer.ReplaceText,{"Text - Copy"})

enter image description here

question from:https://stackoverflow.com/questions/65623626/power-query-replacing-specific-value-based-on-another-column

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Use Replacer.ReplaceText for replacer as function

= Table.ReplaceValue(#"Duplicated Column",each [x],"",Replacer.ReplaceText,{"Text - Copy"})

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.9k users

...