Forum Discussion
H_insight
4 years agoHelper V
Add prefix if value is number
Hello, I am trying to add a Prefix to Column1 only when the value in the column is a number. I tried the below code to transform the column (without adding a new column): = Table.T...
- 4 years ago
Use this
= Table.ReplaceValue(#"Changed Type",each [Column1], each if Value.Is([Column1],type number) then "$" & Text.From([Column1]) else [Column1],Replacer.ReplaceValue,{"Column1"})
Vijay_A_Verma
4 years agoMost Valuable Professional
Use this
= Table.ReplaceValue(#"Changed Type",each [Column1], each if Value.Is([Column1],type number) then "$" & Text.From([Column1]) else [Column1],Replacer.ReplaceValue,{"Column1"})- H_insight4 years agoHelper V
Vijay_A_Verma Super thanks!