Forum Discussion
Anonymous
4 years agoNot applicable
Replacing values in specific cells
Hi I'm running into a strange issue. This works: #"Replaced Value28" = Table.ReplaceValue(#"Replaced Value27","","BLANK",Replacer.ReplaceValue,{"some_type"}), #"Replaced Value29" = Table.Re...
- 4 years ago
Hi Anonymous ,
Please check whether the data type of column [submitid] is text, or you can modify your formula like this:
#"Replaced Value73" = Table.ReplaceValue(#"Replaced Value72",each[some_type], each if [submitid]="1234" then "Some other value" else "Some value" ,Replacer.ReplaceText,{"some_type"}),Addtionally, by my test, in your below step, if "some_type" column is of text type, it works fine. But if it is number type, the "" in the formula should be replaced by null.
#"Replaced Value28" = Table.ReplaceValue(#"Replaced Value27","","BLANK",Replacer.ReplaceValue,{"some_type"})I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
4 years agoNot applicable
The problem was in somewhere else in the syntax. This code actually works.