Forum Discussion
gtamir
8 years agoPost Patron
if is null
I want to use the expresion "if is null" to replace the "mobile" column with null, with the value in the same row in column "phone".
- 8 years agoHiI test using a simple dataset as follows.In Query Editor->Advanced editoradd codemobile= Table.ReplaceValue(#"Changed Type",each [mobile], each if [mobile]=null then [phone] else [mobile] , Replacer.ReplaceValue,{"mobile"})#"Changed Type"->this tableyou will seeBest RegardsMaggie
v-juanli-msft
8 years agoCommunity Support
Hi
I test using a simple dataset as follows.
In Query Editor->Advanced editor
add code
mobile= Table.ReplaceValue(#"Changed Type",each [mobile], each if [mobile]=null then [phone] else [mobile] , Replacer.ReplaceValue,{"mobile"})
#"Changed Type"->this table
you will see
Best Regards
Maggie